# net2 - ### Remainder same as general transshipment model...

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

param p_city symbolic; p set D_CITY; set W_CITY; set DW_LINKS within (D_CITY cross W_CITY); s param p_supply >= 0; # amount available at plant param w_demand {W_CITY} >= 0; # amounts required at warehouses p check: p_supply = sum {k in W_CITY} w_demand[k]; set CITIES = {p_city} union D_CITY union W_CITY; set LINKS = ({p_city} cross D_CITY) union DW_LINKS; s param supply {k in CITIES} = if k = p_city then p_supply else 0; param demand {k in CITIES} = if k in W_CITY then w_demand[k] else 0;
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ### Remainder same as general transshipment model ### # param cost {LINKS} >= 0; # shipment costs/1000 packages param capacity {LINKS} >= 0; # max packages that can be shipped p var Ship {(i,j) in LINKS} >= 0, <= capacity[i,j]; # packages to be shipped minimize Total_Cost: sum {(i,j) in LINKS} cost[i,j] * Ship[i,j]; subject to Balance {k in CITIES}: supply[k] + sum {(i,k) in LINKS} Ship[i,k] = demand[k] + sum {(k,j) in LINKS} Ship[k,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