Lecture6-IE122 - IE 122 Lecture 6 Defining Parameters 1...

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

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

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

View Full DocumentRight Arrow Icon
Defining Parameters 1 Data file o set SET1 := A B C D; o set SET2 := L M N; o param Double : L M N := A 5 4 9 B 10 8 2 C 12 6 1 D 9 3 4; o param Cost := o L 300 o M 250 o N 322; Model file o set SET1; o set SET2; o param Double{ SET1,SET2 }; o param Cost {SET2}; Members of 2 nd set listed in declaration Members of 1 st set listed in declaration Member of the set it is defined over
Background image of page 2
Defining Parameters 2 Data file set SET1 := A B C D; set SET2 := L M N; set SET3 := X Y; param Triple := [*,*,X]: L M N := A 5 4 9 B 10 8 2 C 12 6 1 D 9 3 4 [*,*,Y]: L M N := A 5 4 9 B 15 7 2 C 12 6 0 D 8 1 3; Model file: set SET1; set SET2; set SET3; param Triple { SET1,SET2,SET3 };
Background image of page 3

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

View Full DocumentRight Arrow Icon
Defining Parameters 3 Model file: set SET1; param cost{SET1}; param avail{SET1}; param lowBD{SET1}; Data file-1: set SET1:= a b c; param cost:=a 10 b 11 c 12; param avail:=a 5 b 6 c 8; param lowBD:=a 0 b 0 c 1; Data file-2: set SET1:= a b c; param : cost avail lowBD := a 10 5 0 b 11 6 0 c 12 8 1;
Background image of page 4
Defining Parameters 4 Model file: set SET1; set SET2; param amount{SET1, SET2}; Data file-1: set SET1:= a b c; set SET2:= X Y; param cost: X Y:= a 1 5 b 3 2 c 4 7; Data file-2: set SET1:= a b c; set SET2:= X Y; param cost (tr): a b c := X 1 3 4 Y 5 2 7 ; Transpose
Background image of page 5

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

View Full DocumentRight Arrow Icon
Defining Parameters 5 Model file: set SET1; set SET2; param n_min{SET1}; param n_max{SET2}; Data file-1: set SET1:= a b c; set SET2:= a c d e; param n_min:= a 2 b 3 c 4; param n_max:= a 10 c 10 d 10 e 10; Data file-2: set SET1:= a b c; set SET2:= a c d e; param: n_min n_max:= a 2 10 b 3 . c 4 10 d . 10 e . 10; Means there is no value
Background image of page 6