Linear Programming Problem Simplex Method
Linear Programming Problem Simplex Method
STEP1
Convert LPP into STANDARD FORM in the following manner
a) Addition of slack variable : It represents a quantity of
unused resources either in the form of time on a machine,
labour hrs, warehouse space, quantity of raw material etc.
It is added to less than (≤) type constraints in order to
convert it into equality. Coefficient of slack variable in the
objective function is 0
e.g
𝑀𝑎𝑥 𝑧 = 𝑥1 + 5𝑥2 + 4𝑥3
Subject to
. 2𝑥1 + 3𝑥2 + 7𝑥3 ≤ 30
𝑥1 + 2𝑥2 + 4𝑥3 ≤ 45
X1 ≥ 0, 𝑥2 ≥ 0, 𝑥3 ≥ 0
Each inequality is converted into equality by adding slack
variable 𝑠1 & s2 whose coefficient in the objective
function is 0
Max z =x1+5x2+4x3+0s1+0s2
Subject to
. 2𝑥1 + 3𝑥2 + 7𝑥3 + 𝑠1 = 30
𝑥1 + 2𝑥2 + 4𝑥3 + 𝑠2 = 45
𝑥1 ≥ 0, 𝑥2 ≥ 0, 𝑥3 ≥ 0, 𝑠1 ≥ 0, 𝑠2 ≥ 0
𝑥1 , 𝑥2 & 𝑥3 are known as decision variables
s1 & s2 are known as slack variables
b) Subtraction of Surplus variable: It represents the amount
by which solution values exceeds a resources . Therefore It
is subtracted from the constraint which are in the form of
greater than (≥) type constraints in order to convert it into
equality. Coefficient of surplus variable in the objective
function is 0
𝑀𝑖𝑛 𝑧 = 𝑥1 + 𝑥2
Subject to
e.g. 2𝑥1 + 4𝑥2 ≥ 40
3𝑥1 + 5𝑥2 ≥ 20
x1 ≥ 0, 𝑥2 ≥ 0
each inequality is converted into equality by subtracting
surplus variable s1 & s2 whose coefficient in the objective
function is 0
𝑀𝑖𝑛 𝑧 = 𝑥1 + 𝑥2 + 0𝑠1 + 0𝑠2
Subject to
e.g. 2𝑥1 + 4𝑥2 − 𝑠1 = 40
3𝑥1 + 5𝑥2 − 𝑠2 = 20
x1 ≥ 0, 𝑥2 ≥ 0, 𝑠1 ≥ 0, 𝑠2 ≥ 0
𝑥1 & 𝑥2 are known as decision variables
𝑠1 & 𝑠2 are known as surplus variables
c) Addition of Artificial variable: These are added to those
constraints which has surplus variables& its coefficient in
the objective function is M in case of 𝑚𝑖𝑛 𝑧 & −𝑀 in case
of 𝑚𝑎𝑥 𝑧 where M is very large positive cost
𝑀𝑖𝑛 𝑧 = 𝑥1 + 𝑥2
Subject to
e.g. 2𝑥1 + 4𝑥2 ≥ 40
3𝑥1 + 5𝑥2 ≥ 20
x1 ≥ 0, 𝑥2 ≥ 0
𝑀𝑖𝑛 𝑧 = 𝑥1 + 𝑥2 + 0𝑠1 + 0𝑠2
Subject to
e.g. 2𝑥1 + 4𝑥2 − 𝑠1 = 40
3𝑥1 + 5𝑥2 − 𝑠2 = 20
x1 ≥ 0, 𝑥2 ≥ 0, 𝑠1 ≥ 0, 𝑠2 ≥ 0
𝑥1 & 𝑥2 are known as decision variables
𝑠1 & 𝑠2 are known as surplus variables
𝑀𝑖𝑛 𝑧 = 𝑥1 + 𝑥2 + 0𝑠1 + 0𝑠2 + 𝑀𝐴1 + 𝑀𝐴2
Subject to
e.g. 2𝑥1 + 4𝑥2 − 𝑠1 + 𝐴1 = 40
3𝑥1 + 5𝑥2 − 𝑠2 + 𝐴2 = 20
x1 ≥ 0, 𝑥2 ≥ 0, 𝑠1 ≥ 0, 𝑠2 ≥ 0
𝑥1 & 𝑥2 are known as decision variables
𝑠1 & 𝑠2 are known as surplus variables
𝐴1 & 𝐴2 are known as artificial variables
eg
𝑀𝑎𝑥 𝑧 = 𝑥1 + 𝑥2
Subject to
e.g. 2𝑥1 + 4𝑥2 ≤ 40
3𝑥1 + 5𝑥2 ≥ 20
x1 ≥ 0, 𝑥2 ≥ 0
𝑀𝑎𝑥 𝑧 = 𝑥1 + 𝑥2 + 0𝑠1 + 0𝑠2
Subject to
e.g. 2𝑥1 + 4𝑥2 + 𝑠1 = 40
3𝑥1 + 5𝑥2 − 𝑠2 = 20
x1 ≥ 0, 𝑥2 ≥ 0, 𝑠1 ≥ 0, 𝑠2 ≥ 0
𝑥1 & 𝑥2 are known as decision variables
∴ initial solution is 𝑆1 = 18 , 𝑆2 = 8
STEP 10 FIND KEY ELEMENT i.e. intersecting element of key column &
key row
KEY COLUMN
S1(OLD) 18 0 1 3 1 0 18/3=6
S2 0 4 2 Key 0 1 8/2=4
(KEY 8 element (Outgoing vari
ROW)
0×1+0 0×3+0 0×1+0 0×0
𝒁𝒋 ×4 ×2 =0+0 ×0 +0
=0+0 =0 =0+0 ×1
= (𝑪𝑩 𝒙𝒋 )
=0 =0 =0+0
=0
∆𝒋 = 𝑪𝒋 − 𝒁𝒋 4−0=4 7−0=7 0−0= 0 0−0
Incoming =0
Variable
18 0 1 − (2 ∗ 3) 3 − (1 ∗ 3) 1 − (0 ∗ 3) 0
S1 − (4 =1−6 =3−3=0 =1−0 − (1/2
∗ 3) = −5 =1 ∗ 3)
= 18 =0
− 12 − 3/2
=6 = 3/2
(NEW)*3 8/2=4 7 4/2=2 2/2=1 0/2=0 ½
y
𝒁𝒋 0*(- 0*0+7*1=7 0*1+7*0=0 0*3/2+7
5)+7*2=0+ *1/2=7/
= (𝑪𝑩 𝒙𝒋 )
14=14 2
4 − 14 7-7=0 0-0=0 0 − 7/2 = −7/2
∆𝒋 = 𝑪𝒋 − 𝒁𝒋 = −10
Since there is no ∆𝒋 𝒑𝒐𝒔𝒊𝒕𝒊𝒗𝒆 solution so obtained is optimal
Solution of given LPP is x=0 ,y=4 zmax=28
Basic 𝑪𝒋 50 20 0 0 Replacemen
Variables
𝑿𝑩 𝑪𝑩 𝒙 𝒚 𝑺𝟏 𝑺𝟐
𝑺𝟏 500 0 20 10 1 0 500/20=25
Old
𝑺𝟐 300 0 50 0 1 6
50
Key
element 300/50=
𝒁𝒋 = (𝑪𝑩 𝒙𝒋) (0×20) + (0×10) + (0×1)+(0×0) = (0×0) +
(0×50) = (0×50) = 0 0 (0×1) = 0
0
∆𝒋 = 𝑪𝒋 − 𝒁𝒋 50−0= 20 − 0 = 0−0= 0 0−0=0
20
50
Basic 𝑪𝒋 8 20 0 0 Replacement ra
Variables
𝑿𝑩 𝑪𝑩 𝒙 𝒚 𝑺𝟏 𝑺𝟐
𝑺𝟏 80 0 2 1 1 0 80/1=80
𝑺𝟐 96 0 3 4 0 1 96/4=
24
2
0