net3 - var DW_Ship(i,j in DW_LINKS>= 0<= dw_cap[i,j...

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

View Full Document Right Arrow Icon
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 {j in W_CITY} w_demand[j]; param pd_cost {D_CITY} >= 0; # shipment costs/1000 packages param dw_cost {DW_LINKS} >= 0; p param pd_cap {D_CITY} >= 0; # max packages that can be shipped param dw_cap {DW_LINKS} >= 0; p var PD_Ship {i in D_CITY} >= 0, <= pd_cap[i];
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: var DW_Ship {(i,j) in DW_LINKS} >= 0, <= dw_cap[i,j]; # packages to be shipped minimize Total_Cost: sum {i in D_CITY} pd_cost[i] * PD_Ship[i] + sum {(i,j) in DW_LINKS} dw_cost[i,j] * DW_Ship[i,j]; subject to P_Bal: sum {i in D_CITY} PD_Ship[i] = p_supply; s subject to D_Bal {i in D_CITY}: PD_Ship[i] = sum {(i,j) in DW_LINKS} DW_Ship[i,j]; subject to W_Bal {j in W_CITY}: sum {(i,j) in DW_LINKS} DW_Ship[i,j] = w_demand[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