Or-Week 2 - Introduction To LP - Simplex Method
Or-Week 2 - Introduction To LP - Simplex Method
Programming
-The Theory of the Simplex Method
Hongying FEI
[email protected]
Symbols used in a linear programming model
The most common type of application of linear programming involves
allocating resources to activities. The amount available of each resource is
limited, so a careful allocation of resources to activities must be made.
= value of overall measure of performance
= increase in that would result from each unit increase in level of activity
1
2 to Z per
Contribution
unit of activity
m
Contribution to Z per
unit of activity
Standard Form of a linear Programming Model
s.t.
Recall: WYNDOR GLASS CO.
Production TimeActivities
per
Batch, Hours Production Time
Plant Product Available per week,
Decision
Hours variables:
1 2
1 1 0 4
2 0 2 12
3 3 2 18
Profit per batch 𝑐 13=3 , 𝑐 2=5
5
s.t.
An optimal solution is feasible
solution that has the most favorable
value of the objective value.
(Checking whether any of adjacent CPF gives a positive rate of improvement in Z!)
Right-side : non-negative
Right-side : non-negative
If certain right side is negative multiple both sides by (-1).
Decision variables : non-negative
For any , and replace by ,
For unrestricted variable , replace it by the subtraction of two non-negative
variables, i.e. replace by ,
Convert Original Form to Augmented Form
Functional constraints: equations
For any equivalent constraint , add slack variable to make
For any equivalent constraint , subtract surplus variable to make
Example 1
Introduce
slack
Subject to variables
Subject to
and
Example 2
Original Form
Convert Minimize Z to Maximize Z’ = -Z
Introduce slack variables
Introduce surplus variable
Subject to
Set , replace by
Set and replace by
Augmented Form
Subject to
-
Exercises 2-1
Convert the following LPs to Augmented form.
Subject to
Subject to
Setting Up the Simplex Method
Subject to
Subject to
Introducing slack variables
(3,2) (3,2,1,8,5)
Subject to
Subject to
Introducing slack variables
If the number of variables is larger than the number of equations, the degree of
Freedom indicates the number of variables that can be chosen to be set equal to
any arbitrary value (called non-basic variables) in order to solve the function
constraints (now equations) in terms of remaining the other variables (called
basic variables).
Basic Solution: All non-basic variables are set equal to zero and the basic variables to
be the solution of functional constraints (now equations).
If the basic variables satisfy the non-negativity constraints, the basic solution is a
basic feasible (BF) solution.
Optimality Test :
Objective function ( a l
Increasing of both
t i m and can improve the
p
The current objective value Z= 3*0+5*0o= 0
ot objective function!
The Algebra of the Simplex Method
Determine
the Direction of Movement :
5>3! Choose to increase!
Increase ? Rate of improvement in Z = 3.
( is called the entering basic
Increase ? Rate of improvement in Z = 5. variable )
Solution Improvement (Determine how far to increase the entering basic
variable)
To increase as far as possible without leaving the feasible region while
keeping !
Optimality Test :
Objective function (
The current objective value Z= 3*0+5*0 = 0
The Algebra of the Simplex Method
Determine
the Direction of Movement :
5>3! Choose to increase!
Increase ? Rate of improvement in Z = 3.
( is called the entering basic
Increase ? Rate of improvement in Z = 5. variable )
Solution Improvement (Determine how far to increase the entering basic
variable)
To increase as far as possible without leaving the feasible region while
keeping !
No upper bound on
Minimum
(0,?,?,0,?)
Minimum Non-basic:
Basic :
Transformation
The objective of this step is to convert the equations to a more
convenient form for conducting optimality test with the new BF
solution.
(0,?,?,0,?)
Minimum Non-basic:
Basic :
Gauss-Jordan method of elimination
Transformation i.e. Gaussian Elimination
Original BF solution
Non-basic:
Basic :
Gauss-Jordan method of elimination
Transformation i.e. Gaussian Elimination
(0) Z + = 30
Original BF solution
(1) =4
Non-basic:
(2) =6
Basic :
(3) - + =6
(3) =6
Gauss-Jordan method of elimination
Transformation i.e. Gaussian Elimination
(0) Z + = 30
Original BF solution
(1) =4
Non-basic:
(2) =6
Basic :
(3) - + =6
(3) =6
Optimality Test for the New BF solution
(0) Z + = 30 Z=30
Original BF solution
(0,6,4,0,6)
(1) =4
Non-basic:
(2) =6
Basic :
(3) - + =6
(3) =6
Increasing either or would decrease
Z! Therefore, the current BF solution
(0) Z + = 30 must be optimal!
(1) =4
New BF solution
(2) =6
(3) - + =6 Non-basic:
(3) =6
Basic :
(0) Z + + = 36
(1) =2
Original BF solution
(2) =6
(0,6,4,0,6)
Non-basic: (3) + =2
Basic :
Question & Answer
Thanks !
Hongying [email protected]