
292 Introduction to Linear Optimization and Extensions with MATLAB
R
x
2
+ y
−
2,2
− y
+
2,2
= 650 (8.13)
x
3
+ y
−1
3,2
− y
+
3,2
= 300 (8.14)
y
−
1,2
, y
+
1,2
, y
−
2,2
, y
+
2,2
, y
−
3,2
, y
+
3,2
≥ 0 (8.15)
x
1
+ y
−
1,3
− y
+
1,3
= 500 (8.16)
x
2
+ y
−
2,3
− y
+
2,3
= 800 (8.17)
x
3
+ y
−1
3,3
− y
+
3,3
= 400 (8.18)
y
−
1,3
, y
+
1,3
, y
−
2,3
, y
+
2,3
, y
−
3,3
, y
+
3,3
≥ 0. (8.19)
The objective function (8.1) minimizes the profit from each type of com-
puter produced plus the expected cost (8.2)-(8.4) from purchasing PCs in
scenarios of shortfall and penalties in scenarios of overproducing PCs. The
first set of constraints (8.5)-(8.7) are the first-stage constraints and ensure
that the amount of computers produced don’t ...