Skip to content

Latest commit

 

History

History
78 lines (55 loc) · 1.24 KB

File metadata and controls

78 lines (55 loc) · 1.24 KB

Algorithms

Flow

min_cost_flow
GraphsOptim.min_cost_flow!

We denote by:

  • f the edge flow variable
  • c the edge cost
  • a and b the min and max edge capacity
  • d the vertex demand

The objective function is

$$\min_{f \in \mathbb{R}^E} \sum_{(u, v) \in E} c(u, v) f(u, v)$$

The edge capacity constraint dictates that for all $(u, v) \in E$,

$$a(u, v) \leq f(u, v) \leq b(u, v)$$

The flow conservation constraint with node demand dictates that for all $v \in V$,

$$f^-(v) = d(v) + f^+(v)$$

where the incoming flow $f^-(v)$ and outgoing flow $f^+(v)$ are defined as

$$f^-(v) = \sum_{u \in N^-(v)} f(u, v) \quad \text{and} \quad f^+(v) = \sum_{w \in N^+(v)} f(v, w)$$

Assignment

!!! danger "Work in progress" Come back later!

min_cost_assignment
GraphsOptim.min_cost_assignment!

Graph matching

!!! danger "Work in progress" Come back later!

graph_matching

Coloring

!!! danger "Work in progress" Come back later!

minimum_coloring

Utils

GraphsOptim.is_binary
GraphsOptim.is_square
GraphsOptim.is_stochastic
GraphsOptim.is_doubly_stochastic
GraphsOptim.is_permutation_matrix
GraphsOptim.flat_doubly_stochastic