Dual Linear Programming and Complementary Slackness
Dual Linear Programming and Complementary Slackness
Theorem
U Dinesh Kumar
This session…
Relationship between Primal and Dual Linear
Programming.
Allocation of Valuation of
limited resource Resource
M aximize Z C1 x1 C2 x2 ... Cn xn
Subject
a11x1 a12 x2 ... a1n xn b1
a 21x1 a22 x2 ... a2 n xn b2
...........................................
a m1 x1 am 2 x2 ... amn xn bm
x1 , x2 ,..., xn 0
Standard Form of LP (Minimization)
Standard Minimization Problem
M inimize Z C1 x1 C2 x2 ... Cn xn
Subject
a11x1 a12 x2 ... a1n xn b1
a 21x1 a22 x2 ... a2 n xn b2
...........................................
a m1 x1 am 2 x2 ... amn xn bm
x1 , x2 ,..., xn 0
Primal and Dual
M ax Z CX M in W Yb
Subject to : Subject to :
AX b yA c
and and
X0 y0
Manvi Motors (Primal and Dual)
Primal Dual
M ax 3500 C 5000 T M in 12000 y1 10000 y2
S.t. S.t.
20 C 40 T 12000 20 y1 25 y2 3500
25 C 10 T 10000 40 y1 10 y2 5000
C, T 0 y1, y2 0
Primal-Dual relationship
If the primal has n variables and m resource constraints (standard
form), the dual will have m variables and n constraints.
cx yb
D
C
Cars
E
A
O
Isoprofit line
Trucks
40Y1 + 10Y2 5000
Manvi Motors – Dual Problem
C
Y2
B
A 20Y1 + 25Y2 3500
O
Y1
Strong Duality Property
If x* is an optimal solution for the primal and y* is an
optimal solution for the dual problem, then:
cx* = y*b
Applications of strong duality
If X* and Y* are feasible solutions of primal and dual and if their
corresponding objective functions are equal, then X* and Y* are
optimal solutions.
Primal
Max Z 2X1 X2 M ax Z 2x1 X3 X4
Subject to : S.t.
X1 X3 X4 2
X1 X2 2
- X1 - X3 X4 -2
2X1 - X2 3 - 2X1 X3 X4 - 3
X1 - X2 1 X1 - X3 X4 1
Where
X1 0, X2 is urs X2 X3 - X4
Example 1
Primal Dual
M ax Z 2x1 X3 X4
S.t. M in 2y1- 2y2- 3y3 y4
X1 X3 X4 2
- X1 - X3 X4 -2 y1- y2- 2y3 y4 2
- 2X1 X3 X4 - 3
X1 - X3 X4 1 y1- y2 y3- y4 1
Where
X2 X3 - X4
- y1 y2- y3 y4 -1
Y1 – y2 + y3 – y4 = 1
Primal – Dual Relationship
Let x = (x1, x2, . . ., xn) is primal feasible and that y = (y1, y2,
. . . , ym) is dual feasible.
A pair of feasible solutions (x* and y*) for the primal and dual,
respectively, to be optimal for the primal and dual a necessary and
sufficient conditions is: