Professional Documents
Culture Documents
The Steps of The Simplex Algorithm PDF
The Steps of The Simplex Algorithm PDF
The Steps of The Simplex Algorithm PDF
Contents
1. Introduction.............................................................................................................................2
2. Slackandsurplusvariables......................................................................................................2
3. Basicandnonbasicvariables...................................................................................................2
4. Admissiblesolutions................................................................................................................3
5. Solutionofalinearprogram(LP)............................................................................................3
6. Lecritredarrt..............................................................................Erreur!Signetnondfini.
1. Introduction
A linear program (LP) that appears in a particular form where all constraints are
equationsandallvariablesarenonnegativeissaidtobeinstandardform.
Before the simplex algorithm can be used to solve a linear program, the problem
mustbewritteninstandardform.
Example:3 2 2translatesinto3 2 2, 0
Example:3 2 2translatesinto3 2 2, 0
Alinearprogramthatcontains(technological)constraintsofthetype isabbreviated
as (LP). A linear program that contains mixed (technological) constraints , , ) is
abbreviated as (GP). A linear program (LP) resp. (GP)converted into standard form is
abbreviatedas(PL=)resp.(PG=).
a) Set variablesequaltozero.Thesevariablesarecallednonbasicvariables
(N.B.V).
b) Solvethesystemforthe remainingvariables.Thesevariablesarecalledbasic
variables(B.V.)
c) The vector of variables obtained is called the basic solution (it contains both
basicandnonbasicvariables).
Abasicsolutionisadmissibleifallvariablesofthebasicsolutionarenonnegative.
Itiscrucialtohavethesamenumberofvariablesasequations.
Page2of8
4. Admissible solutions
Each basic solution of (LP=) for which all variables are nonnegative, is called an
admissible basic solution. This admissible basic solution corresponds to an extreme
point(cornersolution).
(LP) (LP)
6and 4
6 4 2variables 0
Nonbasicvariables Basicvariables:
x1 x2 0 then 200
60
34
14
Page3of8
StepA:initialtable
Theinitialtableiswritteninthefollowingway:
Thebleuframecorrespondstotheconstraintsof(LP=).
Thegreenframecorrespondsto :thecoefficientsin .
Exampleforthecolumnof called( ):
0 10 0 2 0 1 0 0 0
Thegreyframecorrespondstothevalueofthebasicvariables.
Theorangeframecorrespondstothevalueof ,i.e.thevalueoftheobjective
function,calculatedasfollows:
0 200 0 60 0 34 0 14 0
StepB:selectionoftheenteringvariable(tothesetofbasicvariables)
Maximumofthe formaximumproblems.
Minimumofthe fortheminimumproblems.
In our example: has the greatest ; hence it enters in the set of basic
variables.
Page4of8
StepC:selectionoftheleavingvariable
InaproblemofeitherminORmax,theleavingvariableistheminimumof
Inourexample,weneedtoevaluate:
Enteringvariable
200/5=40
60/3=20
14/1=14istheminimum,hence isthevariablethatleavesthesetofbasic
variables.
StepD:pivot
Page5of8
Thebluecelliscalledthepivot.Togotothenexttable(andhencetocarryoutthe
firstiteration),itisessentialtousethepivot.
Pivotinggoeslikethis:
Onestartsbydividingthelineofthepivotbythepivot.
Inourexample,wedivideby1.
Wecontinuetoconstructtheidentitymatrixforthebasicvariables.Wewriteonethe
intersectionofthesevariablesandzeroelsewhere.
Weneedtocalculatethevaluesfortheremainingcellsfromtheprevioustable(orthe
initialtableforthefirstiteration).
Page6of8
Initialtable:
Inourexample,the10intheredframedcelliscalculatedwiththefollowingformula
10
05
Hence, 10 10.
1
Letuscalculatethegreenframedcell.Weobtain3inthefollowingway:
31
0 3
1
Page7of8
Theremainingcellsarecalculatedinthesameway.Whenthetableisfull(suchasthe
one below), one can continue to the second iteration, that will be carried out in the
sameway.
6. Stopping criterion
Westopwhenwereachtheoptimalitycriterion.Thesimplexalgorithmstopswhen:
0foramaximumproblem
0foraminimumproblem
Page8of8