this repo has no description
1predicate fzn_network_flow(array[int,1..2] of int: arc,
2 array[int] of int: balance,
3 array[int] of var int: flow) =
4
5 let { int: source_node = 1;
6 int: sink_node = 2;
7 set of int: ARCS = index_set_1of2(arc);
8 set of int: NODES = index_set(balance);
9 } in
10 forall (i in NODES) (
11 sum (j in ARCS where i == arc[j,source_node]) (flow[j]) -
12 sum (j in ARCS where i == arc[j,sink_node]) (flow[j])
13 = balance[i]
14 );