lecture5-IE122 - IE 122 Lecture 5 Summary for syntax: var...

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

View Full Document Right Arrow Icon
IE 122 Lecture 5
Background image of page 1

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

View Full DocumentRight Arrow Icon
Summary for syntax:  1 2 1 * * S j S i S j j j ij ij T k x c var x{Products} >=0; var x{j in Products}>=minDemand[j]; Assume 2 sets, S1, S2: set S1:=a b c; set S2:=w1 w2 w3; If objective is: Minimize obj: sum{j in S1,i in S2}x[i,j]*c[i,j] +sum{j in S1}k[j]*T[j]; If constraint is: subject to const {i in S2}:sum{j in S1}t[j]*x[i,j]<=const[i]; If constraint is subject to const :sum{j in S1}t[j]*T[j]<=const; 2 * 1 S i const x t S j i ij j   1 * S j j j const T t
Background image of page 2
Diet Model FOOD NUTRIENT BEEF CHK FISH HAM MCH MTL SPG TUR MIN REQ A 60 8 8 40 15 70 25 60 700 C 20 0 10 40 35 30 50 20 700 B1 10 20 15 35 15 15 25 15 700 B2 15 20 10 10 15 15 15 10 700 Cost 3.19 2.59 2.29 2.89 1.89 1.99 1.99 2.49 We have a set of foods that we can eat: beef, chicken, fish, ham, macaroni & cheese, meat loaf, spaghetti, turkey. Each food includes some amount of each nutrient: vitamin A, B1, B2, C. Minimum and maximum consumption amounts for each food are 0 and 100. Maximum requirement level for each nutrient is 10000.
Background image of page 3

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

View Full DocumentRight Arrow Icon
Diet.mod set NUTR; set FOOD; param cost {FOOD} > 0; param f_min {FOOD} >= 0; param f_max {j in FOOD} >= f_min[j]; param n_min {NUTR} >= 0; param n_max {i in NUTR} >= n_min[i]; param amt {NUTR,FOOD} >= 0; var Buy {j in FOOD} >= f_min[j], <= f_max[j]; minimize Total_Cost: sum {j in FOOD} cost[j] * Buy[j]; subject to Diet {i in NUTR}: n_min[i] <= sum {j in FOOD} amt[i,j] * Buy[j] <= n_max[i];
Background image of page 4
Diet.dat data; set NUTR := A B1 B2 C ;
Background image of page 5

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

View Full DocumentRight Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 07/08/2011 for the course IE 121 taught by Professor Perevalov during the Spring '08 term at Lehigh University .

Page1 / 16

lecture5-IE122 - IE 122 Lecture 5 Summary for syntax: var...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online