examp3 - subject to Supply{i in 1.warehouse sum{j in...

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

View Full Document Right Arrow Icon
### two dimension example: param warehouse; param customer; ## other parameters param cost{ i in 1. .warehouse,j in 1. .customer}; param supply{i in 1. .warehouse}; param demand{ j in 1. .customer}; var x{i in 1. .warehouse, j in 1. .customer}; minimize Cost: sum{ i in 1. .warehouse, j in 1. . customer} cost[i,j]*x[i,j];
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: subject to Supply {i in 1. .warehouse}: sum {j in 1. .customer} x[i,j]=supply[i]; subject to Demand {j in 1. .customer}: sum {i in 1. .warehouse} x[i,j]=demand[j]; subject to positive{i in 1. .warehouse, j in 1. .customer}: x[i,j]>= 0;...
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