Stochastic Programming: Introduction and Examples: Amina Lamghari
Stochastic Programming: Introduction and Examples: Amina Lamghari
• Ignore it?
• The uncertain “factors” might interact with
our decision in a meaningful way…
Objective function
Maximize
170 w1 - 238 y1 – 150 x1 Wheat
Equivalent to
Min 150x1+230x2+260x3+238y1-170w1+210y2
-150w2 - 36w3- 10w4
Constraints
• Acres available for planting
x1+x2+x3 <= 500
• Minimum requirement for wheat
2.5x1+ y1 - w1 >= 200
• Minimum requirement for corn
3x2+ y2-w2 >= 240
• Maximum that can be sold at favorable price (sugar B)
w3 <= 6000
• Logical link (production sugar beets)
20x3 >= w3 + w4
• Non-negativity
x1,x2,x3,y1,y2, w1,w2,w3,w4>=0
Putting it all together
Maximize
-150x1-230x2-260x3-238y1+170w1- 210y2
+150w2+ 36w3+ 10w4
Subject to
x1+x2+x3 <= 500
2.5x1+y1-w1 >= 200
3x2+ y2-w2 >= 240
20x3-w3-w4 >= 0
w3 <= 6000
x1,x2,x3, ,y1,y2,w1,w2,w3,w4>=0
Solution with expected yields (mean yields)
• Two scenarios
• Good weather: 1.2 Yield
• Bad weather: 0.8 Yield
Formulation - Good Weather
Maximize
-150x1-230x2-260x3 - 238y1+170w1- 210y2
+150w2+ 36w3+ 10w4
Subject to
x1+ x2+ x3<=500
3 x1+ y1- w1 >= 200 (2.5 * 1.2 = 3)
3.6 x2+ y2- w2 >= 240 (3 * 1.2 = 3.6)
24 x3- w3- w4 >= 0 (20 *1.2 = 24)
w3 <= 6000
x1,x2,x3, y1,y2,w1,w2,w3,w4, >=0
Solution if Good Weather
Profit:$167,667
Formulation - Bad Weather
Maximize
-150x1-230x2-260x3 - 238y1+170w1- 210y2
+150w2+ 36w3+ 10w4
Subject to
x1+ x2+ x3<=500
2 x1+ y1- w1>=200 (2.5 * 0.8 = 2)
2.4 x2+ y2- w2>=240 (3 * 0.8 = 2.4)
16 x3- w3- w4>=0 (20 * 0.8 = 16)
w3<=6000
x1,x2,x3,y1,y2, w1,w2,w3,w4 >= 0
Solution if Bad Weather
Profit:$59,950
What should Tom do?
• The optimal solution is very sensitive to change on
the weather and the respective yields. The overall
profit ranges from $59,950 to $167,667
• Main issue sugar beets production: without knowing
the weather, he cannot determine how much land to
devote to this crop?
• Large surface: Might have to sell some at the
unfavorable price
• Small surface: Might miss the opportunity to sell
the full quota at the favorable price
What should Tom do?
• Long term weather forecasts would be very helpful: If
only he can predict the weather conditions 6 months
ahead….
-150x1-230x2-260x3
+1/3(170w11+150w21+36w31+10w41-238y11-210y21)
+ 1/3(170w12+150w22+36w32+10w42-238y12-210y22)
+ 1/3(170w13+150w23+36w33+10w43-238y13-210y23)
The constraints
• The difference
$115,406 - $108,390 = $7,016
is called expected value of perfect information
Where Q( x , ) min{q T
y | Wy h Tx, y 0} ,
is the
vector formed by the components of qT, hT, and T and
E denote the mathematical expectation with respect to ξ
Back to the farmer’s example