Chapter 4 Sensitivity Analysis 2 (Compatibility Mode)
Chapter 4 Sensitivity Analysis 2 (Compatibility Mode)
xj column in optimal constraints = B-1aj RHS of optimal tableaus constraints = B-1b Coefficient of NBV in optimal Row 0: j = cBVB-1aj-cj Slack variable, si : ith element of cBV B-1 1) Excess variable, variable ei : - (ith element of cBV B-1 Artificial variable, ai : (ith element of cBV B-1) + M (Max problem) RHS of optimal Row 0 = cBV B-1b
1
We must find B-1 to compute all parts of optimal tableau We must find cBV B-1 to compute the optimal tableau Row 0.
Example p 1: ( (Refer to Example p 4 Chapter p 3) ) For the following LP, the optimal basis is }. Compute p the optimal p tableau. BV = { x2,s2 } min z = 2x1 - 5x2 s.t 3x1+8x2 12 2x1+3x2 6 x1,x2 0 Solution 1: The standard form min z = 2x1 - 5x2 s.t 3x1+8x2 +s1 =12 +s2 = 6 2x1+3x2 x1,x2 ,s1,s2 0
3
Solution 1: The standard form min z = - 5x2+s2+ 2x1+s1 s.t t 8x 8 2 + 3x 3 1+s1 =12 12 3x2 + s2 + 2x1 =6 x1,x2 ,s1,s2 0
x x z = [ 5 0] 2 + [ 2 0] 1 s2 s1 8 0 x2 3 1 x1 12 3 1 s + 2 0 s = 6 2 1 x2 x1 s 0, s 0 2 1
LHS=formula B-1aj
1 8 1 x1 = B a1 = 3 8 1 8 1 s1 = B as1 = 3 8 3 0 3 8 = 2 7 1 8 1 0 1 8 = 0 3 1 8
RHS=formula B-1b
1 3 0 8 12 2 = 3 6 3 1 8 2
5
3 x2 8 s + 7 2 8
1 3 8 x1 2 = 3 s1 3 2 8
cBV B 1
1 0 8 5 = [ 5 0] 0 = 3 1 8 8
RHS
15 5 12 cBV B b = 0 = 8 8 6
1
Row 0 1 2
BV z x2 s2
z 1 0 0
x2 0 1 0
s2 0 0 1
x1
s1
RHS
3/8 7/8
1/8 -3/8
3/2 3/2
7
Remember Remember, the BVs will have zero coefficient in Row 0. Thus, the complete optimal tableau z (31/8)x1 (5/8)x2 = -15/2 (3/8) 1+ x2 +s1 = 3/2 (3/8)x (7/8)x1-(3/8)x2+s2= 3/2
If any constraint t i t has h a negative ti RHS, RHS BV is now an infeasible basis. If a variable in Row 0 may y have a negative g coefficient, BV is now a suboptimal basis.
Three types of changes in an LP parameter ) Changing g g the objective j function coefficient of a 1) nonbasic variable. 2) Changing the objective function coefficient of a basic variable. 3) Changing the right hand side (RHS) of a constraint.
10
11
ROW 0 1 2 3
BV z s1 x3 x1
z 1 0 0 0
x1 0 0 0 1
x2 5 -2 -2 1.25
x3 0 0 1 0
s1 0 1 0 0
s2 10 2 2 -0.5
s3 10 -8 -4 1.5
RHS 280 24 8 2
12
xBV
s1 , x = 3 x1
xNBV
x2 , s = 2 s3
2 8 1 B1 = 0 2 4 0 1/ 2 3 / 2
The only nonbasic decision variable is x2. Coefficient of x2 of objective function is currently c2 =30
Question: F what For h t value l of f c2 would ld BV remain i optimal? ti l? Suppose we change c2 from 30 to 30 30+ so B remain unchange. Step 1: Determine whether RHS of constraint is nonnegative. Check Formula: B-1b Does B-1 changed? NO Does b changed? NO Therefore RHS of constraints have nonnegative Therefore, values. BV is still feasible (remain unchanged)
14
Step p 2: Determine the coefficient of NBV in optimal Row 0 Check Formula: j=cBVB-1aj-cjj. BV remain optimal if j 0 p if j < 0 BV will be suboptimal The only variable will be change is
BV will remain optimal if 5-0 5 If the coefficient of x2 is decreased or increased by 5 or less, (in other word, c2 30+5=35) BV will remains optimal. If c2>35 35 , BV will ill b be suboptimal b ti l ( (no l longer optimal). This is because j < 0. We need to find the new optimal solution solution. We can increase z by making x2 as basic variables
16
Pivot element
Optimal Tablaeu
ROW 0 1 2 3
BV z s1 x3 x2
z 1 0 0 0
x2 0 0 0 1
x3 0 0 1 0
s1 0 1 0 0
Step 2: Determine the coefficient of NBV in optimal R Row 0 Check Formula: j=cBVB-1aj-cj. BV remain optimal p if j 0 BV will be suboptimal if j < 0
2 8 1 0 = 0 10 0.5 10 + 0.5 cBV B 1 = [ 0 20 60 + ] 2 4 [ ] 0 0.5 1.5 s1 , x3 , x1 are BV, BV th their i coefficient ffi i t in i optimal ti l tablaeu t bl Row R 0 must t still till be b 0 6 30 = 5 + 1.25 c2 = cBV B 1 a2 c2 = [ 0 10 0.5 10 + 0.5 ] 2 1.5 cs 2 = cBV B 1 as 2 cs 2 = 2th element of cBV B 1 = 10 0.5 cs 3 = cBV B 1 as 3 cs 3 = 3th element of cBV B 1 = 10 + 0.5
20
21
ROW 0 1 2 3
BV z s1 x3 x1
z 1 0 0 0
x1 0 0 0 1
x2 55 -2 2 -2 1.25
x3 0 0 1 0
s1 0 1 0 0
s2 -10 2 2 -0.5
s3 70 -8 8 -4 1.5
RHS 360 24 8 2
Pivot element
23
Optimal tableau
ROW 0 1 2 3
BV z s1 s3 x1
z 1 0 0 0
x1 0 0 0 1
x2 45 0 -1
x3 5 -1 0.5
s1 0 1 0 0
s2 0 0 1 0
s3 50 -4 -2 0.5
RHS 400 16 4 4
0.75 0.25
24
Therefore, current basis remain optimal for -44 or 16 =20-4 b220+4 =24
26
We will use dual simplex algorithm to solve LPs when the initial tableau has one or more ve RHS and each variable in Row 0 has nonnegative coefficient.
28