Note:
• The slack and surplus variables are always non-negative.
xi xi xi ,
are nonnegative.
where x , x .
i i
Also,
The feasible region for any LPP has only a finite number
of extreme point.
Any LPP that has an optimal solution, has an extreme
point that is optimal.
Example…
y 2 x1 3 x2 , y (2 x1 3 x2 )
y 3 x1 7 x2 , y 3 x1 7 x2
Anil Kumar, Mathematics, BITS-Goa 8
Example:
Optimal point
SF
x1
O
A D
(0,0) (2,0) (6,0)
Anil Kumar, Mathematics, BITS-Goa 16
(2, 0, 4, 0)
(6/7,12/7,0,0) C
Maximize z 8 x1 9 x 2
Points to remember
Example…
Enters
Basic z x1 x s
2 1 s2 s3 Solution
z 1 -8 -9 0 0 0 0
s1 0 2 3 1 0 0 50
s2 0 2 6 0 1 0 80
s3 0 3 3 0 0 1 70
Leaves Pivot element
Anil Kumar, Mathematics, BITS-Goa 30
z 1 -5 0 0 3/2 0 120
s1 0 1 0 1 -1/2 0 10
s3 0 2 0 0 -1/2 1 30
Pivot element
Leaves Anil Kumar, Mathematics, BITS-Goa 31
Enters
Basic z x1 x2 s1 s2 s3 Solution
z 1 0 0 5 -1 0 170
x1 0 1 0 1 -1/2 0 10
x2 0 0 1 -1/3 1/3 0 10
s3 0 0 0 -2 1/2 1 10
Pivot element
Leaves Anil Kumar, Mathematics, BITS-Goa 32
Basic z x1 x2 s1 s2 s3 Solution
z 1 0 0 5 0 0 190
x1 0 1 0 -1 0 0 20
x2 0 0 1 1 0 0 10/3
s2 0 0 0 -4 1 2 20
(0,40/3) (10,10)
Optimal at Direction of
(20,10/3) increasing z
(0,0) (70/3,0)
Anil Kumar, Mathematics, BITS-Goa 34
Maximize
z 2 x1 x2 3x3 5 x4 0s1 0s2 0 s3
Subject to the constraints
x1 2 x2 2 x3 4 x4 s1 40
2 x1 x2 x3 2 x4 s2 8
4 x1 2 x2 x3 x4 s3 10
x1 , x2 , x3 , x4 , s1 , s2 , s3 0
Anil Kumar, Mathematics, BITS-Goa 36
z 1 -2 -1 3 -5 0 0 0 0
s1 0 1 2 -2 4 1 0 0 40
s2 0 2 -1 1 2 0 1 0 8
s3 0 4 -2 1 -1 0 0 1 10
z 1 3 -7/2 11/2 0 0 5/2 0 20
s1 0 -3 4 -4 0 1 -2 0 24
x4 0 1 -1/2 1/2 1 0 1/2 0 4
s3 0 5 -5/2 3/2 0 0 1/2 1 14
z 1 3/8 0 2 0 7/8 3/4 0 41
x2 0 -3/4 1 -1 0 1/4 -1/2 0 6
x4 0 5/8 0 0 1 1/8 1/4 0 7
s3 0 25/8 0 -1 0 5/8 -3/4 1 29
37
Example 2…
Optimal Solution is
x1 = 0, x2 = 6, x3 = 0, x4 = 7
and the optimal z (= Maximum z) = 41
Max Z x1 2 x2 x3
s.t.
2 x1 x2 x3 14
4 x1 2 x2 3x3 28
2 x1 5 x2 5 x3 30
x1 , x2 , x3 0
Min
Basic Z x1 x2 x3 s1 s2 s3 Sol
ratio
Z 1 -1 -2 1 0 0 0 0
s1 0 2 1 1 1 0 0 14 14
s2 0 4 2 3 0 1 0 28 14
s3 0 2 5 5 0 0 1 30 6
Z 1 -1/5 0 3 0 0 2/5 12
s1 0 8/5 0 0 1 0 -1/5 8 5
s2 0 16/5 0 1 0 1 -2/5 16 5
x2 0 2/5 1 1 0 0 1/5 6 15
Z 1 0 0 3 1/8 0 3/8 13
x1 0 1 0 0 5/8 0 -1/8 5
s2 0 0 0 1 -2 1 0 0
x2 0 0 1 1 -1/4 0 1/4 4
Anil Kumar, Mathematics, BITS-Goa 40
Big M-method
Example-1
Minimize z 2 x1 x2
x1 x 2 6
x1 , x 2 0
Example-1…
Introducing the artificial variables, R1, R2, the LPP is modified
as follows:
Minimize
z 2 x1 x2 M R1 M R2
Subject to the constraints
3 x 1 x 2 s1 R1 9
x1 x 2 s2 R2 6
x 1 , x 2 , s1 , s 2 , R 1 , R 2 0
Basic z x1 x2 s1 s2 R1 R2 Sol.
(0.9)
SF
(0,6)
3 9
( , )
2 2
Maximize z 2 x1 3 x 2 5 x3
Example-2…
Introducing surplus and artificial variables, s2, R1and R2, the
LPP is modified as follows:
Maximize
z 2 x1 3 x 2 5 x3 MR1 MR 2
Subject to the constraints
x1 x 2 x3 R1 7
2 x1 5 x 2 x 3 s 2 R2 10
x1 , x 2 , x 3 , s 2 , R 1 , R 2 0
Now we solve the above LPP by the Simplex method.
Example-2…
Remarks…
Maximize
z 5 x1 6 x 2
Subject to the constraints 2 x1 3 x 2 3
x1 2 x 2 5
6 x1 7 x 2 3
x1 , x 2 0
Example 3…
Introducing slack and artificial variables, s2, s3, and
R1, the LPP is modified as follows:
Maximize z 5 x1 6 x 2 MR1
Subject to the constraints
2 x1 3 x 2 R 1 3
x1 2 x 2 s2 5
6 x1 7 x 2 s3 3
x1 , x 2 , R 1 , s 2 , s 3 0
Anil Kumar, Mathematics, BITS-Goa 60
s3 0 6 7 0 0 1 3
z 1 1/7+ 0 0 0 6/7+ 18/7-
32M/7 3M/7 12M/7
R1 0 -32/7 0 1 0 -3/7 12/7
s2 0 -12/7 0 0 1 -2/7 29/7
x2 0 6/7 1 0 0 1/7 3/7
This is the optimal tableau. As R1 is not zero, there is NO feasible solution.61
Example-4
Consider the following LPP:
Minimize z 6 x1 4 x 2
Basic z x1 x2 s1 s2 R1 R2 Sol.
Two-Phase Method
Two-Phase Method:
Phase-I:
Phase-II:
Example-1
Minimize z 2 x1 x2
Phase I:
Minimize r R1 R2
Subject to the constraints
3 x1 x 2 s1 R1 9
x1 x 2 s2 R2 6
x 1 , x 2 , s1 , s 2 , R 1 , R 2 0
Basic r x1 x2 s1 s2 R1 R2 Sol.
4 2 -1 -1 0 0 15
r 1 0 0 0 0 -1 -1 0
R1 0 3 1 -1 0 1 0 9
R2 0 1 1 0 -1 0 1 6
r 1 0 2/3 1/3 -1 -4/3 0 3
x1 0 1 1/3 -1/3 0 1/3 0 3
R2 0 0 2/3 1/3 -1 -1/3 1 3
r 1 0 0 0 0 -1 -1 0
Basic z x1 x2 s1 s2 Sol.
0 0 -1/2 -1/2 15/2
z 1 -2 -1 0 0 0
x1 0 1 0 -1/2 1/2 3/2
x2 0 0 1 1/2 -3/2 9/2
Example-2…
Phase I:
Minimize
r R1 R2
Subject to the constraints
x1 2 x 2 x 3 s1 R 1 20
2 x1 4 x 2 x 3 R2 50
x 1 , x 2 , x 3 , s1 , R 1 , R 2 0
Here s1 is a surplus variable; R1, R2 are artificial
variables.
Anil Kumar, Mathematics, BITS-Goa 76
x1 0 1 -2 1 -1 1 0 20
R2 0 0 8 -1 2 -2 1 10
Basic r x1 x2 x3 s1 R1 R2 Sol
r 1 0 8 -1 2 -3 0 10
x1 0 1 -2 1 -1 1 0 20
R2 0 0 8 -1 2 -2 1 10
r 1 0 0 0 0 -1 -1 0
Minimize
z 2 x1 5 x2 3x3
Basic z x1 x2 x3 s1 R1 R2 Sol
0 0 -17/8 1/4 205/4
z 1 -2 -5 -3 0 0
x1 0 1 0 3/4 -1/2 45/2
x2 0 0 1 -1/8 1/4 5/4
z 1 0 -1 -2 0 50
x1 0 1 2 1/2 0 25
s1 0 0 4 -1/2 1 5
Example-3
Maximize
z 2 x1 2 x2 4 x3
Subject to the constraints
2 x1 x2 x3 2
3 x1 4 x2 2 x3 8
x1 , x2 , x3 0
Minimize r R2
R2 0 3 4 2 0 -1 1 8 2
r 1 0 0 0 0 0 -1 0
s1 0 5/4 0 1/2 1 1/4 -1/4 0
x2 0 -1/2 1 0 -1 -1/2 2
This is the optimal tableau and the optimal solution is:
x1 = 0, x2 = 2, x3 = 0 and Max z = 4
Anil Kumar, Mathematics, BITS-Goa 87
Example-3…
Basic r x1 x2 x3 s1 s2 R2 sol
r 1 -5 0 -2 -4 -1 0 0
x2 0 2 1 1 0 0 0 2
R2 0 -5 0 -2 -4 -1 1 0
r 1 0 0 0 0 0 -1 0
x1 0, x2 2, x3 0
Now Phase-II starts
Phase II
Basic z x1 x2 x3 s1 s2 sol
0 0 -14/5 2/5 -2/5 0
z 1 -2 -2 -4 0 0 0
z 1 7 0 0 6 1 4
x2 0 -1/2 1 0 -1 -1/2 2
x3 0 5/2 0 1 2 1/2 0
Maximize
z 2 x1 4 x2 4 x3 3 x4
Subject to the constraints
x1 x2 x3 4
x1 4 x2 x4 8
x1 , x2 , x3 , x4 0
Example 4…
x3 0 3/4 0 1 -1/4 2
x2 0 1/4 1 0 1/4 2
This is the optimal tableau and the optimal solution is
x1=0, x2=2, x3=2, x4=0 and Max z = 16
95
Anil Kumar, Mathematics, BITS-Goa
Example 5
Maximize
z 3 x1 5 x2 3 x3
Subject to the constraints
x1 4 x2 x3 7
2 x1 x2 x4 10
x1 , x2 , x3 , x4 0
Minimize z 3 x1 5 x2 3x3
Subject to the constraints
x1 4 x2 x3 s1 7
2x1 x2 x4 s2 10
x1, x2, x3, x4, s1, s2 0
Example 5…
0 7 0 0 -3 0 21
z 1 -3 -5 -3 0 0 0 0
x3 0 1 4 1 0 -1 0 7
x4 0 2 1 0 1 0 -1 10
z 1 -7/4 0 -7/4 0 -5/4 0 35/4
Example 6
Maximize z x1 5 x2 3 x3
x1 2 x2 x3 3
2 x1 x2 4
x1 , x2 , x3 0
Example 6…
Thus we have to
Maximize
z x1 5 x2 3 x3 MR2
Subject to the constraints
x1 2 x2 x3 3
2 x1 x2 R2 4
x1 , x2 , x3 , R2 0
x3 0 0 5/2 1 -1/2 1
x1 0 1 -1/2 0 1/2 2
Basic z x1 x2 x3 R2 Sol
z 1 0 -11/2 0 ½ +M 2
x3 0 0 5/2 1 -1/2 1
x1 0 1 -1/2 0 1/2 2
z 1 0 0 11/5 -3/5 +M 21/5
Degeneracy
Alternative optimum solutions
Unbounded solutions
Infeasible solutions
Degeneracy
A basic solution is called degenerate if the value of at least one
of the basic variables is zero (otherwise non-degenerate).
In simplex method, a tie for the minimum ratio may occur and
can be broken arbitrarily.
When this happens, at least one basic variable will be zero in
the next iteration, and the new solution is said to be degenerate.
Degeneracy can cause the simplex iterations to cycle
indefinitely, thus never terminating the algorithms (i.e. the
solution which we have obtained in one iteration may repeat
after few iterations).
The condition also reveals that the model has at least one
redundant constraint.
Anil Kumar, Mathematics, BITS-Goa 106
max z 3 x1 9 x2
subject to
x1 4 x2 8
x1 2 x2 4
x1 , x2 0
Redundant constraint
Find out the rows for which the minimum non-negative ratio
is the same (tie).
Find the minimum ration
elements of first column of unit matrix
corresponding elements of key column
If this minimum is attained for 2nd row (say), then this row
will determine the key element by intersecting with the
key column
Otherwise, take the minimum ratio with the 2nd column of
the unit matrix and continue till we get unique minimum.
Maximize z 3 x1 2 x 2
Subject to the constraints 4 x 1 x2 8
4 x1 3 x 2 1 2
4 x1 x2 8
x1 , x 2 0
Solve it by Simplex method.
Maximize 3 1
z x1 20 x2 x3 6 x4
4 2
1
Subject to the constraints x1 8 x2 x3 9 x4 0
4
1 1
x1 12 x2 x3 3 x4 0
2 2
x3 1
x1 , x2 , x3 , x4 0
Maximize z x1 x2
Subject to the constraints x1 x2 6
x1 2 x 2 1 0
x1 , x 2 0
Basic z x1 x2 s1 s2 Sol.
z 1 -1 -1 0 0 0
s1 0 1 1 1 0 6
S2 0 1 2 0 1 10
z 1 0 0 1 0 6 This is the opt.
tableau. Since
x1 0 1 1 1 0 6 coefficient of the
s2 0 0 1 -1 1 4 non-basic variable
x2 is 0, alt. opt.
z 1 0 0 1 0 6 soln. exists.
x1 0 1 0 2 -1 2
x2 0 0 1 -1 1 4
Note that we have got an alternate optimal solution. We understand
this graphically also in the next slide. Anil Kumar, Mathematics, BITS-Goa 118
(6,0) (10,0)
Note that the objective function line is parallel to the first
(binding) constraint line.
Anil Kumar, Mathematics, BITS-Goa 119
Unbounded solutions
In some LPPs, the values of some decision variables
can be increased indefinitely without violating any of
the constraints, that is, the solution space is
unbounded in at least one direction.
As a result the objective value may increase
(maximization case) or decrease (minimization case)
indefinitely.
Thus both the feasible solution space and the
objective function are unbounded.
Example
Consider the LPP
Maximize z 20 x 10 x x
1 2 3
Example
Consider the LPP
Maximize z 3 x1 2 x2
Subject to the constraints
2 x1 x 2 2
3 x1 4 x 2 1 2
x1 , x 2 0
Viel mehr als nur Dokumente.
Entdecken, was Scribd alles zu bieten hat, inklusive Bücher und Hörbücher von großen Verlagen.
Jederzeit kündbar.