maxflow - v maximize Total_Flow: sum {(orig,j) in arcs}...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
set nodes; param orig symbolic in nodes; param dest symbolic in nodes, <> orig; p set arcs within (nodes diff {dest}) cross (nodes diff {orig}); s param cap {arcs} >= 0; var Flow {(i,j) in arcs} >= 0, <= cap[i,j];
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: v maximize Total_Flow: sum {(orig,j) in arcs} Flow[orig,j]; m subject to Balance {k in nodes diff {orig,dest}}: sum {(i,k) in arcs} Flow[i,k] = sum {(k,j) in arcs} Flow[k,j];...
View Full Document

Ask a homework question - tutors are online