Lecture 3 Dual Theory Part I 1 PDF
Lecture 3 Dual Theory Part I 1 PDF
Yue Chen
MAE, CUHK
email: [email protected]
Sep 14, 2021
1
Content of this course (tentative)
Linear programming
Lecture 2
Linear
Dual Theory – Part I
Lecture 3
Linearization
technique Programming
Lecture 7 Unconstrained optimization Lecture 13
Lecture 5 & 6
A company has 𝑅𝑅 kind of resources to produce 𝑁𝑁 items. Item 𝑛𝑛 ∈ {1, … , 𝑁𝑁} needs 𝑎𝑎𝑛𝑛𝑛𝑛
unit of resource 𝑟𝑟 ∈ {1, … , 𝑅𝑅}. The endowment of resource 𝑟𝑟 ∈ {1, … , 𝑅𝑅} is 𝑐𝑐𝑟𝑟 . The
price of item 𝑛𝑛 ∈ {1, … , 𝑁𝑁} is 𝑏𝑏𝑛𝑛 . How to maximize the total profit?
4
Introduction – General case
A company can also choose to sell all of its resource endowments 𝑐𝑐𝑟𝑟 , ∀𝑟𝑟 = 1, … , 𝑅𝑅 to
let another company to produce. Suppose the price for resource 𝑟𝑟 ∈ 1, … , 𝑅𝑅 is 𝑥𝑥𝑟𝑟 .
The company wants to ensure that the profit ∑𝑅𝑅𝑟𝑟=1 𝑎𝑎𝑛𝑛𝑛𝑛 𝑥𝑥𝑟𝑟 of selling 𝑎𝑎𝑛𝑛1 , … , 𝑎𝑎𝑛𝑛𝑛𝑛 unit of
resource 1, … , 𝑅𝑅 respectively, which are just adequate to produce one unit of product 𝑛𝑛,
is no less than the profit 𝑏𝑏𝑛𝑛 of producing and selling this unit of product 𝑛𝑛 by itself.
Meanwhile, it tries to minimize the total payment ∑𝑅𝑅𝑟𝑟=1 𝑐𝑐𝑟𝑟 𝑥𝑥𝑟𝑟 by the other company for
purchasing resources, so that the other company is willing to buy resources and
produce.
5
Basic models
Secondary problem, concerns primal problem
Major problem
Primal problem Dual problem
𝑻𝑻
𝒃𝒃 = 𝒃𝒃𝟏𝟏 , … , 𝒃𝒃𝑵𝑵
𝑻𝑻 𝑻𝑻
𝒚𝒚 = 𝒚𝒚𝟏𝟏 , … , 𝒚𝒚𝑵𝑵 𝒙𝒙 = 𝒙𝒙𝟏𝟏 , … , 𝒙𝒙𝑹𝑹
Compact form
7
Another Example
How to find a systematic way to estimate a lower bound of an LP’s optimal value?
Lambda convert signs:
Variables time lambda 1…n
to convert signs
× 𝝀𝝀𝟏𝟏 ≥ 𝟎𝟎
× 𝝀𝝀𝟐𝟐 ≤ 𝟎𝟎
…
lambda 1…n
× 𝝀𝝀𝑵𝑵
𝑁𝑁
𝑑𝑑𝑟𝑟 = � 𝑎𝑎𝑛𝑛𝑛𝑛 𝜆𝜆𝑛𝑛
𝑛𝑛=1
Adding columns,
throughout all variables
9
Another Example
Problems
connected
N
R
R
N
10
General Form
Primal problem Dual problem
11
Principles for LP duality
12
Example - 1
13
Example - 2
14
Example - 3
Primal problem
15
Example - 3
16
Example - 4
Primal problem
17
Example - 4
18
Example - 5
Primal problem
19
Example - 5
20
Why do we need dual problem?
1. When the primal problem has a lot of constraints and few variables, solving the
dual problem can reduce the computation time
(Because of the procedure of some well-known algorithms, e.g. Simplex)
3. Sensitivity analysis
(Shadow price, the impact of right-hand side coefficients on the optimal value)
21
Duality Theorems
primal dual
dual primal
Proof:
22
Duality Theorems
Weak duality: Let 𝑥𝑥0 , 𝜆𝜆0 be a feasible solution of the primal problem and the
dual problem, respectively. We have 𝑐𝑐 𝑇𝑇 𝑥𝑥0 ≥ 𝑏𝑏 𝑇𝑇 𝜆𝜆0 .
23
An example
possible values
𝑇𝑇 6 1
For the primal problem, 𝑥𝑥0 = 1,1 is a feasible solution 𝑥𝑥 ∗ = , , 𝑐𝑐 𝑇𝑇 𝑥𝑥 ∗ = 28
𝑐𝑐 𝑇𝑇 𝑥𝑥0 = 40 is an upper bound of the objective value 5 5
𝜆𝜆∗ = 0,0,4,4 , 𝑑𝑑 𝑇𝑇 𝜆𝜆∗ = 28
For the dual problem, 𝜆𝜆0 = 1,1,1,1 𝑇𝑇 is a feasible solution
𝑑𝑑 𝑇𝑇 𝜆𝜆0 = 10 is an lower bound of the objective value optimal values for dual and primal
24
Duality Theorems
Weak duality: Let 𝑥𝑥0 , 𝜆𝜆0 be a feasible solution of the primal problem and
the dual problem, respectively. We have 𝑐𝑐 𝑇𝑇 𝑥𝑥0 ≥ 𝑏𝑏 𝑇𝑇 𝜆𝜆0 .
25
Duality Theorems
𝑥𝑥2
1
Infeasible 𝑥𝑥1
1
both are infeasible as they do not intersect
(the change of being unbounded above is not valid)
𝜆𝜆2
1
Infeasible
1 𝜆𝜆1
26
Duality Theorems
𝑥𝑥2
Unbounded above
1 𝑥𝑥1
𝜆𝜆2
Optimality criterion: Let 𝑥𝑥0 , 𝜆𝜆0 be a feasible solution of the primal problem
and the dual problem, respectively. If 𝑐𝑐 𝑇𝑇 𝑥𝑥0 = 𝑏𝑏 𝑇𝑇 𝜆𝜆0 , then 𝑥𝑥0 , 𝜆𝜆0 are the
optimal solution of the primal and dual problems, respectively.
one is min and one is max, because
Proof: Cxo = Blambda, then optimal point
is touching and the same
According to weak duality, we have 𝑐𝑐 𝑇𝑇 𝑥𝑥 ≥ 𝑏𝑏 𝑇𝑇 𝜆𝜆0 , ∀𝑥𝑥 ∈ 𝑋𝑋
Since 𝑐𝑐 𝑇𝑇 𝑥𝑥0 = 𝑏𝑏 𝑇𝑇 𝜆𝜆0 , we can know 𝑥𝑥0 is the optimal solution.
Strong duality: If both the primal and dual problems are feasible, then both of
them have an optimal solution, i.e. 𝑥𝑥 ∗ , 𝜆𝜆∗ , and the optimal values are equal, i.e.
𝑐𝑐 𝑇𝑇 𝑥𝑥 ∗ = 𝑑𝑑 𝑇𝑇 𝜆𝜆∗ .
28
Duality Theorems
Complementarity and slackness: Suppose 𝑥𝑥 ∗ , 𝜆𝜆∗ are the primal and dual
optimal solutions, respectively. Then, we have
29
An Example
6 1
𝑥𝑥 ∗
If we know the optimal solution of the primal problem is = , ,
5 5
Try to determine the optimal solution of dual problem based on
Complementarity and slackness.
30
An Example
Primal problem
𝝀𝝀𝟏𝟏
𝝀𝝀𝟐𝟐
𝝀𝝀𝟑𝟑
𝝀𝝀𝟒𝟒
Dual problem
𝒙𝒙𝟏𝟏
𝒙𝒙𝟐𝟐
31
Economic Interpretation
The scarcer the resource, the greater the impact of its changes on the
objective function (cost), and therefore the higher the shadow price.
32
Thanks!
33