Download presentation
Presentation is loading. Please wait.
Published byΠΠΎΡΠΈΡΠ° Π’ΠΎΠΌΠ°ΡΠ΅Π²ΠΈΡ Modified over 5 years ago
1
Chapter 5. The Duality Theorem
Given an LP, we define another LP derived from the same data, but with different structure. This LP is called the dual problem (μλλ¬Έμ ). The main purpose to consider dual is to obtain an upper bound (estimate) on the optimal objective value of the given LP (for maximization problem) without solving it to optimality. Also dual problem provides optimality conditions of a solution π₯ β for an LP and help to understand the behavior of the simplex method. Very important concept to understand the properties of the LP and the simplex method. OR-1 Opt. 2018
2
Preliminaries Taking nonnegative linear combination of inequality constraints: Consider two constraints π₯ 1 +2 π₯ 2 β€3 and 2 π₯ 1 + π₯ 2 β€4 β¦. (1β) In vector notation : π 1 β²π₯β€3, π 2 β²π₯β€4, where π 1 = , π 2 = 2 1 If we multiply scalars π¦ 1 β₯0 to both sides of the 1st constraint and π¦ 2 β₯0 to the 2nd constraint and add the l.h.s. and r.h.s. respectively, we get π¦ 1 +2 π¦ 2 π₯ 1 +(2 π¦ 1 + π¦ 2 ) π₯ 2 β€(3 π¦ 1 +4 π¦ 2 ) β¦.. (2β) In vector notation, π¦ 1 π 1 β²+ π¦ 2 π 2 β² π₯β€(3 π¦ 1 +4 π¦ 2 ) Any vector that satisfies (1β) also satisfies (2β), but converse is not true. Moreover, the coefficient vector in l.h.s. of (2β) is obtained by taking the nonnegative linear combination of the coefficient vectors in (1β) OR-1 Opt. 2018
3
x2 2x1+x2ο£4 y1(1, 2)+y2(2, 1), y1, y2 ο³ 0 x1+2x2ο£3 (1, 2) (2, 1)
(5/3, 2/3) (y1a1β+y2a2β)x ο£ (3y1+4y2) x1 (0, 0) OR-1 Opt. 2018
4
Getting Dual Problem ex) max 4 π₯ 1 + π₯ 2 +5 π₯ 3 +3 π₯ 4
s.t π₯ 1 β π₯ 2 β π₯ π₯ 4 β€1 5 π₯ π₯ 2 +3 π₯ 3 +8 π₯ 4 β€55 β π₯ 1 +2 π₯ 2 +3 π₯ 3 β5 π₯ 4 β€3 π₯ 1 , π₯ 2 , π₯ 3 , π₯ 4 β₯0 Lower bound on the optimal value : consider feasible solution (0, 0, 1, 0) ο π§ β β₯5 (3, 0, 2, 0) ο π§ β β₯22 Upper bound : consider inequality obtained by multiplying 0 to the 1st , 1 to the 2nd, and 1 to the 3rd constraints and add the l.h.s. and r.h.s. respectively 4 π₯ 1 + 3π₯ 2 +6 π₯ 3 +3 π₯ 4 β€ β¦β¦ (1) OR-1 Opt. 2018
5
Further, any feasible solution to the LP must satisfy
4 π₯ 1 + 3π₯ 2 +6 π₯ 3 +3 π₯ 4 β€ β¦β¦ (1) Since we multiplied nonnegative numbers on both sides of the inequalities, any vector that satisfies the three constraints (which includes feasible solutions to the LP) also satisfies (1). Hence any feasible solution to LP, which satisfies the three constraints and nonnegativity, also satisfies (1). Note that all the points satisfying 4 π₯ 1 +3 π₯ 2 +6 π₯ 3 +3 π₯ 4 β€58 do not necessarily satisfy the three constraints in the LP. Further, any feasible solution to the LP must satisfy 4 π₯ 1 + π₯ 2 +5 π₯ 3 +3 π₯ 4 β€4 π₯ 1 +3 π₯ 2 +6 π₯ 3 +3 π₯ 4 ( ο£ 58) since any feasible solution must satisfy nonnegativity constraints on the variables and the coefficients in the second expression is greater than or equal to the corresponding coefficients in the first expression (objective function). So 58 is an upper bound on the optimal value of the LP. OR-1 Opt. 2018
6
Now, we may use nonnegative weight π¦ π for πβπ‘β constraint .
max 4 π₯ 1 + π₯ 2 +5 π₯ 3 +3 π₯ 4 s.t π₯ 1 β π₯ 2 β π₯ π₯ 4 β€1 5 π₯ π₯ 2 +3 π₯ 3 +8 π₯ 4 β€55 β π₯ 1 +2 π₯ 2 +3 π₯ 3 β5 π₯ 4 β€3 π₯ 1 , π₯ 2 , π₯ 3 , π₯ 4 β₯0 Now, we may use nonnegative weight π¦ π for πβπ‘β constraint . π¦ 1 +5 π¦ 2 β π¦ 3 π₯ 1 + β π¦ 1 + π¦ 2 +2 π¦ 3 π₯ 2 + β π¦ 1 +3 π¦ 2 +3 π¦ 3 π₯ π¦ 1 +8 π¦ 2 β5 π¦ 3 π₯ 4 β€ π¦ π¦ 2 +3 π¦ 3 In vector notation, π¦ 1 1,β1,β1,3 + π¦ 2 5,1,3,8 + π¦ 3 β1,2,3,β5 β² π₯β€( π¦ π¦ 2 +3 π¦ 3 ) Objective function of the LP is 4 π₯ 1 + π₯ 2 +5 π₯ 3 +3 π₯ 4 OR-1 Opt. 2018
7
Hence as long as the nonnegative weights π¦ π β²π satisfy
π¦ 1 +5 π¦ 2 β π¦ 3 β₯4, β π¦ 1 + π¦ 2 +2 π¦ 3 β₯1 β π¦ 1 +3 π¦ 2 +3 π¦ 3 β₯5, 3 π¦ 1 +8 π¦ 2 β5 π¦ 3 β₯3 we can use π¦ π¦ 2 +3 π¦ 3 as an upper bound on optimal value. To find more accurate upper bound (smallest upper bound), we want to solve Dual problem obtained. Note that the objective value of any feasible solution to the dual problem provides an upper bound on the optimal value of the given LP (called primal problem). OR-1 Opt. 2018
8
P: primal problem, D: dual problem
General form P: primal problem, D: dual problem maximize π=1 π π π π₯ π maximize π β² π₯ (P) subject to π=1 π π ππ π₯ π β€ π π , π=1,β¦,π subject to π΄π₯β€π π₯ π β₯0, π=1,2,β¦,π π₯β₯0 minimize π=1 π π π π¦ π minimize π β² π¦ (D) subject to π=1 π π ππ π¦ π β₯ π π , π=1,β¦,π subject to π¦ β² π΄β₯πβ² π¦ π β₯0, π=1,2,β¦,π π¦β₯0 OR-1 Opt. 2018
9
Thm: (Weak duality relation)
Suppose ( π₯ 1 ,β¦, π₯ π ) is a feasible solution to the primal problem (P) and ( π¦ 1 ,β¦, π¦ π ) is a feasible solution to the dual problem (D), then π=1 π π π π₯ π β€ π=1 π π π π¦ π (5.4) pf) π=1 π π π π₯ π β€ π=1 π ( π=1 π π ππ π¦ π ) π₯ π = π=1 π ( π=1 π π ππ π₯ π ) π¦ π β€ π=1 π π π π¦ π οΏ Cor: If we can find a feasible π₯ β to (P) and a feasible π¦ β to (D) such that π=1 π π π π₯ π β = π=1 π π π π¦ π β , then x* is an optimal solution to (P) and y* is an optimal solution to (D). pf) For all feasible solution π₯ to (P), we have π=1 π π π π₯ π β€ π=1 π π π π¦ π β = π=1 π π π π₯ π β . Similarly, for all feasible y to (D), we have π=1 π π π π¦ π β = π=1 π π π π₯ π β β€ π=1 π π π π¦ π . ο
OR-1 Opt. 2018
10
(i.e., no duality gap, dual optimal value β primal optimal value = 0)
Thm 5.1: [Strong Duality Theorem] If (P) has an optimal solution ( π₯ 1 β ,β¦, π₯ π β ), then (D) also has an optimal solution, say ( π¦ 1 β ,β¦, π¦ π β ), and π=1 π π π π₯ π β = π=1 π π π π¦ π β . (i.e., no duality gap, dual optimal value β primal optimal value = 0) Note that strong duality theorem says that if (P) has an optimal solution, the dual (D) is neither unbounded nor infeasible, but always has an optimal solution. OR-1 Opt. 2018
11
Idea of the proof: Read the optimal solution of the dual problem from the coefficients of the slack variables in the zeroth equation from the optimal dictionary (tableau). ex) Note that the dual variables π¦ 1 , π¦ 2 , π¦ 3 matches naturally with slack variables π₯ 5 , π₯ 6 , π₯ 7 . For example π₯ 5 is slack variable for the first constraint and π¦ 1 is dual variable for the first constraint, and so on. OR-1 Opt. 2018
12
At optimality, the tableau looks
In the zeroth equation of the tableau, the coefficients of the slack variables are β11 for π₯ 5 , 0 for π₯ 6 , β6 for π₯ 7 . Assigning these values with reversed signs to the corresponding dual variables, we obtain desired optimal solution of the dual: π¦ 1 =11, π¦ 2 =0, π¦ 3 =6. OR-1 Opt. 2018
13
Suppose we performed row operations
Idea of the proof: Note that the coefficients of π₯ 5 , π₯ 6 , and π₯ 7 in the zeroth equation show what numbers we multiplied to the corresponding equation and add them to the zeroth equation in the elementary row operations (net effect of many row operations) ex) Suppose we performed row operations (row2) ο¬ 2ο΄(row 1) + (row 2), and then (row 0) ο¬ 3ο΄(row 2) + (row 0). The net effect in zeroth equation is adding 6ο΄(row 1) + 3ο΄(row 2) to the zeroth equation and the scalar we multiplied can be read from the coefficients of π₯ 5 and π₯ 6 in the zeroth equation. OR-1 Opt. 2018
14
(ex-continued) (row 1)ο΄2 + (row 2) OR-1 Opt. 2018
15
(ex-continued) (row 2) ο΄ 3 + (row 0) OR-1 Opt. 2018
16
Example β Initial tableau
Optimal tableau OR-1 Opt. 2018
17
π¦ π β€0, π=1,β¦,π (for slack variables)
Let π¦ π be the scalar we multiplied to the i-th equation and add to the zeroth equation in the net effect of many simplex iterations (elementary row operations). Then the coefficients of slack variables in the zeroth equation represent the π¦ π values we multiplied to the i-th equation for π=1,β¦,π. Also the coefficients of structural variables in the zeroth equation are given as π π + π=1 π π¦ π π ππ , π=1,β¦,π Now in the optimal tableau, all the coefficients in the zeroth equation are ο£ 0, which implies π¦ π β€0, π=1,β¦,π (for slack variables) π π + π=1 π π¦ π π ππ β€0, π=1,β¦,π (for stuctural variables) If we take (β π¦ π ), π=1,β¦,π as a dual solution, it is dual feasible. (β π¦ π )β₯0, π=1,β¦,π π=1 π (β π¦ π ) π ππ β₯ π π , π=1,β¦,π OR-1 Opt. 2018
18
It is the idea of the proof.
Also the constant term in the zeroth equation gives the value π=1 π π¦ π π π =β π=1 π (β π¦ π ) π π . So it is the negative of the dual objective value of the dual solution (β π¦ π ), π=1,β¦,π. Note that the constant term in the zeroth equation also gives the negative of the objective value of the current primal feasible solution. So we have found a feasible dual solution giving the dual objective value which is same as the objective value of the current primal feasible solution. From previous Corollary, the dual solution and the primal solution are optimal to the dual and the primal problem, respectively. It is the idea of the proof. OR-1 Opt. 2018
19
pf of strong duality theorem) Suppose we introduced slack variables
π₯ π+π = π π β π=1 π π ππ π₯ π (π=1,β¦,π) and solve the LP by simplex and obtain optimal dictionary with π§= π§ β + π=1 π+π π π π₯ π , π π β€0 βπ, π§ β = π=1 π π π π₯ π β . Let π¦ π β =β π π+π , π=1,β¦,π. We claim that π¦ π β , π=1,β¦,π is an optimal dual solution, i.e. it satisfies dual constraints and π=1 π π π π¦ π β = π§ β . Equate π§= π=1 π π π π₯ π and π§= π§ β + π=1 π π π π₯ π + π=π+1 π+π π π π₯ π ο π=1 π π π π₯ π = π§ β + π=1 π π π π₯ π + π=π+1 π+π π π π₯ π . This equation must be satisfied by any π₯ that satisfies the dictionary (excluding the nonnegativity constraints) since the set of feasible solutions satisfying the equations does not change. OR-1 Opt. 2018
20
Have π=1 π π π π₯ π = π§ β + π=1 π π π π₯ π + π=π+1 π+π π π π₯ π .
Substitute π₯ π+π = π π β π=1 π π ππ π₯ π , π=1,β¦,π into above. Since any feasible solution to the dictionary should satisfy this. ο π=1 π π π π₯ π = π§ β + π=1 π π π π₯ π β π=1 π π¦ π β ( π π β π=1 π π ππ π₯ π ) ο π=1 π π π π₯ π = π§ β β π=1 π π π π¦ π β + π=1 π ( π π + π=1 π π ππ π¦ π β ) π₯ π Now this equation should hold for all feasible solutions to the dictionary (disregarding nonnegativity constraints). From the initial dictionary, we know that any feasible solution to the dictionary (disregarding nonnegativity constraints) can be obtained by assigning arbitrary values to π₯ 1 ,β¦, π₯ π and setting π₯ π+π = π π β π=1 π π ππ π₯ π , (π=1,β¦,π). Use these solutions. Note that, in the above equation, the variables π₯ π+π β²π do not appear. So it must hold for any value of π₯ π , π=1,β¦,π. OR-1 Opt. 2018
21
Equality must hold for all values of π₯ 1 ,β¦, π₯ π .
π=1 π π π π₯ π = π§ β β π=1 π π π π¦ π β + π=1 π ( π π + π=1 π π ππ π¦ π β ) π₯ π Equality must hold for all values of π₯ 1 ,β¦, π₯ π . Hence π§ β = π=1 π π π π¦ π β , π π = π π + π=1 π π ππ π¦ π β , π=1,β¦,π π π β€0 βπ ο π π β π=1 π π ππ π¦ π β β€0 ο π=1 π π ππ π¦ π β β₯ π π , π=1,β¦,π. β π¦ π β β€0 ο π¦ π β β₯0, π=1,β¦,π Hence π¦ β is dual feasible. Also we have that π=1 π π π π¦ π β = π§ β = π=1 π π π π₯ π β . Since π=1 π π π π¦ π β = π=1 π π π π₯ π β β€ π=1 π π π π¦ π for all dual feasible π¦ (weak duality), π¦ π β , π=1,β¦,π is an optimal dual solution and π=1 π π π π¦ π β = π=1 π π π π₯ π β οΏ OR-1 Opt. 2018
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.