Operations Research
Operations Research
Operations Research
Industries
Solution:
Make the transformation
X ” 1 = x1- (-5), Hence substitute
(x ” 1 – 5) for x1 throughout the model.
Maximize : Z = 3(x ” 1 – 5) + 4x2
Subject to: 2(x ” 1 - 5) + x2 ≤ 40
X ” 1 – 5 + 3x2 ≤ 30
X ” 1 – 5 ≥ -5
X2 ≥0
Maximize: Z = 3x1+9x2
Subject to: x1+4x2 ≤ 8
x1+2x2 ≤ 4
x1 ≥ 0 , x2 ≥ 0
0 x4 4 1 2 0 1 2
Zj 0 0 0 0 0
Cj-Zj 3 9 0 0
2nd Tableau
Cj 3 9 0 0 ratios
Variables Solutio
Cb in n
basis a1 a2 a3 a4
Values,
xb
9 x2 2 1/4 1 1/4 0 2
0 x4 0 1/2 0 -1/2 1 0
Zj 18 9/4 9 9/4 0
3 x1 0 1 0 -1 2
Zj 18 3 9 3/2 3/2
Cb Variables Cj 3 4 0 0 Ratio
in Solution a1 a2 a3 a4
basis values, xb
0 X3 50 2 5 1 0 10
0 X4 30 1 3 0 1 10
Zj 0 0 0 0 0
Cj-Zj 3 4 0 0
Cb Variables Cj 3 4 0 0 Ratio
in Solution a1 a2 a3 a4
basis values, xb
4 X2 10 2 1 1 0 25
5 5
0 X4 0 1 0 3 1 0
5 5
Zj 40 8 4 4 0
5 5
Cj-Zj 7 0 4 0
5 5
THIRD TABLEAU
Cb Variables Cj 3 4 0 0 Ratio
in Solution a1 a2 a3 a4
basis values, xb
4 X2 10 0 1 -1 2 5
3 X1 0 1 0 3 -5 0
Zj 40 3 4 5 -7
Cj-Zj 0 0 -5 7
FOURTH TABLEAU
Cb Variables Cj 3 4 0 0 Ratio
in Solution a1 a2 a3 a4
basis values, xb
4 X2 10 1 0 25
2 1
5 5
0 X4 0 0 3 1 0
1 5
5
Zj 40 4 0
8 4 5
5
Cj-Zj 0 0
7 4
5 5
The dual
• Every LP problem has another LP problem
associated with it, which is called its dual.
• The first way of stating a linear problem is called the
primal of the problem; we can view all of the
problems formulated thus far as primals.
• The second way of stating the same problem is
called the dual.
• The optimal solutions for the primal and the dual are
equivalent, but they are derived through alternative
procedures
• Generally, if the LP primal involves
maximizing a profit function subject to less-
than-or-equal-to resource constraints, the dual
will involve minimizing total opportunity costs
subject to greater-than-or-equal-to product
profit constraints.
Z = 2000 xm1-s1 + 1700 xm1-s2 + 1600 xm2-s1 + 1100 xm2-s2 + 400 xs1-p + 800 xs2-
p
Demand constraint on P:
xs1-p + xs2-p = 100
Capacity constraints:
xm1-s1 30
xm1-s2 30
xm2-s1 50
xm2-s2 50
xs1-p 70
xs2-p 70
Non-negativity constraints:
xm1-s1 0
xm1-s2 0
xm2-s1 0
xm2-s2 0
xs1-p 0
xs2-p 0
The resulting linear programming model for this problem is:
subject to
xm1-s1 + xm1-s2 = 40
xm2-s1 + xm2-s2 = 60
xm1-s1 + xm2-s1 - xs1-p = 0
xm1-s2 + xm2-s2 - xs2-p = 0
xs1-p + xs2-p = 100
xm1-s1 30, xm1-s2 30
xm2-s1 50, xm2-s2 50
xs1-p 70, xs2-p 70
and
xm1-s1 0, xm1-s2 0
xm2-s1 0, xm2-s2 0
xs1-p 0, xs2-p 0