Lecture 06
Lecture 06
ME F320/MF F320
BITS Pilani
Pilani Campus
LP Model in
Equation Form
2
Outline
• LP Model in Equation Form (Standard Form)
• Transition from Graphical to Algebraic Solution
• The Simplex Method
• Artificial Starting Solution
• Special Cases in the Simplex Method
3
LP Model in Equation Form
Simplex method computations facilitated by imposing:
1. All constraints are equations (=) with nonnegative
right-hand side.
2. All variables are nonnegative.
4
LP Model in Equation Form
Converting inequalities into equations with
nonnegative right-hand side.
1. Slack or unused variable (≤ inequality)
2. Surplus or extra variable (≥ inequality)
5
LP Model in Equation Form
Converting inequalities into equations with
nonnegative right-hand side.
1. Slack or unused variable (≤ inequality)
Convert M1-constraint of the Reddy Mikks model into an equation:
6
LP Model in Equation Form
Converting inequalities into equations with
nonnegative right-hand side.
1. Slack or unused variable (≤ inequality)
Convert M1-constraint of the Reddy Mikks model into an equation:
𝟔𝐱 𝟏 + 𝟒𝐱 𝟐 + 𝐬𝟏 = 𝟐𝟒, 𝐬𝟏 ≥ 𝟎
7
LP Model in Equation Form
Converting inequalities into equations with
nonnegative right-hand side.
2. Surplus or extra variable (≥ inequality)
Convert the following inequality into an equation:
𝐱 𝟏 + 𝐱 𝟐 ≥ 𝟖𝟎𝟎 Inequality
8
LP Model in Equation Form
Converting inequalities into equations with
nonnegative right-hand side.
2. Surplus or extra variable (≥ inequality)
Convert the following inequality into an equation:
𝐱 𝟏 + 𝐱 𝟐 ≥ 𝟖𝟎𝟎 Inequality
𝐱 𝟏 + 𝟒𝟐 − 𝐒𝟏 = 𝟖𝟎𝟎, 𝐒𝟏 ≥ 𝟎
9
LP Model in Equation Form
Converting inequalities into equations with
nonnegative right-hand side.
1. Slack or unused variable (≤ inequality)
2. Surplus or extra variable (≥ inequality)
10
Example
Convert the following LPP into standard form.
z = 5x1 + 4x2 Objective
6x1 + 4x2 ≤ 24
x1 + x2 ≥ 6
x2 − x1 ≤ −1
x1 ≥ 0, x2 ≥ 0
11
Example
Convert the following LPP into standard form:
z = 5x1 + 4x2 Objective
6x1 + 4x2 + s1 = 24
x1 + x2 − S2 = 6
x2 − x1 + s3 = −1
x1 ≥ 0, x2 ≥ 0, s1 ≥ 0, S2 ≥ 0, s3 ≥ 0
6x1 + 4x2 + s1 = 24
x1 + x2 − S2 = 6
−x2 + x1 − s3 = 1
x1 ≥ 0, x2 ≥ 0, s1 ≥ 0, S2 ≥ 0, s3 ≥ 0
14
From Graphical to Algebraic Solution
15
From Graphical to Algebraic Solution
16
From Graphical to Algebraic Solution
• Algebraic solution space
– m equations and n variables
– n>m
– basic solutions set n−m variables equal to zero
– Maximum number of basic solutions: ?
17
From Graphical to Algebraic Solution
• Algebraic solution space
– m equations and n variables
– n>m
– basic solutions set n−m variables equal to zero
n n!
– Maximum number of basic solutions: Cm = m! n−m !
18
From Graphical to Algebraic Solution
• Consider the problem:
Maximize:
z = 2x1 + 3x2
subject to
2x1 + x2 ≤ 4
x1 + 2x2 ≤ 5
x1 , x2 ≥ 0
19
From Graphical to Algebraic Solution
Maximize:
z = 2x1 + 3x2
subject to
2x1 + x2 + s1 = 4
x1 + 2x2 + s2 = 5
x1 , x2 , s1 , s2 ≥ 0
Clearly n = 4 and m = 2
⇒ Maximum basic solutions = 6 (note corner points are 4)
20
21
From Graphical to Algebraic Solution
• Which n−m variables should be set equal to zero to
target a specific corner point?
n
– target all basic solutions: Cm points
23
Simplex Method
• Investigate only a “select few” basic solutions.
• Iterations are required…
• Example:
Maximize:
z = 2x1 + 3x2
subject to
2x1 + x2 ≤ 4
x1 + 2x2 ≤ 5
x1 , x2 ≥ 0
24
Simplex Method
Step 1: Convert to standard form
Maximize:
z = 2x1 + 3x2
subject to
2x1 + x2 + s1 = 4
x1 + 2x2 + s2 = 5
x1 , x2 , s1 , s2 ≥ 0
Clearly n = 4 and m = 2
25
26
Simplex Method
• Iteration #1
– Start at the origin: all decision variables are zero.
– x1 = 0, x2 = 0 ⇒ s1 = 4, s2 = 5
– z=0
– check whether an increase in the values of non-basic
(variables that are zero) x1 and x2 above their current values
can improve (increase) the value of z investigate the
objective function (z) increase in x1 or x2 (or both) will
increase z.
– prepare for next iteration
27
Simplex Method
• Simplex method doesn’t allow simultaneous increases in
variables targets one variable at a time.
• The variable to increase: one with largest rate of
improvement in z.
z = 2x1 + 3x2
• Elect to increase x2
28
Thank you!
29