netfeeds - param limit {FEEDS,CITIES} >= 0; # feedstocks...

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

View Full Document Right Arrow Icon
set CITIES; s set LINKS within (CITIES cross CITIES); s set PRODS; s param supply {PRODS,CITIES} >= 0; # amounts available at cities p param demand {PRODS,CITIES} >= 0; # amounts required at cities p check {p in PRODS}: sum {i in CITIES} supply[p,i] = sum {j in CITIES} demand[p,j]; param cost {PRODS,LINKS} >= 0; # shipment costs/1000 packages param capacity {PRODS,LINKS} >= 0; # max packages shipped of product p set FEEDS; s param yield {PRODS,FEEDS} >= 0; # amounts derived from feedstocks
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 limit {FEEDS,CITIES} >= 0; # feedstocks available at cities p minimize Total_Cost; m var Feed {f in FEEDS, k in CITIES} >= 0, <= limit[f,k]; v node Balance {p in PRODS, k in CITIES}: net_out = supply[p,k] - demand[p,k] + sum {f in FEEDS} yield[p,f] * Feed[f,k]; arc Ship {p in PRODS, (i,j) in LINKS} >= 0, <= capacity[p,i,j], from Balance[p,i], to Balance[p,j], obj Total_Cost cost[p,i,j];...
View Full Document

This note was uploaded on 04/01/2011 for the course CO 370 taught by Professor Henry during the Winter '11 term at Waterloo.

Ask a homework question - tutors are online