Lecture 4 Linear Programming Problem (Simplex Method)
Lecture 4 Linear Programming Problem (Simplex Method)
(Simplex Method)
Course Code: MAT2003
Special Examples
Practice Set
General form of LPP
Find the unknown (variables) 𝑥1 , 𝑥2 , … , 𝑥𝑛 which maximize (or
minimize) the objective function.
𝑍 = 𝑐1 𝑥1 + 𝑐2 𝑥2 + ⋯ + 𝑐𝑛 𝑥𝑛
Subject to the constraints
𝑎11 𝑥1 + 𝑎12 𝑥2 + ⋯ + 𝑎1𝑛 𝑥𝑛 ≤ 𝑏1
𝑎21 𝑥1 + 𝑎22 𝑥2 + ⋯ + 𝑎2𝑛 𝑥𝑛 ≤ 𝑏2
⋮
𝑎𝑚1 𝑥1 + 𝑎𝑚2 𝑥2 + ⋯ + 𝑎𝑚𝑛 𝑥𝑛 ≤ 𝑏𝑚
and the non-negativity restrictions
𝑥1 , 𝑥2 , … , 𝑥𝑛 ≥ 0,
where, 𝑐𝑗 , 𝑏𝑖 , 𝑎𝑖𝑗 ; 𝑖 = 1,2, … , 𝑚; 𝑗 = 1, 2, … , 𝑛 are constants.
3
General form of LPP
Case 1: If the constraints of a general LPP are of the following type
σ𝑛𝑗=1 𝑎𝑖𝑗 𝑥𝑗 ≤ 𝑏𝑖 , 𝑖 = 1, 2, 3, … , 𝑚
then the non-negative variables 𝑠𝑖 which satisfy
σ𝑛𝑗=1 𝑎𝑖𝑗 𝑥𝑗 + 𝑠𝑖 = 𝑏𝑖 , 𝑖 = 1, 2, 3, … , 𝑚
are called the slack variables.
Case 2: If the constraints of a general LPP are of the following type
σ𝑛𝑗=1 𝑎𝑖𝑗 𝑥𝑗 ≥ 𝑏𝑖 , 𝑖 = 1, 2, 3, … , 𝑚
then the non-negative variables 𝑠𝑖 which satisfy
σ𝑛𝑗=1 𝑎𝑖𝑗 𝑥𝑗 − 𝑠𝑖 = 𝑏𝑖 , 𝑖 = 1, 2, 3, … , 𝑚
are called the surplus variables.
4
Canonical and standard forms of LPP
Canonical form
The general LPP is very often expressed in the following form
Maximize 𝑍 = 𝑐1 𝑥1 + 𝑐2 𝑥2 + ⋯ + 𝑐𝑛 𝑥𝑛
subject to the constraints
𝑎𝑖1 𝑥1 + 𝑎𝑖2 𝑥2 + ⋯ + 𝑎𝑖𝑛 𝑥𝑛 ≤ 𝑏𝑖 ; 𝑖 = 1, 2, … , 𝑚
𝑥1 , 𝑥2 , … , 𝑥𝑛 ≥ 0,
by doing some elementary transformations. The current form of the
LPP is known as canonical form and it has the following
characteristics.
The objective function is of a maximization type,
All constraints are of (≤) type,
All variables 𝑥𝑖 are non-negative.
5
Canonical and standard forms of LPP
Standard form
The general LPP can also be written in the following form
Maximize 𝑍 = 𝑐1 𝑥1 + 𝑐2 𝑥2 + ⋯ + 𝑐𝑛 𝑥𝑛
subject to the constraints
𝑎𝑖1 𝑥1 + 𝑎𝑖2 𝑥2 + ⋯ + 𝑎𝑖𝑛 𝑥𝑛 = 𝑏𝑖 ; 𝑖 = 1, 2, … , 𝑚
𝑥1 , 𝑥2 , … , 𝑥𝑛 ≥ 0.
The current form of the LPP is known as standard form and it has the
following characteristics.
The objective function is of a maximization type,
All the constraints are expressed as equations (equality),
The right-hand side of each constraint is non-negative,
All variables are non-negative.
6
Special Examples
7
Special Examples
Solution:
Given LPP, the variable 𝑥3 is unrestricted. So we may take
𝑥3 = 𝑥3′ − 𝑥3′′ , where 𝑥3′ , 𝑥3′′ ≥ 0.
Now, we may write the given constraints in the following form
7𝑥1 − 4𝑥2 ≤ 5,
5𝑥1 + 2𝑥2 + 3𝑥3′ − 3𝑥3′′ ≥ 13,
6𝑥1 + 4𝑥3′ − 4𝑥3′′ ≤ 3,
𝑥1 , 𝑥2 , 𝑥3′ , 𝑥3′′ ≥ 0.
8
Special Examples
9
Special Examples
10
Special Examples
Solution:
The current problem, as 𝑥3 and 𝑥4 are the slack/surplus variables.
Whereas, 𝑥1 and 𝑥2 are the decision variables. Also, the variable 𝑥2
is unrestricted.
So, we may consider 𝑥2 = 𝑥2′ − 𝑥2′′ where 𝑥2′ , 𝑥2′′ ≥ 0.
We can write the problem in standard form as given below.
Maximize 𝑍 ′ = −𝑍 = −4𝑥1 − 5𝑥2′ + 5𝑥2′′
subject to
−2𝑥1 + 𝑥2′ − 𝑥2′′ + 3𝑥3 = 4
3𝑥1 + 4𝑥2′ − 4𝑥2′′ + 𝑥4 = 10
𝑥1 − 5𝑥2′ + 5𝑥2′′ = 15
𝑥1 , 𝑥2′ , 𝑥2′′ , 𝑥3 , 𝑥4 ≥ 0.
11
Practice Set
12
Practice Set
13
References
1. S. S. Bhavikatti (2010), Fundamentals of Optimum Design in
Engineering. New Delhi: New Age International (P) Limited
Publishers.
2. K. Deb (2004), Optimization for Engineering Design
Algorithms and Examples. New Delhi: Prentice-Hall of India.
3. S. Nayak (2020), Fundamentals of Optimization Techniques
with Algorithms. Academic Press, San Diego, California, USA.
4. S. S. Rao (1995), Optimization Theory and Applications. New
Delhi: New Age International (P) Limited Publishers.
14
15