Вы находитесь на странице: 1из 9

Parameters Price A Price B

16 14

Variables X1 X2 XBU
30 0 10

Variables

Objective Function max 1220

Constraints 60 <= 60
30 <= 40
10 >= 10
10 >= -10
//Maximum labor
//Maximum raw material
//Absolute value of unsold units
Parameters Price A Price B
16 14

Variables X1 X2
30 0

Intermediate variables XBU


10

Objective Funmax 1220

Constraints 60 <= 60 //Maximum labor


30 <= 40 //Maximum raw material
10 >= 10
//Absolute value of unsold
10 >= -10 units
10 >= 0
Parameters Price X1 Price X2 Price X3
7 11 9.5

Variables P1 P2 P3
40000 55471.6981132 15094.33962

Intermediate variables

Objective Function min $1,033,584.91

Constraints 15094.33962 <= 35000


40000 <= 40000
55471.69811 <= 60000
144000 <= 144000
90000 >= 90000
//Sawmill capacity
//Grade 1 availabiliy
//Grade 2 availabiliy
//Dryer capacity (in seconds)
//Demand satisfaction
Parameters Profit X1 Profit X2 Holding C (1y)
5 3 2

Variables X Produced in Y1 Produced in Y2 Produced in Y3


Sold in Y1 100 0 0
Sold in Y2 0 200 0
Sold in Y3 0 0 150

Objective Function max $3,600.00 (in thousands of $)

Constraints 0 >= 0
300 <= 320
300 <= 320
300 <= 320
100 <= 100
200 <= 200
150 <= 300
200 <= 200
100 <= 100
150 <= 150
0= 0
0= 0
0= 0
0= 0
0= 0
0= 0
Max dem x Max dem y
Y1 100 200
Y2 200 100
Y3 300 150

Y Produced in Y1 Produced in Y2 Produced in Y3


Sold in Y1 200 0 0
Sold in Y2 0 100 0
Sold in Y3 0 0 150

//Pollution emissions å åY ³ å å X
ij ij
//Max production in Year 1
//Max production in Year 2
//Max production in Year 3
//Cannot sell more than demand of truck 1 in year 1
//Cannot sell more than demand of truck 1 in year 2
//Cannot sell more than demand of truck 1 in year 3
//Cannot sell more than demand of truck 2 in year 1
//Cannot sell more than demand of truck 2 in year 2
//Cannot sell more than demand of truck 2 in year 3
//Trucks 1 sold in year j have to already be produced.
//Trucks 1 sold in year j have to already be produced.
//Trucks 1 sold in year j have to already be produced.
//Trucks 2 sold in year j have to already be produced.
//Trucks 2 sold in year j have to already be produced.
//Trucks 2 sold in year j have to already be produced.
Parameters Cost Method 1 Method 2 T
Box board 25 20 Box board
Tissue paper 26 21 Tissue Paper
Newsprint 28 23 Newsprint
Book paper 30 25 Book paper

Variables X Method 1 Method 2 P


Box board 0 0 Box board
Tissue paper 6.82121026E-13 0 Tissue paper
Newsprint 2222.22222222 0 Newsprint
Book paper 777.777777778 3000 Book paper

Objective Function min $160,555.56

Constraints 3000 <= 3000 //Maximum capacity method 1


3000 <= 3000 //Maximum capacity method 2
0= 0 //Paper grade 1 cannot use box b
0= 0 //Paper grade 1 cannot use box b
0= 0 //Paper grade 2 cannot use tissu
0= 0 //Paper grade 3 cannot use book
0 >= 0 //Flow constraint
1.22782E-13 >= 0 //Flow constraint
600 >= 600 //Flow constraint
1240 >= 1240 //Flow constraint
500 >= 500 //Demand satisfaction
740 >= 500 //Demand satisfaction
600 >= 600 //Demand satisfaction
Method 1 Method 2
x board 13.5% 12.0%
sue Paper 18.0% 16.0%
wsprint 27.0% 24.0%
ok paper 36.0% 32.0%

Grade 1 Grade 2 Grade 3


0 0 0
0 0 0
0 0 600
500 740 0

Maximum capacity method 1


Maximum capacity method 2
Paper grade 1 cannot use box board pulp in its production.
Paper grade 1 cannot use box board pulp in its production.
Paper grade 2 cannot use tissue paper pulp in its production.
Paper grade 3 cannot use book print pulp in its production.
Flow constraint
Flow constraint
Flow constraint
Flow constraint
Demand satisfaction
Demand satisfaction
Demand satisfaction

Вам также может понравиться