PDF Unit 2 Linear Pragramming
PDF Unit 2 Linear Pragramming
)
Linear Programming
Linear programming is a method of solving problem in which
objective function represented by a linear equation, often profit
or cost, is to be optimized (i.e. maximized or minimized) subject
to constraints (conditions) expressed by a system of linear
inequalities. In short, linear programming is an optimization
technique for finding the optimum solution to objective function
of two or more decision variables subject to a set of linear
constraints.
Linear programming is heavily used in economics and company
management such as planning, production, transportation,
technology and other issues. It has also been extensively applied
in solving resource allocation problem such as production,
planning and scheduling, portfolio analysis, sales and advertising
etc. The most of companies would like to maximize profit or
minimize cost with limited resources.
Therefore, Linear programming problem (LPP) deals with finding
optimal allocation of limited resources (e.g. men, materials, machines
and land) to meet given objectives. Note that LPP is very often used by
operating practitioner or decision maker for planning or analysis in
achieving the objective in a best way.
Z!
Z! − C!
Where,
C! = Coefficients of all variables of objective function.
C" = Coefficients of basic variables of objective function.
X " = Basic variable.
b# = Constant of equations or inequalities.
Z! = Objective function
= ∑ C" b# or others
Z! − C! = Optimum net evaluation.
Note I:
To solve the linear programming by simplex method
Introduce slack, surplus and dummy variables in the given
constraints are as follows:
(i) ≤ or < →Add slack variable (S)
(ii) ≥ or > → Subtract surplus variable (S) and Dummy
variables(D)
(iii) = → Add dummy variable (D) or artificial variable (A).
X!
4 6 1 0 0 X" 24
2 1 0 1 0 S! = 18
3 9 0 0 1 S" 36
S#
A X b
Here, an identity matrix is formed by the coefficients of slack
variables S!, S" & S#. So these slack variables are the basic
variables for initial simplex tableau. The initial simplex tableau
can be constructed as follows:
Initial Simplex Tableau
C! 5 8 0 0 0 Ratio (b" /X" )
C# X# b" 𝑋$ 𝑋% 𝑆$ 𝑆% 𝑆&
0 𝑆$ 24 4 6 1 0 0 %'
(
=4 Key row
0 𝑆% 18 2 1 0 1 0 $)
= 18
$
&(
0 𝑆& 36 3 9 0 0 1 =4
*
Z! 0 0 0 0 0 0
Z! − C! -5 -8 0 0 0
Key column
Here, X " → entering variable
Since, there are two same minimum positive ratio in the ratio
column, degeneracy occurs. To avoid degeneracy, select first row
R! as key row by choosing the ratio to the top and the
corresponding variables S! is a leaving variable. Also, 6 is a key
element.
Main row (or Rep. R!):
./01 ! "7 7 " 8 ! 9 9
= 234 3/353$6 = 8
= 4; 8 = #; 8 = 1; 8; 8 = 0; 8 = 0
For new 𝑹𝟐 :
Old 𝑅" - (Intersectional element of old 𝑅"× Main Row) = New 𝑅"
18 - ( 1 × 4) = 14
" 7
2 - (1 × ) =
# #
1 - (1 × 1) = 0
! ;!
0 - (1 × ) =
8 8
1 - (1 × 0) = 1
0 - (1 × 0) = 0
For new 𝐑 𝟑 :
Old R # - (Intersectional element of old R #× Rep. R!) = New R #
36 - (9 × 4) = 0
"
3 - (9 × ) = -3
#
9 - (9 × 1) = 0
! ;#
0 - (9 × ) =
8 "
0 - (9 × 0) = 0
1 - (9 × 0) = 1
Simplex tableau – 2
C! 5 8 0 0 0 Ratio
C# X# b" X$ X% S$ S% S&
8 X% 4 % $ -
&
1 (
0 0
0 S% 14 ' +$ -
0 1 0
& (
0 S& 0 -
+&
-3 0 0 1
%
$( '
Z! 32 8 0 0
& &
Z! − C! $ '
0 0 0
& &
X!
X"
S!
2 4 −1 0 0 1 0 0 S 10
4 2 0 −1 0 0 1 0 S" = 10
#
0 1 0 0 −1 0 0 1 4
D!
D"
D#
Here, an identity matrix is formed by the coefficient of variables
D! , D" , D# . So these variables are basic variables for initial
simplex tableau. The above information is entered into the
simplex tableau as follows:
Initial Simplex Tableau
C! 3 2 0 0 0 M M M Ratio
C# X# b" 𝑋$ 𝑋% 𝑆$ 𝑆% 𝑆& 𝐷$ 𝐷% 𝐷& (b" /X" )
M 𝐷$ 10 2 4 -1 0 0 1 0 0 $,
'
= 2.5 Ke
M 𝐷% 10 4 2 0 -1 0 0 1 0 $,
=5
%
'
M 𝐷& 4 0 1 0 0 -1 0 0 1 =4
$
Z! 24M 6M 7M -M -M -M M M M
Z! − C! 6M-3 7M-2 -M -M -M 0 0 0
Key column
./0 1!
=
@34 3/353$6
!9 A " ! 7 ;! 9 9 ! 9 9
Main row (or Rep.𝑅!): = ; = ; = 1; ; = 0; = 0; ; = 0; = 0.
7 " 7 " 7 7 7 7 7 7 7
For new 𝐑 𝟐 :
Old 𝑅" - (Intersectional element of old 𝑅"× Main Row) = New 𝑅"
A
10 – ( 2 × "
) =5
!
4 – (2 × ") = 3
2 – (2 × 1) = 0
;! !
0 – (2 × 7
) = "
-1 – (2 × 0) = -1
0 – (2 × 0) = 0
! ;!
0 – (2 × 7) = "
1 – (2 × 0) = 1
0 – (2 × 0) = 0
For new 𝐑 𝟑 :
Old R # - (Intersectional element of old R #× Rep. R!) = New R #
A #
4 – (1 × "
) = "
! ;!
0 – (1 × "
) = "
1 – (1 × 1) = 0
;! !
0 – (1 × 7
) = 7
0 – (1 × 0) = 0
-1 – (1 × 0) = -1
! ;!
0 – (1 × ) =
7 7
0 – (1 × 0) = 0
1 – (1 × 0) = 1
Simplex tableau – 2
C! 3 2 0 0 0 M M M Ratio
C# X# b" X$ X% S$ S% S& D$ D% D&
2 X% - $ +$ $ 5
%
1 '
0 0 '
0 0
%
M D% -
5 $ +$
3 0 -1 0 1 0 &
% %
+$ $ +$
M D& & 0 0 -1 0 1
% ' ' -3
%
Z! $&. -. &. $ +&/ $
%
+5 %
+1 2 '
-% -M -M '
+% M M
Z! − C! -. &. $ +0/ $
%
-2 0 '
-% -M -M '
+% 0 0
Key column
A # 9 ! ;! 9 ;! ! 9
Main row (or Rep. 𝑅") : #; # = 1; # = 0; 8; , =
# #
0, , , =
8 # #
0
For new 𝑹𝟏 :
Old 𝑅! - (Intersectional element of old 𝑅!× Main Row) = New 𝑅!
A ! A A
- ( × )=
" " # #
! !
"
- (" × 1) = 0
!
1 - (" × 0) = 1
;! ! ! ;!
7
- (" × 8) = #
! ;! !
0 - (" × # ) = 8
!
0 - (" × 0) = 0
! ! ;! !
-( × 8) =#
7 "
! ! ;!
0 – (" × #) = 8
!
0 – (" × 0) = 0
For new 𝐑 𝟑 :
Old R # - (Intersectional element of old R #× Rep. R ") = New R #
# ;! A E
"
– ( "
× #
) = #
;! ;!
– ( × 1) = 0
" "
;!
0 – ( " × 0) = 0
! ;! ! !
7
– ( " × 8) = #
;! ;! ;!
0–(" × #)= 8
;!
-1 – ( " × 0) = -1
;! ;! ;! ;!
7
– ( "
× 8
) = #
;! ! !
0 – ( " × #) = 8
;!
1 – ( " × 0) = 1
Simplex Tableau-3
C! 3 2 0 0 0 M M M Ratio
C# X# b" X$ X % S$ S% S& D$ D% D&
2 X% - +$ $ $ +$ -5
0 1 & (
0 & (
0
&
3 X$ - $ +$ +$ $ 10
1 0 0 0
& ( & ( &
M D& 7
0 $ +$ +$ $
0 0 -1 1
& & ( & (
Z! 0. $- . $ +. % +. $ . %
+ 3 2 - - -M + + M
& & & ( ( & & ( ( &
Z! − C! . $ +. % +'. $ +-. %
0 0 &
- ( (
- &
-M &
+( (
+& 0
Key column
Main row (Rep. 𝐑 𝟑 ):
% ' (' (' (' ' '
×3 = 7; 0×3 = 0; ×3 = 1; ×3= ; -3; ×3 = -1; ×3 = ; 1×3 =
& & ) * & ) *
3
For new 𝐑 𝟏 :
Old R' - (Intersectional element of old R' × Main Row) = New R'
, ('
-( × 7) = 4
& &
('
0-( × 0) = 0
&
('
1 - ( × 0) = 1
&
(' ('
- ( × 1) = 0
& &
' (' ('
-( × )=0
) & *
('
0-( × -3) = -1
&
' ('
-( × -1) = 0
& &
(' (' '
-( × )=0
) & *
('
0–( × 3) = 1
&
For new 𝑹𝟐 :
Old R " - (Intersectional element of old R "× Main Row) = New R "
A ! !
– ( × 7) =
# 8 "
!
1 – (8 × 0) = 1
!
0 – ( × 0) = 0
8
! !
8
– (8 × 1) = 0
;! ! ;! ;!
–( × )=
# 8 " 7
! !
0 – (8 × -3) = "
;! !
8
– ( 8
× -1) = 0
! ! ! !
#
– (8
× "
) = 7
! ;!
0 – (8 × 3) = "
Simplex tableau- 4
C! 3 2 0 0 0 M M M Ratio
C# X# b" 𝑋$ 𝑋% 𝑆$ 𝑆% 𝑆& 𝐷$ 𝐷% 𝐷& (b" /X" )
2 𝑋% $ +$ $ $ +$ −
%
1 0 0 ' %
0 ' %
3 𝑋$ −
4 0 1 0 0 -1 0 0 1
0 𝑆$ +$ $ −
7 0 0 1 -3 -1 2
% %
Z! 13 +$ $
2 3 0 %
-2 0 %
2
Z! − C! +$ $
0 0 0 -2 -M -M 2-M
% %
0 𝑆% 40 0 1 0 0 0 1 ',
= 40 Ke
$
Z! 70M 2M M -M M M 0
Z! − C! 2M-25 2M-10 -M 0 0 0
Key column
./0 1"
Main row (or Rep.𝑅#): = @34 3/353$6
79 9 ! 9 9 9 !
= = 40, = 0, =1; = 0; = 0 ; = 0; = 1
! ! ! ! ! ! !
For new 𝐑 𝟏 :
Old R! - (Intersectional element of old R!× Main Row) = New R!
50 - (1 ×40) = 10
1 - (1 ×0) = 1
1 - (1 × 1) = 0
0 - (1 × 0) = 0
1 - (1 × 0) = 1
0 - (1 ×0) = 0
0 - (1 ×1) = -1
For new 𝐑 𝟐 :
Old R " - (Intersectional element of old R "× Main Row) = New R "
20 - (0×40) = 20
1 - (0 ×0) = 1
0 - (0 × 1) = 0
-1- (0 × 0) = -1
0 - (0 × 0)= 0
1 - (0 ×0) = 1
0 - (0×1) = 0
Simplex Tableau -II
C! 25 10 0 M M 0 Ratio (b" /X" )
C# X# b" A B. 𝑆$ 𝐷$ 𝐷% 𝑆%
M 𝐷$ 10 1 0 0 1 0 -1 $,
$
= 10 Ke
M 𝐷% 20 1 0 -1 0 1 0 %,
= 20
$
',
10 B 40 0 1 0 0 0 1 =∞
,
Z! 30M 2M 10 -M M M -M+10
+400
Z! − C! 2M-25 0 -M 0 0 -M+10
Key column
./0 1!
Main row (or Rep.𝑹𝟏 ): = @34 3/353$6
!9 ! 9 9 ! 9 ;!
= = 10, = 1, = 0; = 0; = 1 ; = 0; = -1
! ! ! ! ! ! !
For new 𝐑 𝟐 :
Old R " - (Intersectional element of old R "× Main Row) = New R "
20 -(1 ×10) = 10
1 - (1 ×1) = 0
0 - (1 × 0) = 0
-1- (1 × 0) = -1
0 - (1 ×1 )= -1
1 - (1 ×0) = 1
0 -(1 ×−1)=1
For new 𝐑 𝟑 :
Old R # - (Intersectional element of old R #× Main Row) = New R #
40 - (0×10) = 40
0 - (0 ×1) = 0
1 - (0 × 0) = 1
0- (0 × 0) = 0
0 -(0 × 1) = 0
0 - (0 ×0) = 0
1- (0×−1) = 1
Simplex Tableau -III
C! 25 10 0 M M 0 Ratio (b" /X" )
C# X# b" A B. 𝑆$ 𝐷$ 𝐷% 𝑆%
25 A 10 1 0 0 1 0 -1 $,
+$
= -10
M 𝐷% 10 0 0 -1 -1 1 1 $, Ke
= 10
$
',
10 B 40 0 1 0 0 0 1 = 40
$
Z! 10M 25 10 -M -M+25 0 M -15
+650
Z! − C! 0 0 -M -2M+25 -M M+10
Key column
./0 1#
Main row (or Rep.𝑹𝟐 ): = @34 3/353$6
!9 9 9 ;! ;! ! !
= = 10, = 0, = 0; = -1; = -1 ; = 1; = 1
! ! ! ! ! ! !
For new 𝐑 𝟏 :
Old R! - (Intersectional element of old R!× Main Row) = New R!
10 - (-1 ×10) = 20
1 - (-1 ×0) = 1
0 - (-1 × 0)= 0
0 - (-1 × -1) =-1
1 - (-1 ×-1 )= 0
0 - (-1 ×1) = 1
-1 -(-1 ×1) = 0
For new 𝐑 𝟑 :
Old R # - (Intersectional element of old R #× Main Row) = New R #
40 - (1×10) = 30
0 - (1 ×0) = 0
1 - (1 × 0) = 1
0- (1 × -1) = 1
0 -(1 × -1) = 1
0 - (1 ×1) = -1
1- (1×1) = 0
Simplex Tableau –IV
C! 25 10 0 M M 0 Ratio (b" /X" )
C# X# b" A B. 𝑆$ 𝐷$ 𝐷% 𝑆%
25 A 20 1 0 -1 0 1 0 $,
+$
= -10
0 𝑆% 10 0 0 -1 -1 1 1 $,
= 10
$
',
10 B 30 0 1 1 1 -1 0 = 40
$
Z! 800 25 10 -15 10 15 0
Z! − C! 0 0 -15 -M+10 -M+15 0
X!
X"
2 4 0 1 0 0 S" 12
2 2 0 0 1 0 = 10
S!
5 2 −1 0 0 1 10
D!
D"
Here, an identity matrix is formed by the coefficients of variables
S!, D! & D". So, S!, D! & D" are basic variables for initial simplex
tableau.
Initial Simplex Tableau – 1
C! 5 3 0 0 M M Ratio (b" /X" )
C# X# b" 𝑋$ 𝑋% 𝑆% 𝑆$ 𝐷$ 𝐷%
0 𝑆$ 12 2 4 0 1 0 0 $%
%
=6
M 𝐷$ 10 2 2 0 0 1 0 $,
=5
%
$,
M 𝐷% 10 5 2 -1 0 0 1 =2 Key row
-
Z! 20M 7M 4M -M 0 M M
Z! − C! 7M-5 4M-3 -M 0 0 0
Key column
!9 A " ;! 9 9 !
Main row (Rep 𝑅#): A
= 2; A = 1; A; ; =
A A
0; A = 0; A
For new 𝐑 𝟏 :
Old R! - (Intersectional element of old R!× Main Row) = New R!
12 - (2 × 2) = 8
2 - (2 × 1) = 0
" !8
4 - (2 × A) =A
;! "
0- (2 × ) =
A A
1 - (2 × 0) = 1
0 - (2 × 0) = 0
! ;"
0 - (2 × A) = A
For new 𝐑 𝟐 :
Old R " - (Intersectional element of old R "× Rep. R #) = New R "
10 - (2 × 2) = 6
2 - (2 × 1) = 0
" 8
2 - (2 × A) = A
;! "
0 - (2 × )=
A A
0 - (2 × 0) = 0
1 - (2 × 0) = 1
! ;"
0 - (2 × A) = A
Simplex tableau – 2
C! 5 3 0 0 M M Ratio
C# X# b" 𝑋$ 𝑋% 𝑆% 𝑆$ 𝐷$ 𝐷% (b" /X" )
$( % +% !
0 𝑆$ 8 0 1 0 "# - Key row
- - - =
- %
M 𝐷$ 6 ( % +%
0 0 1 5
- - -
5 𝑋$ 2
% +$ $ 5
1 0 0
- - -
Z! 6M + 10 (/ %/ +%/
5 +2 -1 0 M +1
- - -
Z! − C! (/ %/ +0/
0 -1 -1 0 0 +1
- - -
Key column
A A A !8 A " A ! A A
Main row: 8 × = ; 0 × = 0; × = 1; × = , 1× = ; 0
!8 " !8 A !8 A !8 I !8 !8
A ;" A ;!
× = 0; × =
!8 A !8 I
For new 𝐑 𝟐 :
Old R " - (Intersectional element of old R "× Main row) = New R "
8 A
6 - (A × ") = 3
8
0 - (A × 0) = 0
8 8
- ( × 1) = 0
A A
" 8 ! !
-
A A
( × I
) = 7
8 A ;#
0 - (A × !8) = I
8
1 - (A × 0) = 1
;" 8 ;! ;!
A
- (A × I ) = 7
For new 𝐑 𝟑 :
Old R # - (Intersectional element of old R #× Main row) = New R "
" A
2 - (A × ") = 1
"
1 - (A × 0) = 1
" "
- ( × 1) = 0
A A
;! " ! ;!
-( × )=
A A I 7
" A ;!
0-( × )=
A !8 I
"
0 - (A × 0) = 0
! " ;! !
-
A A
( × I
) = 7
Simplex Tableau – 3
C! 5 3 0 0 M M Ratio
C# X# b" X$ X% S% S$ D$ D% (b" /X" )
3 X$ - $ - +$ 20
0 1 0
% ) $( )
M D$ 3 $ +& +$ 12 Key
0 0 1
' ) '
1 +$ +$ $
5 X$ 1 0 0 -
' ) '
Z! %- . 0 +&. - +. 0
3M + 5 3 - + M +
% ' ) ) $( ' )
Z! − C! . 0 +&. - +-. 0
0 0 '
- ) )
+ $(
0 '
+)
Key column
7 7 7 ! 7 ;# 7 ;#
Main row: 3 × = 12; 0 × = 0, 0 × = 0; × = 1; × = ;
! ! ! 7 ! I ! "
7 ;! 7
1 × = 4; × = -1
! 7 !
For new 𝐑 𝟏 :
Old R! - (Intersectional element of old R!× Main row) = New R!
A !
- ( × 12) = 1
" I
!
0 - (I × 0) = 0
!
1 - (I × 0) = 1
! !
- ( × 1) = 0
I I
A ! ;# !
-( × )=
!8 I " "
! ;!
0 - (I × 4) = "
;! !
I
- (I × -1) = 0
For new 𝐑 𝟑 :
Old R # - (Intersectional element of old R #× Main row) = New R #
;!
1 − ( 7 × 12) = 1
;!
1 −( 7 × 0) = 1
;!
0 −( 7 × 0) = 0
;! ;!
7
− ( 7
× 1) = 0
;! ;! ;# ;!
I
−( 7
× "
) = "
;!
0 − ( × 4) = 1
7
! ;!
− ( × -1) = 0
7 7
Simplex tableau – 4
C! 5 3 0 0 M M Ratio (b" /X" )
C# X# b" 𝑋$ 𝑋% 𝑆% 𝑆$ 𝐷$ 𝐷%
3 𝑋% 1 $ +$ -
0 1 0 % %
0
0 𝑆% 12 +& -
0 0 1 4 -1
%
5 𝑋$ 4
+$
1 0 0 1 0 -
%
Z! 23 0
5 3 0 -1 0
%
Z! − C! 0
0 0 0 -1 %
- M -M
𝑋!
𝑋"
3 4 0 1 0 0 0 𝑆# 120
2 1 0 0 1 0 0 𝑆! = 40
1 0 −1 0 0 1 0 10
1 1 0 0 0 0 1 𝑆"
30
𝐷!
𝐷"
Here, an identity matrix is formed by the coefficients of variables
S!, S", D! and D". So, S!, S", D!and D" are basic variables for
initial simplex tableau.
Initial simplex tableau
C! 6 5 0 0 0 -M -M Ratio (b" /X" )
C# X# b" 𝑋$ 𝑋% 𝑆& 𝑆$ 𝑆% 𝐷$ 𝐷%
0 𝑆$ 120 3 4 0 1 0 0 0 $%,
&
= 40
',
0 𝑆% 40 2 1 0 0 1 0 0 %
= 20
$,
-M 𝐷$ 10 1 0 -1 0 0 1 0 = 10 Key
$
-M 𝐷% 30 1 1 0 0 0 0 1 &,
= 30
$
Z! -40M -2M -M M 0 0 -M -M
Z! − C! -2M-6 -M-5 M 0 0 0 0
Key column
./0 1"
Main row (Rep.𝑅#) =
234 3/353$6
= 10, 1, 0, -1, 0, 0, 1, 0
For new 𝐑 𝟏 :
Old R! - (Intersectional element of old R!× Main row) = New R!
120 – (3 × 10) = 90
3 – (3 × 1) = 0
4 – (3 × 0) = 4
0 – (3 × -1) = 3
1 – (3 × 0) = 1
0 – (3 × 0) = 0
0 – (3 × 1) = -3
0 – (3 × 0) = 0
For new 𝐑 𝟐 :
Old R " - (Intersectional element of old R "× Main row) = New R "
40 – (2 × 10) = 20
2 – (2 × 1) = 0
1 – (2 × 0) = 1
0 – (2 × -1) = 2
0 – (2 × 0) = 0
1 – (2 × 0) = 1
0 – (2 × 1) = -2
0 – (2 × 0) = 0
For new 𝐑 𝟒 :
Old R 7 - (Intersectional element of old R 7× Main row) = New R 7
30 – (1 × 10) = 20
1 – (1 × 1) = 0
1 – (1 × 0) = 1
0 – (1 × 0) = 0
0 – (1 × 0) = 0
0 – (1 × -1) = 1
0 – (1 × 1) = -1
1 – (1 × 0) = 1
Simplex Tableau - 2
C! 6 5 0 0 0 -M -M Ratio (b" /X" )
C# X# b" 𝑋$ 𝑋% 𝑆& 𝑆$ 𝑆% 𝐷$ 𝐷%
0 𝑆$ 90 0 4 3 1 0 -3 0 *,
&
= 30
%,
0 𝑆% 20 0 1 2 0 1 -2 0 = 10
% K
-M 𝐷$ 10 1 0 -1 0 0 1 0 -10
%,
-M 𝐷% 20 0 1 1 0 0 -1 1 = 20
$
Z! -30M -M -M -2M-6 0 0 -M+6 -M
Z! − C! 0 -M-5 -2M-6 0 0 6 0
Key column
"9 9 ! " 9 ! ;" 9
Main row: = 10, = 0, , = 1, = 0, , = -1, = 0
" " " " " " " "
For new 𝐑 𝟏 :
Old R! - (Intersectional element of old R!× Main row) = New R!
90 – (3 × 10) = 60
0 – (3 × 0) = 0
! A
4– (3 × ") = "
3 – (3 × 1) = 0
1 – (3 × 0) = 1
! ;#
0 – (3 × ") = "
-3 – (3 × -1) = 0
0 – (3 × 0) = 0
For new 𝐑 𝟑 :
Old R # - (Intersectional element of old R #× Main row) = New R #
10 – (-1 × 10) = 20
1 – (-1 × 0) = 1
! !
0 – (-1 × ") = "
-1 – (-1 × 1) = 0
0 – (-1 × 0) = 0
! !
0– (-1 × ") = "
1 – (-1 × -1) = 0
0 – (-1 × 0) = 0
For new 𝐑 𝟒 :
Old R 7 - (Intersectional element of old R 7× Main row) = New R 7
20 – (1 × 10) = 10
0 – (1 × 0) = 0
! !
1 – (1 × ") = "
1 – (1 × 1) = 0
0 – (1 × 0) = 0
! ;!
0– (1 × ") = "
-1 – (1 × -1) = 0
1 – (1 × 0) = 1
Simplex tableau – 3
C! 6 5 0 0 0 -M -M Ratio (b" /X" )
C# X# b" X$ X% S& S$ S% D$ D%
0 S$ 60 - +& 24
0 %
0 1 %
0 0
$ $
0 S& 10 0 %
1 0 %
-1 0 20
$ $
6 X$ 20 1 0 0 0 0 40
% %
$ +$
0 0 0 0 1 K
-M D% 10 % % 20
Z! -10M +/ +/
6 %
+3 0 0 %
+3 0 -M
+120
Z! − C! +/ +/
0 %
-2 0 0 %
+3 M 0
Key column
!
Main row: 10 × 2 = 20, 0 × 2 = 0, "
× 2 = 1, 0 × 2 = 0, 0 × 2 = 0,
;!
× 2 = -1, 0 × 2 = 0, 1 × 2 = 2
"
For new 𝐑 𝟏 :
Old R! - (Intersectional element of old R!× Main row) = New R!
A
60 – ( × 20) = 10
"
A
0 – ( × 0) = 0
"
A A
"
– ("
× 1) = 0
A
0 – (" × 0) = 0
A
1 – (" × 0) = 1
;# A
– ( × -1) = 1
" "
A
0 – (" × 0) = 0
A
0 – ( × 2) = -5
For new 𝐑 𝟏 :
Old R! - (Intersectional element of old R!× Main row) = New R!
!
10 – (" × 20) = 0
!
0 – (" × 0) = 0
! !
"
– ("
× 1) = 0
!
1 – (" × 0) = 1
!
0 – (" × 0) = 0
! !
– ( × -1) = 1
" "
!
0 – ( × 0) = -1
"
!
0 – (" × 2) = -1
For new 𝐑 𝟑 :
Old R # - (Intersectional element of old R #× Main row) = New R #
!
20 – (" × 20) = 10
!
1 – (" × 0) = 1
! !
"
– ("
× 1) = 0
!
0 – (" × 0) = 0
!
0 – (" × 0) = 0
! !
– ( × -1) = 1
" "
A
0 – (" × 0) = 0
A
0 – (" × 2) = -1
Simplex tableau – 4
Key column
Here, X * →entering variable.
Since there are two same minimum positive ration in the ratio column,
degeneracy occurs. To avoid degeneracy, select first row R' as key row
by choosing the ratio to the top and the corresponding variable S' is a
leaving variable. Also, 6 is a key element.
*- - * ) ' . .
Main row: = 4; = ; = 1; ; = 0; = 0
) ) & ) ) ) )
For new 𝐑 𝟐 :
Old R * - (Intersectional element of old R * × Main row) = New R *
18 – (1 × 4) = 14
* -
2 – (1× ) =
& &
1 – (1× 1) = 0
' ('
0 – (1× ) =
) )
1 – (1× 0) = 1
0 – (1× 0) = 0
For new 𝐑 𝟑 :
Old R # - (Intersectional element of old R #× Main row) = New R #
36 – (9 × 4) = 0
"
3 – (9× ) = -3
#
9 – (9× 1) = 0
! ;#
0– (9× ) =
8 "
0 – (9× 0) = 0
1 – (9× 0) = 1
Simplex Tableau – 2
C! 5 8 0 0 0 Ratio
C# X# b" X$ X% S$ S% S& (b" /X" )
8 X$ 4 % $ -
&
1 (
0 0
0 S% 14 ' +$ -
0 S& 0 &
0 (
1 0 -
+&
-3 0 0 1
%
$( '
Z! 32 8 0 1
& &
Z! − C! $
0 0 0 1
&
X!
1 4 1 0 X" 8
=
1 2 0 1 S! 4
S"
Here, an identity matrix is formed by the coefficients of variables
S! and S". So, S! and S" are basic variables for initial simplex
tableau.
Initial Simplex Tableau – 1
C! 3 9 0 0 Ratio (b" /X" )
C# X# b" X$ X% S$ S%
0 S$ 8 1 4 1 0 )
=2 Key row
'
0 S% 4 1 2 0 1 '
=2
%
Z! 0 0 0 0 0
Z! − C! -3 -9 0 0
Key column
Here, X " → entering variable
S! → leaving variable.
./0 1!
Main row (Rep R!) =
234 3/353$6
I ! 7 ! 9
7
= 2; 7; 7 = 1; 7; 7 = 0
For new 𝐑 𝟐 :
Old R " - (Intersectional element of old R "× Main row) = New R "
4 – (2 × 2) = 0
! !
1– (2× 7) = "
2 – (2× 1) = 0
! ;!
0– (2× 7) = "
1 – (2× 0) = 1
Simplex tableau – 2
0 S% 0 $ +$ ,
0 1 =0 Key row
% % $/%
Z! 18 * *
9 0
' '
+& *
Z! − C! 0 0
' '
Key column
" ! " " ;! " "
Main row (Rep 𝑅"): 0× ! = 0; " × ! = 1; 0× ! = 0; " × ! = -1; 1 × ! = 2
For new 𝐑 𝟏 :
Old R! - (Intersectional element of old R!× Main row) = New R!
!
2 – (7 × 0) = 2
! !
7
– (7 × 1) = 0
!
1 – (7 × 0) = 1
! ! !
7
– (7
× -1) = "
! ;!
0 – (7 × 2) = "
Simplex tableau – 3
(iii) Comparing the ratios of step (ii) from left to right column-
wise, the minimum ratio occurs for second row. So, second row
is key row and corresponding variable S! is a leaving variable.
Thus,
Simplex tableau – 1
C! 3 9 0 0 Ratio (b" /X" )
C# X# b" X$ X% S$ S%
0 S$ 8 1 4 1 0 )
'
=2
0 S% 4 1 2 0 1 '
=2 Key row
%
Z! 0 0 0 0 0
Z! − C! -3 -9 0 0
Key column
Here, 𝑋" → entering variable
and 𝑆" → leaving variable.
7 ! " 9 !
Main row: = 2; ; = 1; = 0;
" " " " "
For new 𝐑 𝟏 :
Old R! - (Intersectional element of old R!× Main row) = New R!
8 – (4 × 2) = 0
! !
1 – (4 × ) =
" "
4 – (4 × 1) = 0
1 – (4 × 0) = 1
!
0– (4 × ") = -2
Simplex Tableau – 2