Optimization Examples
Optimization Examples
xls
Limit
Supply 1225 0 1 1 1 1 1 1 1
Volatility 0.00 0.00 -0.04 -0.03 -0.01 0.01 0.02 0.03 0.04
Union 0 0 1 1 -1 1 -1 1 -1
Truck 720 0 1 1 1 1
Rail 650 0 1 1 1
TOTAL
COST 0 49.50 50.00 61.00 63.50 66.50 71.00 72.50
Page 1
442135862.xls
Hopt
0
490
1 NO
0.06 OK
-1 OK
OK
1 OK
80.00
Page 2
Atl Chi Den Hou LsA Mem
demand 100 200 150 300 400 125
Cost 11102
NwY Pit StL
500 175 200
Limit
Supply 1225 1225 1 1 1 1 1 1 1
Volatility 0.00 0.00 -0.04 -0.03 -0.01 0.01 0.02 0.03 0.04
Union 0 125 1 1 -1 1 -1 1 -1
Truck 720 720 1 1 1 1
Rail 650 505 1 1 1
TOTAL
COST 73268 49.50 50.00 61.00 63.50 66.50 71.00 72.50
Page 5
442135862.xls
Hopt
0
490
1 OK
0.06 OK
-1 OK
OK
1 OK
80.00
Page 6
Atl Chi Den Hou
demand 100 200 150 300
StLouis 0 0 0 0
Cost 11102
LsA Mem NwY Pit StL
400 125 500 175 200
Facilities
Boston
Chicago
Tulsa
Denver
San Diego
Shipping
LsA Mem NwY Pit StL Costs
19.46 3.49 7.60 5.25 4.73 Boston
8.37 8.54 16.41 13.04 7.80 Chicago
15.99 0.00 9.70 6.54 2.27 Tulsa
21.41 6.54 3.37 0.00 5.56 Denver
San Diego
15.89 2.27 8.93 5.56 0.00
0 0 0 0 0 0 0 San Diego
Cost
New York Boston Denver San Diego Seattle Chicago
500 400
0 0 0 0 0 0
Demand 300 200 50 200 250 200
0
Tulsa
100
Tulsa
5.23
3.24
0
2.19
5.7
0
100
A company is producing nutrition bars for market, and wishes to determine what quantitie
for each bar to meet certain nutritional requirements at a minimum cost. The number of u
contained within a gram of each food ingredient is given in the following table, along with
ingredients’ costs:
Carbohydrates 10
Protein 5
Fiber 2
Cost (cents) 4
Objective
a*X1+b*X2+c*X3.
a=4
b=6
c=5
a=5
b=4
c=5
d=20
a=2
b=4
c=2
d=20
determine what quantities of the following ingredients should be used
m cost. The number of units of each type of basic nutritional element
llowing table, along with the daily nutritional requirements and
Material A
Profit Material B (lbs.)
(lbs.)
C-10 $100 10 25
C-20 $250 65 20
C-30 $450 30 35
300 150
cellphones: the C-10,
B and C) are critical to
e 300 lbs., 150 lbs. and
tions of
daily for safety
rials needed to make
X1 X2
20 0
200
C-10 Constraint 1 10
C-20 Constraint 2 65
C-30 Constraint 3 30
X1
Decision Variables 0
X3
And
X2 X3 Z
0 0 0 X1 ≥ 0, X2 ≥ 0, X3 ≥ 0
0X1 +250 X2 + 450X3 subject to
X2 ≤ 8
2X1 + 5X2 ≤ 60
X1 + X2 ≤ 20
5X2 + X3 <= 300 and
0X2 + 50 X3 <= 150 X1 ≥ 0, X2 ≥ 0
5X2 + 20 X3 = 200
X2 ≥ 0, X3 ≥ 0
New York Boston Denver San Diego Seattle
Fixed
Facilities cost for Capacity open
capacity
Shipping
New York Boston Denver San Diego Seattle
Costs
Boston 2.7 0 5.3 6.17 7.75
Chicago 3.6 4.21 4.91 5.23 6.5
Tulsa 5.24 6.78 3.28 5.48 6.92
Denver 5.17 5.98 0 6.2 6.8
San Diego 6.35 6.17 6.2 0 2.19
Cost 3827
Chicago Tulsa
200 100
Chicago Tulsa
5.12 5.23
0 3.24
3.9 0
3.1 2.19
5.3 5.7
0 0 400
400
200 100
200 100
Available Capacity (In
Machine Type Profit
machine hours per week)
Milling Machine 40
Lathe Machine 35
Grinder 35
Decision Variables
Constraint 1
Constraint 2
Constraint 3
Machine
Product A Product B Product C
Type
Milling
3 2 4
Machine
Lathe
5 0 3
Machine
Grinder 2 3 0
60 30 50
And
X1 ≥ 0, X2 ≥ 0, X3 ≥ 0
Z = 60X_1 +30X_2 + 50X_3
subject to
X1 ≥ 0, X2 ≥ 0, X3 ≥ 0