0% found this document useful (0 votes)
28 views40 pages

LP - Duality - 5

The document discusses the concept of duality in linear programming, explaining the relationship between primal and dual problems, including the definitions of weak and strong duality theorems. It outlines how to formulate the dual of a linear program and presents examples to illustrate the process. Additionally, it covers the implications of duality on optimal solutions and the conditions under which primal and dual problems can be feasible or unbounded.

Uploaded by

lelisadiriba849
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views40 pages

LP - Duality - 5

The document discusses the concept of duality in linear programming, explaining the relationship between primal and dual problems, including the definitions of weak and strong duality theorems. It outlines how to formulate the dual of a linear program and presents examples to illustrate the process. Additionally, it covers the implications of duality on optimal solutions and the conditions under which primal and dual problems can be feasible or unbounded.

Uploaded by

lelisadiriba849
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 40

Linear Programming Duality

Math2208

Adugna Fita Gabissa

Departement of Applied Mathematice


College of Applied Natural Science
Adama Science and Technology University
email:[email protected]

December 2, 2024
Duality in Linear programing

Outline

1 Duality in Linear programing


The Dual Theorem and its Consequences
Weak and Strong Duality theorems
Complementary Slackness
The Dual-Simplex Method

Adugna F Gabissa Linear optimization, Duality December 2, 2024 2 / 40


Duality in Linear programing Weak and Strong Duality theorems Weak and Strong Duality theorems We

Duality

Associated with any LP, there is another LP called the dual. Knowing the relation
between an LP and its dual is vital to understanding advanced topics in linear and
nonlinear programming.
This relation is important because it gives us interesting economic insights.
Knowledge of duality will also provide additional insights into sensitivity analysis.
When taking the dual of a given LP, we refer to the given LP as the primal. The
two problems are closely related, in the sense that the optimal solution of one
problem automatically provides the optimal solution to the other.
If the primal is a max problem, then the dual will be a min problem, and vice
versa.
The given problem is called the primal problem, and the related problem is called
the dual problem.
We begin by explaining how to find the dual of a max problem in which all
variables are required to be non-negative and all constraints are (≤) constraints
(called a normal max problem). A normal max problem may be written as

Adugna F Gabissa Linear optimization, Duality December 2, 2024 3 / 40


Duality in Linear programing Weak and Strong Duality theorems Weak and Strong Duality theorems We

Duality

max z = c1 x1 + c2 x2 + · · · + cn xn
s.t. a11 x1 + a12 x2 + · · · + a1n xn ≤ b1
a21 x1 + a22 x2 + · · · + a2n xn ≤ b2
.
.. (1.1)
am1 x1 + am2 x2 + · · · + amn xn ≤ bm
x1 , x2 , . . . , xn ≥ 0

The dual of a normal max problem such as (1.1) is defined to be

min w = b1 y1 + b2 y2 + · · · + bm ym
s.t. a11 y1 + a21 y2 + · · · + am1 ym ≥ c1
a12 y1 + a22 y2 + · · · + am2 ym ≥ c2
..
. (1.2)
a1n y1 + a2n y2 + · · · + amn ym ≥ cn
y1 , y2 , . . . , ym ≥ 0

Adugna F Gabissa Linear optimization, Duality December 2, 2024 4 / 40


Duality in Linear programing Weak and Strong Duality theorems Weak and Strong Duality theorems We

Primal and Dual forms

Forms

Primal (P):
Pn
z = min j=1 cj · xj
Pn z= min c · x
subject to j=1 aij · xj ≥ bi , i = 1, 2, . . . m
s.t. A ·x ≥ b
xj ≥ 0, j = 1, 2, . . . n
x≥0
Dual (D):
Pm
w = max i=1 bi · yi w = max b · y
Pm
subject to i=1 aji · yi ≤ cj , j = 1, 2, . . . n s.t. y·A≤c
yi ≥ 0, i = 1, 2, . . . m y≥0

Adugna F Gabissa Linear optimization, Duality December 2, 2024 5 / 40


Duality in Linear programing Weak and Strong Duality theorems Weak and Strong Duality theorems We

Primal and Dual


Primal (P):

z = min 7 · x1 + x2 + 5 · x3
subject to x1 − x2 + 3 · x3 ≥ 10
5 · x1 + 2 · x2 − x3 ≥6
x1 , x2 , x3 ≥0

Dual (D):

w = max 10 · y1 + 6 · y2
subject to y1 + 5 · y2 ≤7
−y1 + 2 · y2 ≤1
3 · y1 − y2 ≤5
y1 , y2 ≥0

Adugna F Gabissa Linear optimization, Duality December 2, 2024 6 / 40


Duality in Linear programing Weak and Strong Duality theorems Weak and Strong Duality theorems We

Finding the dual of a nonnormal LP

An LP can be transformed into normal form. To place a max problem into normal
form, we proceed as follows:
Step 1 multiply each ≥ constraint by −1, converting it into a ≤ constraint.
Step 2 replace each equality constraint by two inequality constraints (a ≤ constraint and
a ≥ constraint). Then convert the ≥ constraint to a ≤ constraint.
Step 3 replace each urs variable xi by xi = xi0 − xi ”, where xi0 ≥ 0 and xi ” ≥ 0 .

Adugna F Gabissa Linear optimization, Duality December 2, 2024 7 / 40


Duality in Linear programing Weak and Strong Duality theorems Weak and Strong Duality theorems We

Finding the Dual:

1. If the primal is a maximization problem, the dual will be a minimization problem,


and vice versa.
2. The dual of the dual problem yields the original problem.
3. A dual variable is defined for each primal constraint equation. Also, a dual
constraint is defined for each primal variable.
4. The column coefficients in a constraint of a primal variable defines the left-hand
side coefficients of the dual constraint and its objective coefficient defines the
right-hand side of that constraint.
5. The objective coefficients of the dual equal the right-hand side of the primal
constraint.

Adugna F Gabissa Linear optimization, Duality December 2, 2024 8 / 40


Duality in Linear programing Weak and Strong Duality theorems Weak and Strong Duality theorems We

Duality

4. The variables and constraints in the primal and dual problems are related as
follows.

(max) ⇔ (min)
Constraint Sign variable Sign
≥ ⇔ ≤0
≤ ⇔ ≥0
= ⇔ unr
Variable Sign Constraint Sign
≥0 ⇔ ≥
≤0 ⇔ ≤
unr ⇔ =

Adugna F Gabissa Linear optimization, Duality December 2, 2024 9 / 40


Duality in Linear programing Weak and Strong Duality theorems Weak and Strong Duality theorems We

Duality

Example 1
Find the dual of the following LPs:

(1) min w = x1 + 2x2 (3) min z = 15x1 + 12x2


s.t. 2x1 + x2 ≥ 6 s.t. x1 + 2x2 ≥ 3
x1 − 2x2 ≥ 8 x1 − 4x2 ≤ 5
x1 , x2 , ≥ 0 x1 , x2 , ≥ 0

(4) max z = 5x1 + 6x2


(2) max z = 5x1 + 12x2 + 4x3
s.t. x1 + x2 = 5
s.t. x1 + 2x2 + x3 ≤ 10
−x1 + 5x2 ≥ 3
2x1 − x2 + x3 = 8
4x1 + 7x2 ≤ 8
x1 , x2 , x3 ≥ 0
x1 unr, x2 ≥ 0

Adugna F Gabissa Linear optimization, Duality December 2, 2024 10 / 40


Duality in Linear programing Weak and Strong Duality theorems Weak and Strong Duality theorems We

Duality

Example 2
Solution: Dual formulation of LP
(2) min w = 10y1 + 8y2
(1) max z = 6y1 + 8y2
s.t. y1 + 2y2 ≥ 5
s.t. 2y1 + y2 ≤ 1
2y1 − y2 ≥ 12
y1 − 2y2 ≤ 2
y1 + y2 ≥ 4
y1 , y2 , ≥ 0
y1 ≥ 0, y2 urs

(3) max z = 5y1 + 5y2 (4) max z = 5y1 + 3x2 + 8y3


s.t. y1 + x2 ≤ 15 s.t. y1 − y2 + 4y3 = 5
2y1 − 4y2 + ≤ 12 2y1 + 5y2 + 7y3 ≥ 6
y1 ≥ 0, y2 ≤ 0 y1 unr, y2 ≤ 0, y3 ≥ 0

Adugna F Gabissa Linear optimization, Duality December 2, 2024 11 / 40


Duality in Linear programing Weak and Strong Duality theorems Weak and Strong Duality theorems We

The Dual Theorem and its Consequences

In this section, we discuss one of the most important results in linear programming:
the Dual Theorem.
In essence, the Dual Theorem states that the primal and dual have equal optimal
objective function values (if the problems have optimal solutions).
If we choose any feasible solution to the max LP and any feasible solution to the
min LP (one is primal and the other is dual), the value for the min LP feasible
solution will be at least as large as the value for the max LP feasible solution.
Observe that the following two results say nothing about which problem is primal
and which is dual. The objective function type, max or min, that matters in this
case.

Adugna F Gabissa Linear optimization, Duality December 2, 2024 12 / 40


Duality in Linear programing Weak and Strong Duality theorems Weak and Strong Duality theorems We

The Weak Duality Theorem

Theorem 3 (Weak Duality)


If primal LP ”Maximize c t x subject to Ax ≤ b, x ≥ 0” Let x = (x1 , x2 , . . . , xn ) and
y = (y1 , y2 , . . . ym ) denote feasible solutions for the primal and dual programs
respectively. Then,
n
X m
X
cj · xj ≤ bi · yi
j=1 i=1

Proof.
c t x ≤ (y t A)x = y t (Ax) ≤ y t b

Adugna F Gabissa Linear optimization, Duality December 2, 2024 13 / 40


Duality in Linear programing Weak and Strong Duality theorems Weak and Strong Duality theorems We

The Strong Duality Theorem

Theorem 4 (Strong Duality)


The primal program has finite optimum if and only if its dual has finite optimum.
Moreover, if x∗ = (x1∗ , x2∗ , . . . xn∗ ) and y∗ = (y1∗ , y2∗ , . . . ym
∗ ) are the optimal primal and

dual solutions respectively, then,


n
X m
X
cj · xj∗ = bi · yi∗
j=1 i=1

Proof.
If primal LP ”Maximize c t x subject to Ax ≤ b, x ≥ 0” If x is optimal in P the
reduced cost is greater than or equal to zero.

c t − cB B −1 A ≥ 0
ytA ≤ ct y is feasible in (D)

Then

y t b = (cBt B −1 )b = cBt (B −1 b) = cBt xB


t
y b = ct x by weak duality theorem.

Adugna F Gabissa Linear optimization, Duality December 2, 2024 14 / 40


Duality in Linear programing Weak and Strong Duality theorems Weak and Strong Duality theorems We

Corollary 5
Consider a primal-dual pair of linear programs as above.
a. If the primal LP is unbounded (i. e., optimal cost = −∞), then the dual LP is
infeasible.
b. If the dual LP is unbounded (i. e., optimal cost = ∞), then the primal LP is
infeasible.
c. If x and y are feasible solutions to the primal and dual LP, resp., and if
c T x = y T b, then x and y are optimal solutions.

Adugna F Gabissa Linear optimization, Duality December 2, 2024 15 / 40


Duality in Linear programing Weak and Strong Duality theorems Weak and Strong Duality theorems We

Corollary 6
The primal problem is infeasible if and only if the normal form of the dual problem is
unbounded (and vice versa).

Note With regard to the primal and dual linear programming problems, exactly one of
the following statements is true:
1. Both possess optimal solutions.
2. One problem has an unbounded optimal objective value, in which case the other
problem must be infeasible.
3. Both problems are infeasible.

Adugna F Gabissa Linear optimization, Duality December 2, 2024 16 / 40


Duality in Linear programing Weak and Strong Duality theorems Weak and Strong Duality theorems We

From this note we see that duality is not completely symmetric. The best we can say
is that (here optimal means having a finite optimum, and unbounded means having an
unbounded optimal objective value):
Primal Optimal ⇔ Dual Optimal
Primal (Dual) Unbounded ) ⇒ Dual (Primal) Infeasible
Primal (Dual) Infeasible ) ⇒ Dual (Primal) Unbounded or Infeasible
Primal (Dual) Infeasible ⇔ Dual (Primal) Unbounded in normal form

Adugna F Gabissa Linear optimization, Duality December 2, 2024 17 / 40


Duality in Linear programing Weak and Strong Duality theorems Weak and Strong Duality theorems We

Note. The relationship between degeneracy and multiplicity of the primal and the dual
optimal solutions is formulated as follows. In this theorem, the term non-degenerate in
the expression ”multiple and non-degenerate” means that there are multiple optimal
solutions, and that there exists an optimal basic feasible solution that is
non-degenerate

Theorem 7
Duality relationships between degeneracy and multiplicity. For any pair of primal and
dual standard LP-models where both have optimal solutions, the following implications
hold:

Primal optimal solution ⇔ Dual optimal solution


Multiple ⇒ Degenerate
Unique and nondeg. ⇒ Unique and nondeg.
Multiple and nondeg. ⇒ Unique and degenerate
Unique and degenerate ⇒ Multiple

Adugna F Gabissa Linear optimization, Duality December 2, 2024 18 / 40


Duality in Linear programing Weak and Strong Duality theorems Weak and Strong Duality theorems We

Complementary Slackness

The Theorem of Complementary Slackness is an important result that relates the


optimal primal and dual solutions.
To state this theorem, we assume that the primal is a normal max problem with
variables x1 , x2 , . . . , xN and m of (≤) constraints.
Then the dual is a normal min problem with variables y1 , y2 , . . . , ym and n of (≥)
constraints.
(P) max z = c1 x1 + c2 x2 + · · · cN xn (D) min w = b1 y1 + b2 y2 + · · · bm ym
s.t. a11 x1 + a12 x2 + · · · a1n xn ≤ b1 s.t. a11 y1 + a12 y2 + · · · a1m ym ≥ c1
a11 x1 + a22 x2 + · · · a2n xn ≤ b2 a11 y1 + a22 y2 + · · · a2m ym ≥ c2
.. .. .. ..
. . . .
am1 x1 + am2 x2 + · · · amn xn ≤ bm an1 y1 + an2 y2 + · · · anm ym ≥ cN
xi ≥ 0, ∀i = 1, 2, . . . , n. yj ≥ 0, ∀j = 1, 2, . . . , m.

Adugna F Gabissa Linear optimization, Duality December 2, 2024 19 / 40


Duality in Linear programing Weak and Strong Duality theorems Weak and Strong Duality theorems We

Complementary Slackness

Let s1 , s2 , . . . , sm be the slack variables for the primal, and e1 , e2 , . . . , en be the excess
variables for the dual.
(P) max z = c1 x1 + c2 x2 + · · · cN xn (D) min w = b1 y1 + b2 y2 + · · · bm ym
s.t. a11 x1 + a12 x2 + · · · a1n xn + s1 = b1 s.t. a11 y1 + a12 y2 + · · · a1m ym − e1 = c1
a11 x1 + a22 x2 + · · · a2n xn + s2 = b2 a11 y1 + a22 y2 + · · · a2m ym − e2 = c2
.. .. .. ..
. . . .
am1 x1 + am2 x2 + · · · amn xn + sm = bm an1 y1 + an2 y2 + · · · anm ym − en = cN
xi ≥ 0, ∀i = 1, 2, . . . , n. yj ≥ 0, ∀j = 1, 2, . . . , m.
sj ≥ 0, ∀j = 1, 2, . . . , n. ei ≥ 0, ∀i = 1, 2, . . . , n.

Adugna F Gabissa Linear optimization, Duality December 2, 2024 20 / 40


Duality in Linear programing Weak and Strong Duality theorems Weak and Strong Duality theorems We

Complementary Slackness

Theorem 8
 
x1
x 
 2 h i
Let x = 
 ..  be a feasible primal solution and y = y1 ,
 ..., ym be a feasible
.
xn
dual solution. Then x̄ is primal optimal and ȳ is dual optimal, (z̄ = w̄ ), if and only if

xi ei = 0, ∀i = 1, 2, . . . , n
yj sj = 0, ∀j = 1, 2, . . . , m

In other words, if a constraint in either the primal or dual is non binding (sj > 0 or
ei > 0), then the corresponding (complementary) variable in the other problem must
equal 0.

Adugna F Gabissa Linear optimization, Duality December 2, 2024 21 / 40


Duality in Linear programing Weak and Strong Duality theorems Weak and Strong Duality theorems We

Complementary Slackness
Proof

Multiply each constraint in the primal in standard form by its corresponding


(complementary) dual variable:

a11 x1 y1 + · · · + a1n xn y1 + s1 y1 = b1 y1
a21 x1 y2 + · · · + a2n xn y2 + s2 y2 = b2 y2
.. ..
. .
am1 x1 ym + · · · + amn xn ym + sm ym = bm ym

Add all the constraints above together:

a11 x1 y1 + · · · + a1n xn y1 + · · ·
+ am1 x1 ym + · · · + amn xn ym
+ (s1 y1 + · · · + sm ym ) (1.3)
= b1 y1 + · · · + bm ym
= w

Adugna F Gabissa Linear optimization, Duality December 2, 2024 22 / 40


Duality in Linear programing Weak and Strong Duality theorems Weak and Strong Duality theorems We

Complementary Slackness

Now, multiply each constraint in the dual in standard form by its corresponding
(complementary) primal variable:

a11 y1 x1 + · · · + am1 ym x1 − e1 x1 = c1 x1
a12 y1 x2 + · · · + am2 ym x2 − e2 x2 = c2 x2
.. ..
. .
a1n y1 xn + · · · + amn ym xn − en xn = cn xn

Add all the constraints above together:

a11 y1 x1 + · · · + a1n ym x1 + · · ·
+ a1n y1 xn + · · · + amn ym xn
− (e1 x1 + · · · + en xn ) (1.4)
= c1 x1 + · · · + cn xn
= z

Subtract equation (1.4) from equation (1.3) to obtain:

Adugna F Gabissa Linear optimization, Duality December 2, 2024 23 / 40


Duality in Linear programing Weak and Strong Duality theorems Weak and Strong Duality theorems We

Complementary Slackness

s1 y1 + s2 y2 + · · · + sm ym + e1 x1 + e2 x2 + · · · + en xn = w − z (1.5)
If x̄ is primal optimal and ȳ is dual optimal, then z = w , and then

s1 y1 + s2 y2 + · · · + sm ym + e1 x1 + e2 x2 + · · · + en xn = 0

Since, all x 0 s, y 0 s, s 0 s, and e 0 s are all non-negative, then

xi ei = 0, ∀i = 1, 2, . . . , n
yj sj = 0, ∀j = 1, 2, . . . , m

Also, if

xi ei = 0, ∀i = 1, 2, . . . , n
yj sj = 0, ∀j = 1, 2, . . . , m

then 0 = z − w and hence z = w . So, x̄ is primal optimal and ȳ is dual optimal.

Adugna F Gabissa Linear optimization, Duality December 2, 2024 24 / 40


Duality in Linear programing Weak and Strong Duality theorems Weak and Strong Duality theorems We

Complementary Slackness

Example 9
Consider the following LP.

max z = 5x1 + 3x2 + x3


s.t. 2x1 + x2 + x3 ≤ 6
x1 + 2x2 + x3 ≤ 7
x1 , x2 , x3 ≥> 0

The optimal solution to the problem is z = 49


3
, x1 = 35 , x2 = 83 , and x3 = s1 = s2 = 0.
Use complementary slackness theorem to find the optimal dual solution of the problem.
Solution: The dual LP is

min w = 6y1 + 7y2


s.t. 2y1 + y2 ≥ 5
y1 + 2y2 ≥ 3
y1 + y2 ≥ 1
y1 , y2 ≥ 0

Adugna F Gabissa Linear optimization, Duality December 2, 2024 25 / 40


Duality in Linear programing Weak and Strong Duality theorems Weak and Strong Duality theorems We

Complementary Slackness

Because x1 > 0 and x2 > 0 then the optimal dual solution must have e1 = 0 and
e2 = 0. This means that for the optimal dual solution, the first and second constraints
must be binding. So we know that the optimal values of y1 and y2 may be found by
solving the first and second dual constraints as equalities. Thus, the optimal values of
y1 and y2 must satisfy

2y1 + y2 = 5
y1 + 2y2 = 3

Solving these equations simultaneously shows that the optimal dual solution must
have y1 = 37 and y2 = 13 , with w = z = 49
3
.

Adugna F Gabissa Linear optimization, Duality December 2, 2024 26 / 40


Duality in Linear programing Weak and Strong Duality theorems Weak and Strong Duality theorems We

The Dual-Simplex Method

Suppose a ”basic solution” satisfies the optimality conditions but not feasible, we
apply dual simplex algorithm.
In regular Simplex method, we start with a Basic Feasible solution (which is not
optimal) and move towards optimality always retaining feasibility.
In the dual simplex method, the exact opposite occurs. We start with an (more
than) optimal solution (which is not feasible) and move towards feasibility always
retaining optimality conditions.
The algorithm ends once we obtain feasibility.

Adugna F Gabissa Linear optimization, Duality December 2, 2024 27 / 40


Duality in Linear programing Weak and Strong Duality theorems Weak and Strong Duality theorems We

The Dual-Simplex Method

1 In the dual simplex, the LP starts at a better than optimal infeasible (basic)
solution. Successive iterations remain infeasible and (better than) optimal until
feasibility is restored at the last iteration.
2 The generalized simplex combines both the primal and dual simplex methods in
one algorithm. It deals with problems that start both non-optimal and infeasible.
In this algorithm, successive iterations are associated with basic feasible or
infeasible (basic) solutions. At the final iteration, the solution becomes optimal
and feasible (assuming that one exists).

Adugna F Gabissa Linear optimization, Duality December 2, 2024 28 / 40


Duality in Linear programing Weak and Strong Duality theorems Weak and Strong Duality theorems We

The Dual-Simplex Method

The optimality and feasibility conditions are designed to preserve the optimality of the
basic solutions while moving the solution iterations toward feasibility.
To start the LP optimal and infeasible, two requirements must be met:
The objective function must satisfy the optimality condition of the regular simplex
method.
All the constraints must be of the type (≤), regardless the type of problem either max
or min. This condition requires converting any (≥) to (≤) simply by multiplying both
sides of the inequality (≥)by −1. If the LP includes (=) constraints, the equation can
be replaced by two inequalities. For example, x1 + x2 = 1 is equivalent to
 
x + x ≤ 1 x + x ≤ 1
1 2 1 2
or
x + x ≥ 1 −x − x ≤ −1
1 2 1 2

Adugna F Gabissa Linear optimization, Duality December 2, 2024 29 / 40


Duality in Linear programing Weak and Strong Duality theorems Weak and Strong Duality theorems We

The Dual-Simplex Method

After converting all the constraints to (≤), the starting solution is infeasible if at
least one of the right-hand sides of the inequalities is strictly negative.
Dual feasibility condition. The leaving variable, xr is the basic variable having the
most negative value (ties are broken arbitrarily). If all the basic variables are
nonnegative, the algorithm ends.
Dual optimality condition. Given that xr is the leaving variable, let cj be the
reduced cost of nonbasic variable xj and arj the constraint coefficient in the
xr −row and xj −column of the tableau. The entering variable is the nonbasic
variable with arj < 0 that corresponds to
 
c̄j
min , arj < 0
Nonbasicxj arj

Adugna F Gabissa Linear optimization, Duality December 2, 2024 30 / 40


Duality in Linear programing Weak and Strong Duality theorems Weak and Strong Duality theorems We

The Dual-Simplex Method


Note that

1 Ties are broken arbitrarily.


2 If arj ≥ 0 for all nonbasic xj , the problem has no feasible solution.

Example 10
Use the dual-simplex algorithm for solving the following LP problem.

min w = 5x1 + 6x2


s.t. x1 + x2 ≥ 2
4x1 − x2 ≥ 4
x1 , x2 ≥ 0

Solution: After converting all the constraints to (≤), then adding slack variables s1
and s2 to the constraints, the LP in standard form is

min w − 5x1 − 6x2 = 0


s.t. −x1 − x2 + s1 = −2
−4x1 + x2 + s2 = −4
x1 , x2 , s1 , s2 ≥ 0

Adugna F Gabissa Linear optimization, Duality December 2, 2024 31 / 40


Duality in Linear programing Weak and Strong Duality theorems Weak and Strong Duality theorems We

The Dual-Simplex Method

The initial tableau and all following tableaus, using the dual-simplex algorithm, are
shown below.

Iter [0] Basic x1 x2 s1 s2 RHS


w −5 −6 0 0 0 Optimal
s1 −1 −1 1 0 −2 but not
→ s2 −4 1 0 1 −4 feasible

Iter [1] Basic x1 x2 s1 s2 RHS


w 0 − 29
4
0 − 45 5 Optimal
→ s1 0 − 54 1 − 41 −1 but not
x1 1 − 14 0 1
4
1 feasible

Iter [2] Basic x1 x2 s1 s2 RHS


w 0 −1 −5 0 10 Optimal
s2 0 5 −4 1 4 and
x1 1 1 −1 0 2 feasible

Adugna F Gabissa Linear optimization, Duality December 2, 2024 32 / 40


Duality in Linear programing Weak and Strong Duality theorems Weak and Strong Duality theorems We

The Dual-Simplex Method

Example 11
Use the dual-simplex algorithm for solving the following LP problem.

max z = −4x1 − 2x2


s.t. x1 + x2 = 1
−3x1 + x2 ≥ 2
x1 , x2 ≥ 0

Solution: After converting all the constraints to (≤), then adding slack variables s1 , s2
and s3 to the constraints, the LP in standard form is

max z + 4x1 + 2x2 = 0


s.t. x1 + x2 + s1 = 1
−x1 − x2 + s2 = −1
3x1 − x2 + s3 = −2
x1 , x2 , s1 , s2 , s3 ≥ 0

Adugna F Gabissa Linear optimization, Duality December 2, 2024 33 / 40


Duality in Linear programing Weak and Strong Duality theorems Weak and Strong Duality theorems We

The Dual-Simplex Method

The initial tableau and all following tableaus, using the dual-simplex algorithm, are
shown below.

Iter [0] Basic x1 x2 s1 s2 s3 RHS


z 4 2 0 0 0 0 Optimal
s1 1 1 1 0 0 1 but not
s2 −1 −1 0 1 0 −1 feasible
← s3 3 −1 0 0 1 −2

Iter [1] Basic x1 x2 s1 s2 s3 RHS


z 10 0 0 0 2 −4 Since s1 leaves
← s1 4 0 1 0 1 −1 with no entering
s2 −4 0 0 1 −1 1 variable then the
x2 −3 1 0 0 −1 2 solution is infeasible

Adugna F Gabissa Linear optimization, Duality December 2, 2024 34 / 40


Duality in Linear programing Weak and Strong Duality theorems Weak and Strong Duality theorems We

The Dual-Simplex Method


Note 15.

The dual simplex method is often used to find the new optimal solution to an LP after
a constraint is added. When a constraint is added, one of the following three cases
will occur:
1. The current optimal solution satisfies the new constraint.
2. The current optimal solution does not satisfy the new constraint, but the LP still
has a feasible solution.
3. The additional constraint causes the LP to have no feasible solutions.

Example 12
Consider the following LP and its optimal tableau.

max z = 6x1 + x2
s.t. x1 + x2 ≤ 5
2x1 + x2 ≤ 6
x1 , x2 ≥ 0

Adugna F Gabissa Linear optimization, Duality December 2, 2024 35 / 40


Duality in Linear programing Weak and Strong Duality theorems Weak and Strong Duality theorems We

The Dual-Simplex Method

Basic x1 x2 s1 s2 RHS
z 0 2 0 3 18
1
s1 0 2
1 − 12 2
1 1
x1 1 2
0 2
3

Find the optimal solution to this LP if we add the constraint


1. 3x1 + x2 ≤ 10.

Adugna F Gabissa Linear optimization, Duality December 2, 2024 36 / 40


Duality in Linear programing Weak and Strong Duality theorems Weak and Strong Duality theorems We

The Dual-Simplex Method


Solution:

After converting the constraint to (=) by adding s3 to the constraint, we obtain:

Basic x1 x2 s1 s2 s3 RHS
z 0 2 0 3 0 18
1
s1 0 2
1 − 21 0 2
1 1
x1 1 2
0 2
0 3
s3 3 1 0 0 1 10

Basic x1 x2 s1 s2 s3 RHS
z 0 2 0 3 0 18 optimal
1
s1 0 2
1 − 12 0 2 and
1 1
x1 1 2
0 2
0 3 feasible
s3 0 − 12 0 − 23 1 1

Adugna F Gabissa Linear optimization, Duality December 2, 2024 37 / 40


Duality in Linear programing Weak and Strong Duality theorems Weak and Strong Duality theorems We

The Dual-Simplex Method

Basic x1 x2 s1 s2 RHS
z 0 2 0 3 18
1
s1 0 2
1 − 12 2
1 1
x1 1 2
0 2
3

Find the optimal solution to this LP if we add the constraint


2. 8x1 + x2 ≤ 12.
Solution: After converting the constraint to (=) by adding s3 to the constraint, we
obtain:

Adugna F Gabissa Linear optimization, Duality December 2, 2024 38 / 40


Duality in Linear programing Weak and Strong Duality theorems Weak and Strong Duality theorems We

The Dual-Simplex Method

Iter[0] Basic x1 x2 s1 s2 s3 RHS


z 0 2 0 3 0 18
1
s1 0 2
1 − 12 0 2
1 1
x1 1 2
0 2
0 3
s3 8 1 0 0 1 12

Iter[0] Basic x1 x2 s1 s2 s3 RHS


z 0 2 0 3 0 18 Optimal
1
s1 0 2
1 − 21 0 2 but
1 1 infeasible
x1 1 2
0 2
0 3
← s3 0 −3 0 −4 1 −12

Iter[1] Basic x1 x2 s1 s2 s3 RHS


1 2
z 0 0 0 3 3
10 Optimal
s1 0 0 1 − 73 1
6
0 and
x1 1 0 0 − 16 1
6
1 feasible
4
x2 0 1 0 3
− 31 4

Adugna F Gabissa Linear optimization, Duality December 2, 2024 39 / 40


Duality in Linear programing Weak and Strong Duality theorems Weak and Strong Duality theorems We

DualS implex

DualS implex
Read about general dual-simplex method

Adugna F Gabissa Linear optimization, Duality December 2, 2024 40 / 40

You might also like