netmcol - max total packages shipped/link p minimize...

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 set PRODS; s param supply {CITIES,PRODS} >= 0; # amounts available at cities param demand {CITIES,PRODS} >= 0; # amounts required at cities p check {p in PRODS}: sum {i in CITIES} supply[i,p] = sum {j in CITIES} demand[j,p]; param cost {LINKS,PRODS} >= 0; # shipment costs/1000 packages param capacity {LINKS,PRODS} >= 0; # max packages shipped param cap_joint {LINKS} >= 0;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: # max total packages shipped/link p minimize Total_Cost; m node Balance {k in CITIES, p in PRODS}: net_in = demand[k,p] - supply[k,p]; subject to Multi {(i,j) in LINKS}: to_come <= cap_joint[i,j]; arc Ship {(i,j) in LINKS, p in PRODS} >= 0, <= capacity[i,j,p], from Balance[i,p], to Balance[j,p], coeff Multi[i,j] 1.0, obj Total_Cost cost[i,j,p];...
View Full Document

Ask a homework question - tutors are online