Algebraic Solution of Lpps - Simplex Method
Algebraic Solution of Lpps - Simplex Method
Method
To solve an LPP algebraically, we first put it
in the standard form. This means all
decision variables are nonnegative and all
constraints (other than the nonnegativity
restrictions) are equations with nonnegative
RHS.
z 2 x1 3 x2
x1 3 x2 6
3 x1 2 x2 6
x1 , x2 0
z 2 x1 3 x2
x1 3 x2 s1
3 x1 2 x2
s2 6
x1 , x2 , s1 , s2 0
s1 , s2 are slack variables.
z 2 x1 3 x2
Subject to
x1 3 x2 6
3 x1 2 x2 2
x1 , x2 0
Maximize z 2 x1 3 x2
Subject to
x1 3 x2 s1
3 x1 2 x2
s2 2
x1 , x2 , s1 , s2 0
s1 is a slack variable; s2 is a surplus variable.
Maximize
Subject to
z 2 x1 3 x2
x1 3 x2 6
3 x1 2 x2 2
x1 , x2 0
Maximize z 2 x1 3 x2
Subject to
x1 3 x2 6
3 x1 2 x2 2
x1 , x2 0
Maximize z 2 x1 3 x2
Subject to
x1 3 x2 s1
3 x1 2 x2
s2 2
x1 , x2 , s1 , s2 0
s1 , s2 are slack variables.
x
writing i i i where xi , xi
are (defined below and are) nonnegative, make
the LPP into an equivalent LPP where all the
decision variables are 0.
Note:
| xi | xi
x
;
2
| xi | xi
x
2
xi x if xi 0 and x otherwise
z x1 3x2
x1 x2 2
x1 x2 4
x1 unrestricted, x2 0
Maximize z x x 3x2
Subject to
x x x2 s1
x x x2
s2 4
x , x , x2 , s1 , s2 0
basic solutions.
z 2 x1 3 x2
x1 3 x2 6
3 x1 2 x2 6
x1 , x2 0
z 2 x1 3 x2
Subject to
x1 3 x2 s1
3x1 2 x2
s2 6
x1 , x2 , s1 , s2 0
s1 , s2 are slack variables.
Nonbasic Basic
Basic
(zero)
variables solution
variables
( x1 , x 2 , s1 , s2 )
Assoc Feasible?
Object-iated
ive value,
corner
z
point
( x1 , x 2 ) ( s1 ,s 2 )
(0,0,6,6)
Yes
( x1 , s1 ) ( x2 , s 2 )
(0,2,0,2)
Yes
( x1 , s 2 ) ( x2 ,s1 )
(0,3,-3,0)
No
( x 2 , s1 ) ( x1 , s 2 )
(6,0,0, -12)
No
( x2 ,s 2 ) ( x1 , s1 )
(2,0,4,0)
Yes
( s1 ,s 2 ) ( x1 , x 2 )
6 12
( ,
,0,0)
7 7
Yes
48/7
Optimal
x2
E
(0,3)
B
(0,2)
O
(0,0)
(6/7, 12/7)
Optimal point
SF
A
(2,0)
D
(6,0)
x1
z x1 3x2
x1 x2 2
x1 x2 4
x1
unrestricted ,
x2 0
z x x 3x2
Maximize
Subject to
x x x2 s1
x x x2
s2 4
x , x , x2 , s1 , s2 0
Nonbasic Basic
(zero)
variables
variables
Basic
solution
(0,0,0,2,4)
Yes
1 1
( x , x , s ) ( x2 , s 2 )
(0,0,2,0,2)
Yes
( x1 , x1 , s2 ) ( x2 , s1 )
(0,0,4,-2,0)
No
(0,-2,0,0,6)
No
Yes
-4
Yes
( x , x , x2 ) ( s1 , s2 )
( x , x2 , s1 ) ( x , s2 )
( x , x2 , s2 ) ( x1 , s1 ) (0,4,0,6,0)
( x , s1 , s2 ) ( x , x2 )
(0,1,3,0,0)
Optimal value
Nonbasic Basic
Basic
(zero)
variables solution
variables
Associ- Feasible
ated
?
corner
( x1 , x1 , x2 , s1 , s2 ) point
Objective
value, z
( x , x2 , s1 ) ( x , s2 )
(2,0,0,0,6)
Yes
(
x
( x , x2 , s2 ) 1 , s1 )
(-4,0,0,6,0)
No
(-1,0,3,0,0)
No
N0
Solution
1 1 2
( x , s , s ) ( x , x2 )
( x2 , s1 , s2 ) ( x , x )
z x1 3x2
Direction of
increasing z
C
z maximum 8
at (-1,3)
B
D
z max{| 2 x1 3 x2 |, | 3 x1 7 x2 |}
Subject to
x1 x2 2
x1 x2 4
x1 , x2 0
y max{| 2 x1 3 x2 |, | 3 x1 7 x2 |}
Hence y | 2 x1 3 x2 | and y | 3 x1 7 x2 |
Which is equivalent to
y 2 x1 3x2 , y (2 x1 3 x2 )
y 3x1 7 x2 , y 3 x1 7 x2
x1 x2 2
x1 x2 4
2 x1 3x2 y 0, 2 x1 3 x2 y 0
3x1 7 x2 y 0, 3 x1 7 x2 y 0.
x1 , x2 , y 0