{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

9.2.12 - model set region 1 2 3(i set warehouse#NewYork...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 model set region set warehouse param maxshipping_lim param fixedcost {j in warehouse} param demand {i in region} param Cost {i in region, j in warehouse} param M param warehouse1_lim param warehouse2_lim var openwarehouse {j in warehouse} binary var product {i in region, j in warehouse} minimize Costs: sum{i in region, j in warehouse} product [i,j]*Cost[i,j] + sum{j in warehouse} fixedcost[j]*openwarehouse[j] subject to demanded {i in region}: sum{j in warehouse} product[i,j] >= demand[i] subject to maxship {j in warehouse}: sum{i in region}product[i,j] <= maxshipping_lim subject to restrict1: openwarehouse['NewYork'] - openwarehouse['LosAngeles'] <= 0 subject to restrict2: sum {j in warehouse} openwarehouse[j] <= warehouse1_lim subject to restrict3: openwarehouse['LosAngeles'] + openwarehouse['Atlanta'] >= warehouse2_lim subject to nonnegativity {i in region, j in warehouse}: product[i,j] >= 0 data set region := 1 2 3 set warehouse := NewYork LosAngeles Chicago Atlanta param: fixedcost := NewYork 400 LosAngeles 500 Chicago 300 Atlanta 150 param: demand := 1 80 2 70 3 40
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}