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