net1node - param capacity {LINKS} >= 0; # max...

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

View Full Document Right Arrow Icon
set CITIES; set LINKS within (CITIES cross CITIES); s param supply {CITIES} >= 0; # amounts available at cities param demand {CITIES} >= 0; # amounts required at cities p check: sum {i in CITIES} supply[i] = sum {j in CITIES} demand[j]; param cost {LINKS} >= 0; # shipment costs/1000 packages
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: param capacity {LINKS} >= 0; # max packages that can be shipped p minimize Total_Cost; m node Balance {k in CITIES}: net_in = demand[k] - supply[k]; n arc Ship {(i,j) in LINKS} >= 0, <= capacity[i,j], from Balance[i], to Balance[j], obj Total_Cost cost[i,j];...
View Full Document

Ask a homework question - tutors are online