Professional Documents
Culture Documents
6 LP - Post Optimal Analysis
6 LP - Post Optimal Analysis
Programming
Post optimal analysis
Duality – example 1
Primal Problem: Dual Problem:
max z = 7x1+ 10x2 min w = 24y1+ 13y2
subject to subject to
y1: 5x1+ 4x2 ≤ 24 x1: 5y1+ 2y2 ≥ 7
y2: 2x1 + 5x2 ≤ 13 x2: 4y1 + 5y2 ≥ 10
x1 , x2 ≥ 0 y1 , y2 ≥ 0
Example 1 – optimal solution (primal problem)
Basic x1 x2 s1 s2 RHS
• Optimal solution:
x1 1 0 5/17 -4/17 4 x1= 4
x2= 1
x2 0 1 -2/17 5/17 1 Z= 38
Z 0 0 15/17 22/17 38
w 0 0 -4 -1 38
Dual problem – example 2
Primal Problem: Dual Problem:
max z = 3x1+ 4x2 min w = 6y1+ 40y2 + 7y3
subject to subject to
y1: -2x1+ 3x2 ≤ 6 x1: -2y1+ 5y2 + y3 ≥ 3
y2: 5x1 - x2 ≤ 40 x2: 3y1 - y2 + y3 ≥ 4
y3: x1 + x2 ≤ 7 y1 , y2 , y3 ≥ 0
x1 , x2 ≥ 0
Dual problem – example 3
Primal Problem: Dual Problem:
max : z = c1x1 + c2x2 + …+ cnxn min : w = b1y1 + b2y2 + …+ bmym
Subject to Subject to
a11x1 + a12x2 + …+ a1nxn ≤ b1 a11y1 + a21y2 + …+ am1ym ≥ c1
a21x1 + a22x2 + …+ a2nxn ≤ b2 a12y1 + a22y2 + …+ am2ym ≥ c2
⋮ ⋮
am1x1 + am2x2 + …+ amnxn ≤ bm a1ny1 + a2ny2 + …+ amnym ≥ cn
x1, x2,…, xn ≥ 0 y1, y2,…, ym ≥ 0
Dual problem – example 4
Primal Problem: Dual Problem:
max z = 7x1+ 10x2 - x3 min w = 24y1+ 13y2 + 5y3 + 10y4
subject to subject to
y1: 5x1+ 4x2 ≤ 24 x1: 5y1 + 2y2 + y3 ≥ 7
y2: 2x1 +5x2 + 3x3 = 13 x2: 4y1 + 5y2 - 2y3 + y4 ≤ 10
y3: x1 - 2x2 + x3 ≥ 5 x3: 3y2 + y3 + 2y4 = -1
y4: x2 + 2x3 ≤ 10 y1≥0 , y2 unrestricted, y3≤0 , y4≥0
x1≥0, x2≤0 , x3 unrestricted
Dual problem in general
Primal Dual
max min
ith constraint ≥ type yj ≤ 0
ith constraint ≤ type yj ≥ 0
ith constraint = type yi unrestricted
xj ≥ 0 jth constraint ≥ type
xj ≤ 0 jth constraint ≤ type
xj unrestricted jth constraint = type
Significance of dual problem
1. Mathematically very important
2. Computationally
One model (with fewer constraints) is easy to solve
Primal Dual
• The value of the slack or artificial coefficient in the objective function row in the final optimal primal tableau
gives the optimal value of the associated dual variable.
• Complementary slackness
• Product of the jth decision variable and jth dual slack = 0
• ith slack variable × ith dual variable = 0 at optimal
• If si > 0 then yi = 0
• If yi > 0 then si = 0
Sensitivity analysis
Sensitivity analysis is to answer the following question:
How does the optimal solution change as a coefficient is varied from its
given value?
In this course, we shall discuss the first two types of sensitivity analysis
only.
Range of objective function coefficients
Case 1: Non-basic variable
What happens if the coefficient of a non-basic objective function, cj, is changed by an amount of δ?
If c2= 10 + δ, what would happen to the coefficients in the objective function row?
We note that in applying the Simplex algorithm, the Row(0) are updated from tableau to tableau in the
following manner:
That is, Row(0) values are determined solely by row operations of adding multiples of the other rows to
Row(0). Therefore, the term δ should remain unchanged in the final tableau.
Range of objective function coefficients (cont’d)
It follows that the final simplex tableau is given by:
Basic x1 x2 s1 s2 RHS
• Case 2: Basic variable
x1 1 4/5 1/5 0 24/5
• What happens if the coefficient of a basic
objective function, cj, is changed by an
amount of δ? s2 0 17/5 -2/5 1 17/5
• If c1 = 20+δ, what would happen to the Z -δ 6 4 0 96
coefficients in the objective function row?
• The final Simplex tableau now becomes
Range of objective function
coefficients (cont’d)
Basic x1 x2 s1 s2 RHS
It follows that
δ ≥ -7.5
δ ≥ -20
Basic x1 x2 s1 s2 RHS
x1 1 4/5 1/5 0 24/5+ δ/5
s2 0 17/5 -2/5 1 17/5-(2/5)δ
Z 0 6 4 0 96+4δ
Basic x1 x2 s1 s2 RHS
x1 1 4/5 1/5 0 24/5
s2 0 17/5 -2/5 1 17/5+δ
Z 0 6 4 0 96
It follows that
δ ≥ -17/5 or b2 ≥ 9.6
Range of RHS values (cont’d)
Basic x1 x2 s1 s2 s3 RHS
Memaksimumkan z = 3x1 + 5x2 s1 0 0 1 1/3 -1/3 2
Terbatas pada x1 £ a
x2 0 1 0 1/2 0 6
2x2 £ b x1 1 0 0 -1/3 1/3 2
3x1 + 2x2 £ c
z 0 0 0 3/2 1 36
x1, x2 ³ 0
a. Tentukan nilai a, b, dan c
b. Buatlah model dual untuk linear programming tersebut!
c. Tentukan kisaran nilai koefisien x1 pada fungsi tujuan
sehingga solusi saat ini tetap menjadi solusi optimal!
Diketahui permasalahan sebagai berikut:
Soal 4
Memaksimumkan z = 3x1 + x2 + 4x3
Terbatas pada 6x1 + 3x2 + 5x3 £ 25
3x1 + 4x2 + 5x3 £ 20
x1, x2, x3 ³ 0
Sedangkan berikut adalah persamaan-persamaan yang terbentuk berdasarkan nilai pada Tabel simpleks
optimal untuk kasus tersebut:
! ! ! #
x1 - "x2 + s -
" 1 " 2
s = "
! $
x2 + x3 - #
s 1 + # 2
s =3
! "
z + 2x2 + s + s = 17
# 1 # 2