SlideShare a Scribd company logo
1 of 26
Algebraic Solution of LPPs - Simplex
Method
To solve an LPP algebraically, we first put it
in the standard form. This means all
decision variables are nonnegative and all
constraints (other than the nonnegativity
restrictions) are equations with nonnegative
RHS.
Converting inequalities into equations
21 32 xxz +=
Subject to
0,
623
63
21
21
21
≥
≤+
≤+
xx
xx
xx
Maximize
Consider the LPP
We make the ≤ inequalities into equations by
adding to each inequality a “slack” variable
(which is nonnegative). Thus the given LPP
can be written in the equivalent form
21 32 xxz +=
Subject to
0,,,
623
63
2121
221
121
≥
=++
=++
ssxx
sxx
sxx
are slack variables.21,ss
Maximize
Thus we seem to have complicated the
problem by introducing two more variables;
but then we shall see that this is easier to
solve. This is one of the “beauties” in
mathematical problem solving.
The ≥ inequalities are made into equations
by subtracting from each such inequality a
“surplus” (non-negative) variable.
Thus the LPP
21 32 xxz +=
Subject to
0,
223
63
21
21
21
≥
≥+
≤+
xx
xx
xx
Maximize
is equivalent to the LPP
21 32 xxz +=
Subject to
0,,,
223
63
2121
221
121
≥
=−+
=++
ssxx
sxx
sxx
is a slack variable; is a surplus variable.2s1s
Maximize
If in a constraint, the RHS constant is
negative, we make it positive by
multiplying the constraint by -1.
Thus the LPP
21 32 xxz +=
Subject to
0,
223
63
21
21
21
≥
−≥+
≤+
xx
xx
xx
Maximize
is equivalent to the LPP
21 32 xxz +=
Subject to 1 2
1 2
1 2
3 6
3 2 2
, 0
x x
x x
x x
+ ≤
− − ≤
≥
Maximize
Its standard form is the LPP
21 32 xxz +=
Subject to
0,,,
223
63
2121
221
121
≥
=+−−
=++
ssxx
sxx
sxx
Maximize
are slack variables.21,ss
Dealing with unrestricted variables
If, in an LPP, a decision variable xi is
unrestricted (in sign) i.e. it can take positive
as well as negative values, then we can, by
writing i i ix x x+ −
= − ,i ix x+ −
are (defined below and are) nonnegative, make
the LPP into an equivalent LPP where all the
decision variables are ≥ 0.
Note:
| |
;
2
i i
i
x x
x+ +
=
if 0 and otherwisei i i ix x x x+ −
= ≥ −
where
| |
2
i i
i
x x
x− −
=
Thus the LPP
Maximize 21 3xxz +=
Subject to
1 2
1 2
1 2
2
4
unrestricted, 0
x x
x x
x x
+ ≤
− + ≤
≥
is equivalent to the LPP
211 3xxxz +−= −+
Subject to
1 1 2 1
1 1 2 2
1 1 2 1 2
2
4
, , , , 0
x x x s
x x x s
x x x s s
+ −
+ −
+ −
− + + =
− + + + =
≥
Maximize
Basic variables, Basic feasible Solutions
Consider an LPP (in standard form) with m
constraints and n decision variables. We
assume m ≤ n. We choose n –m variables and
set them equal to zero. Thus we will be left
with a system of m equations in m variables.
If this m×m square system has a unique
solution, this solution is called a basic
solution. If further if it is feasible, it is called
a Basic Feasible Solution (BFS).
The n-m variables set to zero are called
nonbasic and the m variables which we are
solving for are known as basic variables.
Thus a basic solution is of the form
x = (x1, x2, …, xn) where n-m “components”
are zero and the remaining m components
form the unique solution of the square
system (formed by the m constraint
equations).
Note that we may have a maximum of
basic solutions.
n
m
 
 ÷
 
Consider the LPP:
Maximize 21 32 xxz +=
Subject to
0,
623
63
21
21
21
≥
≤+
≤+
xx
xx
xx
C
This is equivalent to the LPP (in standard form)
Maximize 21 32 xxz +=
Subject to
0,,,
623
63
2121
221
121
≥
=++
=++
ssxx
sxx
sxx
are slack variables.21,ss
NonbasicNonbasic
(zero)(zero)
variablesvariables
BasicBasic
variablesvariables
BasicBasic
solutionsolution
AssocAssoc
-iated-iated
cornercorner
pointpoint
Feasible?Feasible?
Object-Object-
ive value,ive value,
zz
(0,0,6,6)(0,0,6,6) OO YesYes 00
(0,2,0,2)(0,2,0,2) BB YesYes 66
(0,3,-3,0)(0,3,-3,0) EE NoNo --
(6,0,0, -12)(6,0,0, -12) DD NoNo --
(2,0,4,0)(2,0,4,0) AA YesYes 44
CC YesYes
48/748/7
OptimalOptimal
)0,0,
7
12
,
7
6
(
),,,( 2121 ssxx
),( 21 xx
),( 11 sx
),( 21 sx
),( 12 sx
),( 22 sx
),( 21 ss ),( 21 xx
),( 11 sx
),( 21 sx
),( 12 sx
),( 22 sx
),( 21 ss
Graphical solution of the above LPP
x1
x2
O A D
B
E
C
(2,0) (6,0)
(0,2)
(0,3) (6/7, 12/7)
Optimal point
(0,0)
Thus every Basic Feasible Solution
corresponds to a corner(=vertex) of the set
SF of all feasible solutions.
SF
Consider the LPP:
Maximize 21 3xxz +=
Subject to 1 2
1 2
1 2unrestricted
2
4
, 0
x x
x x
x x
+ ≤
− + ≤
≥
Question 6 (Problem set 3.2A – Page 79)
This is equivalent to the LPP(in standard form)
Maximize 211 3xxxz +−= −+
Subject to
0,,,,
4
2
21211
2211
1211
≥
=+++−
=++−
−+
−+
−+
ssxxx
sxxx
sxxx
NonbasicNonbasic
(zero)(zero)
variablesvariables
BasicBasic
variablesvariables
BasicBasic
solutionsolution
Assoc-Assoc-
iatediated
cornercorner
pointpoint
Feasible?Feasible? ObjectiveObjective
value, zvalue, z
(0,0,0,2,4)(0,0,0,2,4) OO YesYes 00
(0,0,2,0,2)(0,0,2,0,2) BB YesYes 66
(0,0,4,-2,0)(0,0,4,-2,0) EE NoNo --
(0,-2,0,0,6)(0,-2,0,0,6) -- NoNo --
(0,4,0,6,0)(0,4,0,6,0) DD YesYes -4-4
(0,1,3,0,0)(0,1,3,0,0) CC YesYes 88
),,,,( 21211 ssxxx −+
),,( 111 sxx −+
),,( 121 sxx+
),,( 211 xxx −+
),,( 211 sxx −+
),,( 221 sxx+
),,( 211 ssx+
),( 21 ss
),( 21 xx−
),( 11 sx−
),( 21 sx−
),( 12 sx
),( 22 sx
Optimal value
NonbasicNonbasic
(zero)(zero)
variablesvariables
BasicBasic
variablesvariables
BasicBasic
solutionsolution
Associ-Associ-
atedated
cornercorner
pointpoint
FeasibleFeasible
??
ObjectiveObjective
value, zvalue, z
(2,0,0,0,6)(2,0,0,0,6) AA YesYes 22
(-4,0,0,6,0)(-4,0,0,6,0) -- NoNo --
(-1,0,3,0,0)(-1,0,3,0,0) -- NoNo --
N0N0
SolutionSolution -- -- --
),,,,( 21211 ssxxx −+
),,( 221 sxx−
),,( 212 ssx
),,( 211 ssx−
),,( 121 sxx−
),( 11
−+
xx
),( 21 xx+
),( 11 sx+
),( 21 sx+
Hence note that the number of Basic Solutions can be less
than n
m
 
 ÷
 
(-1,3)
z maximum 8
at
0
B
E
D A
C
Direction of
increasing z
21 3xxz +=
Example: Convert the following
optimization problem into a LPP:
Maximize
1 2 1 2max{| 2 3 |, | 3 7 |}z x x x x= + −
Subject to
1 2
1 2
1 2
2
4
, 0
x x
x x
x x
+ ≤
− + ≤
≥
Note that here the objective function is
NOT linear. Let us put
1 2 1 2max{| 2 3 |, | 3 7 |}y x x x x= + −
Hence 1 2 1 2| 2 3 | and | 3 7 |y x x y x x≥ + ≥ −
Which is equivalent to
1 2 1 22 3 , (2 3 )y x x y x x≥ + ≥ − +
( )1 2 1 23 7 , 3 7y x x y x x≥ − ≥ − −
Hence the given optimization problem
is equivalent to the LPP:
Maximize z y=
Subject to 1 2
1 2
2
4
x x
x x
+ ≤
− + ≤
1 2 1 22 3 0, 2 3 0x x y x x y+ − ≤ − − − ≤
1 2 1 2
1 2
3 7 0, 3 7 0.
, , 0
x x y x x y
x x y
− − ≤ − + − ≤
≥

More Related Content

What's hot

Simplex method
Simplex methodSimplex method
Simplex methodAbu Bashar
 
Simplex Method
Simplex MethodSimplex Method
Simplex Methodkzoe1996
 
Artificial Variable Technique –
Artificial Variable Technique –Artificial Variable Technique –
Artificial Variable Technique –itsvineeth209
 
Linear programming using the simplex method
Linear programming using the simplex methodLinear programming using the simplex method
Linear programming using the simplex methodShivek Khurana
 
Sensitivity analysis linear programming copy
Sensitivity analysis linear programming   copySensitivity analysis linear programming   copy
Sensitivity analysis linear programming copyKiran Jadhav
 
Gauss jordan and Guass elimination method
Gauss jordan and Guass elimination methodGauss jordan and Guass elimination method
Gauss jordan and Guass elimination methodMeet Nayak
 
Lesson 31: The Simplex Method, I
Lesson 31: The Simplex Method, ILesson 31: The Simplex Method, I
Lesson 31: The Simplex Method, IMatthew Leingang
 
Simplex Method
Simplex MethodSimplex Method
Simplex MethodSachin MK
 
Gauss Elimination & Gauss Jordan Methods in Numerical & Statistical Methods
Gauss Elimination & Gauss Jordan Methods in Numerical & Statistical MethodsGauss Elimination & Gauss Jordan Methods in Numerical & Statistical Methods
Gauss Elimination & Gauss Jordan Methods in Numerical & Statistical MethodsJanki Shah
 
linear equation and gaussian elimination
linear equation and gaussian eliminationlinear equation and gaussian elimination
linear equation and gaussian eliminationAju Thadikulangara
 
Graphical Method
Graphical MethodGraphical Method
Graphical MethodSachin MK
 
linear programming
linear programminglinear programming
linear programmingJazz Bhatti
 

What's hot (20)

L20 Simplex Method
L20 Simplex MethodL20 Simplex Method
L20 Simplex Method
 
Simplex method
Simplex methodSimplex method
Simplex method
 
Simplex Method
Simplex MethodSimplex Method
Simplex Method
 
Artificial Variable Technique –
Artificial Variable Technique –Artificial Variable Technique –
Artificial Variable Technique –
 
Simplex algorithm
Simplex algorithmSimplex algorithm
Simplex algorithm
 
Big m method
Big m methodBig m method
Big m method
 
simplex method
simplex methodsimplex method
simplex method
 
5. advance topics in lp
5. advance topics in lp5. advance topics in lp
5. advance topics in lp
 
Linear programming using the simplex method
Linear programming using the simplex methodLinear programming using the simplex method
Linear programming using the simplex method
 
Sensitivity analysis linear programming copy
Sensitivity analysis linear programming   copySensitivity analysis linear programming   copy
Sensitivity analysis linear programming copy
 
aaoczc2252
aaoczc2252aaoczc2252
aaoczc2252
 
Gauss jordan and Guass elimination method
Gauss jordan and Guass elimination methodGauss jordan and Guass elimination method
Gauss jordan and Guass elimination method
 
LINEAR PROGRAMMING
LINEAR PROGRAMMINGLINEAR PROGRAMMING
LINEAR PROGRAMMING
 
Simplex algorithm
Simplex algorithmSimplex algorithm
Simplex algorithm
 
Lesson 31: The Simplex Method, I
Lesson 31: The Simplex Method, ILesson 31: The Simplex Method, I
Lesson 31: The Simplex Method, I
 
Simplex Method
Simplex MethodSimplex Method
Simplex Method
 
Gauss Elimination & Gauss Jordan Methods in Numerical & Statistical Methods
Gauss Elimination & Gauss Jordan Methods in Numerical & Statistical MethodsGauss Elimination & Gauss Jordan Methods in Numerical & Statistical Methods
Gauss Elimination & Gauss Jordan Methods in Numerical & Statistical Methods
 
linear equation and gaussian elimination
linear equation and gaussian eliminationlinear equation and gaussian elimination
linear equation and gaussian elimination
 
Graphical Method
Graphical MethodGraphical Method
Graphical Method
 
linear programming
linear programminglinear programming
linear programming
 

Viewers also liked

Two Phase Method- Linear Programming
Two Phase Method- Linear ProgrammingTwo Phase Method- Linear Programming
Two Phase Method- Linear ProgrammingManas Lad
 
Dual y simplex dual
Dual y simplex dualDual y simplex dual
Dual y simplex dualpuracastillo
 
Operation Research (Simplex Method)
Operation Research (Simplex Method)Operation Research (Simplex Method)
Operation Research (Simplex Method)Shivani Gautam
 

Viewers also liked (7)

S1 Dualsimplex
S1 DualsimplexS1 Dualsimplex
S1 Dualsimplex
 
Two Phase Method- Linear Programming
Two Phase Method- Linear ProgrammingTwo Phase Method- Linear Programming
Two Phase Method- Linear Programming
 
Dual y simplex dual
Dual y simplex dualDual y simplex dual
Dual y simplex dual
 
Dual simplexmethod
Dual simplexmethodDual simplexmethod
Dual simplexmethod
 
Big-M Method Presentation
Big-M Method PresentationBig-M Method Presentation
Big-M Method Presentation
 
Operation Research (Simplex Method)
Operation Research (Simplex Method)Operation Research (Simplex Method)
Operation Research (Simplex Method)
 
Simplex two phase
Simplex two phaseSimplex two phase
Simplex two phase
 

Similar to optimization simplex method introduction

Mathematical linear programming notes
Mathematical linear programming notesMathematical linear programming notes
Mathematical linear programming notesTarig Gibreel
 
quadratic equations-1
quadratic equations-1quadratic equations-1
quadratic equations-1Yaganti Rao
 
Pydata Katya Vasilaky
Pydata Katya VasilakyPydata Katya Vasilaky
Pydata Katya Vasilakyknv4
 
Linearprog, Reading Materials for Operational Research
Linearprog, Reading Materials for Operational Research Linearprog, Reading Materials for Operational Research
Linearprog, Reading Materials for Operational Research Derbew Tesfa
 
Newton Raphson method for load flow analysis
Newton Raphson method for load flow analysisNewton Raphson method for load flow analysis
Newton Raphson method for load flow analysisdivyanshuprakashrock
 
Management Science
Management ScienceManagement Science
Management Sciencelisa1090
 
Chapter 3 solving systems of linear equations
Chapter 3 solving systems of linear equationsChapter 3 solving systems of linear equations
Chapter 3 solving systems of linear equationsssuser53ee01
 
Nonconvex Compressed Sensing with the Sum-of-Squares Method
Nonconvex Compressed Sensing with the Sum-of-Squares MethodNonconvex Compressed Sensing with the Sum-of-Squares Method
Nonconvex Compressed Sensing with the Sum-of-Squares MethodTasuku Soma
 
Convergence Criteria
Convergence CriteriaConvergence Criteria
Convergence CriteriaTarun Gehlot
 
LPP, Duality and Game Theory
LPP, Duality and Game TheoryLPP, Duality and Game Theory
LPP, Duality and Game TheoryPurnima Pandit
 
Bounded variables new
Bounded variables newBounded variables new
Bounded variables newSamo Alwatan
 
Pair of linear equation in two variables (sparsh singh)
Pair of linear equation in two variables (sparsh singh)Pair of linear equation in two variables (sparsh singh)
Pair of linear equation in two variables (sparsh singh)Sparsh Singh
 
Pair of linear equation in two variables (sparsh singh)
Pair of linear equation in two variables (sparsh singh)Pair of linear equation in two variables (sparsh singh)
Pair of linear equation in two variables (sparsh singh)Sparsh Singh
 

Similar to optimization simplex method introduction (20)

Mathematical linear programming notes
Mathematical linear programming notesMathematical linear programming notes
Mathematical linear programming notes
 
quadratic equations-1
quadratic equations-1quadratic equations-1
quadratic equations-1
 
2_Simplex.pdf
2_Simplex.pdf2_Simplex.pdf
2_Simplex.pdf
 
smtlecture.6
smtlecture.6smtlecture.6
smtlecture.6
 
Simplex Method.pptx
Simplex Method.pptxSimplex Method.pptx
Simplex Method.pptx
 
system linear equations
 system linear equations  system linear equations
system linear equations
 
Ch05 4
Ch05 4Ch05 4
Ch05 4
 
Pydata Katya Vasilaky
Pydata Katya VasilakyPydata Katya Vasilaky
Pydata Katya Vasilaky
 
Linearprog, Reading Materials for Operational Research
Linearprog, Reading Materials for Operational Research Linearprog, Reading Materials for Operational Research
Linearprog, Reading Materials for Operational Research
 
Newton Raphson method for load flow analysis
Newton Raphson method for load flow analysisNewton Raphson method for load flow analysis
Newton Raphson method for load flow analysis
 
Management Science
Management ScienceManagement Science
Management Science
 
Big m method
Big   m methodBig   m method
Big m method
 
Chapter 3 solving systems of linear equations
Chapter 3 solving systems of linear equationsChapter 3 solving systems of linear equations
Chapter 3 solving systems of linear equations
 
Nonconvex Compressed Sensing with the Sum-of-Squares Method
Nonconvex Compressed Sensing with the Sum-of-Squares MethodNonconvex Compressed Sensing with the Sum-of-Squares Method
Nonconvex Compressed Sensing with the Sum-of-Squares Method
 
Convergence Criteria
Convergence CriteriaConvergence Criteria
Convergence Criteria
 
LPP, Duality and Game Theory
LPP, Duality and Game TheoryLPP, Duality and Game Theory
LPP, Duality and Game Theory
 
Simplex3
Simplex3Simplex3
Simplex3
 
Bounded variables new
Bounded variables newBounded variables new
Bounded variables new
 
Pair of linear equation in two variables (sparsh singh)
Pair of linear equation in two variables (sparsh singh)Pair of linear equation in two variables (sparsh singh)
Pair of linear equation in two variables (sparsh singh)
 
Pair of linear equation in two variables (sparsh singh)
Pair of linear equation in two variables (sparsh singh)Pair of linear equation in two variables (sparsh singh)
Pair of linear equation in two variables (sparsh singh)
 

Recently uploaded

Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Recently uploaded (20)

Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 

optimization simplex method introduction

  • 1. Algebraic Solution of LPPs - Simplex Method To solve an LPP algebraically, we first put it in the standard form. This means all decision variables are nonnegative and all constraints (other than the nonnegativity restrictions) are equations with nonnegative RHS.
  • 2. Converting inequalities into equations 21 32 xxz += Subject to 0, 623 63 21 21 21 ≥ ≤+ ≤+ xx xx xx Maximize Consider the LPP
  • 3. We make the ≤ inequalities into equations by adding to each inequality a “slack” variable (which is nonnegative). Thus the given LPP can be written in the equivalent form 21 32 xxz += Subject to 0,,, 623 63 2121 221 121 ≥ =++ =++ ssxx sxx sxx are slack variables.21,ss Maximize
  • 4. Thus we seem to have complicated the problem by introducing two more variables; but then we shall see that this is easier to solve. This is one of the “beauties” in mathematical problem solving. The ≥ inequalities are made into equations by subtracting from each such inequality a “surplus” (non-negative) variable.
  • 5. Thus the LPP 21 32 xxz += Subject to 0, 223 63 21 21 21 ≥ ≥+ ≤+ xx xx xx Maximize
  • 6. is equivalent to the LPP 21 32 xxz += Subject to 0,,, 223 63 2121 221 121 ≥ =−+ =++ ssxx sxx sxx is a slack variable; is a surplus variable.2s1s Maximize
  • 7. If in a constraint, the RHS constant is negative, we make it positive by multiplying the constraint by -1. Thus the LPP 21 32 xxz += Subject to 0, 223 63 21 21 21 ≥ −≥+ ≤+ xx xx xx Maximize
  • 8. is equivalent to the LPP 21 32 xxz += Subject to 1 2 1 2 1 2 3 6 3 2 2 , 0 x x x x x x + ≤ − − ≤ ≥ Maximize
  • 9. Its standard form is the LPP 21 32 xxz += Subject to 0,,, 223 63 2121 221 121 ≥ =+−− =++ ssxx sxx sxx Maximize are slack variables.21,ss
  • 10. Dealing with unrestricted variables If, in an LPP, a decision variable xi is unrestricted (in sign) i.e. it can take positive as well as negative values, then we can, by writing i i ix x x+ − = − ,i ix x+ − are (defined below and are) nonnegative, make the LPP into an equivalent LPP where all the decision variables are ≥ 0. Note: | | ; 2 i i i x x x+ + = if 0 and otherwisei i i ix x x x+ − = ≥ − where | | 2 i i i x x x− − =
  • 11. Thus the LPP Maximize 21 3xxz += Subject to 1 2 1 2 1 2 2 4 unrestricted, 0 x x x x x x + ≤ − + ≤ ≥
  • 12. is equivalent to the LPP 211 3xxxz +−= −+ Subject to 1 1 2 1 1 1 2 2 1 1 2 1 2 2 4 , , , , 0 x x x s x x x s x x x s s + − + − + − − + + = − + + + = ≥ Maximize
  • 13. Basic variables, Basic feasible Solutions Consider an LPP (in standard form) with m constraints and n decision variables. We assume m ≤ n. We choose n –m variables and set them equal to zero. Thus we will be left with a system of m equations in m variables. If this m×m square system has a unique solution, this solution is called a basic solution. If further if it is feasible, it is called a Basic Feasible Solution (BFS).
  • 14. The n-m variables set to zero are called nonbasic and the m variables which we are solving for are known as basic variables. Thus a basic solution is of the form x = (x1, x2, …, xn) where n-m “components” are zero and the remaining m components form the unique solution of the square system (formed by the m constraint equations). Note that we may have a maximum of basic solutions. n m    ÷  
  • 15. Consider the LPP: Maximize 21 32 xxz += Subject to 0, 623 63 21 21 21 ≥ ≤+ ≤+ xx xx xx
  • 16. C This is equivalent to the LPP (in standard form) Maximize 21 32 xxz += Subject to 0,,, 623 63 2121 221 121 ≥ =++ =++ ssxx sxx sxx are slack variables.21,ss
  • 17. NonbasicNonbasic (zero)(zero) variablesvariables BasicBasic variablesvariables BasicBasic solutionsolution AssocAssoc -iated-iated cornercorner pointpoint Feasible?Feasible? Object-Object- ive value,ive value, zz (0,0,6,6)(0,0,6,6) OO YesYes 00 (0,2,0,2)(0,2,0,2) BB YesYes 66 (0,3,-3,0)(0,3,-3,0) EE NoNo -- (6,0,0, -12)(6,0,0, -12) DD NoNo -- (2,0,4,0)(2,0,4,0) AA YesYes 44 CC YesYes 48/748/7 OptimalOptimal )0,0, 7 12 , 7 6 ( ),,,( 2121 ssxx ),( 21 xx ),( 11 sx ),( 21 sx ),( 12 sx ),( 22 sx ),( 21 ss ),( 21 xx ),( 11 sx ),( 21 sx ),( 12 sx ),( 22 sx ),( 21 ss
  • 18. Graphical solution of the above LPP x1 x2 O A D B E C (2,0) (6,0) (0,2) (0,3) (6/7, 12/7) Optimal point (0,0) Thus every Basic Feasible Solution corresponds to a corner(=vertex) of the set SF of all feasible solutions. SF
  • 19. Consider the LPP: Maximize 21 3xxz += Subject to 1 2 1 2 1 2unrestricted 2 4 , 0 x x x x x x + ≤ − + ≤ ≥ Question 6 (Problem set 3.2A – Page 79)
  • 20. This is equivalent to the LPP(in standard form) Maximize 211 3xxxz +−= −+ Subject to 0,,,, 4 2 21211 2211 1211 ≥ =+++− =++− −+ −+ −+ ssxxx sxxx sxxx
  • 21. NonbasicNonbasic (zero)(zero) variablesvariables BasicBasic variablesvariables BasicBasic solutionsolution Assoc-Assoc- iatediated cornercorner pointpoint Feasible?Feasible? ObjectiveObjective value, zvalue, z (0,0,0,2,4)(0,0,0,2,4) OO YesYes 00 (0,0,2,0,2)(0,0,2,0,2) BB YesYes 66 (0,0,4,-2,0)(0,0,4,-2,0) EE NoNo -- (0,-2,0,0,6)(0,-2,0,0,6) -- NoNo -- (0,4,0,6,0)(0,4,0,6,0) DD YesYes -4-4 (0,1,3,0,0)(0,1,3,0,0) CC YesYes 88 ),,,,( 21211 ssxxx −+ ),,( 111 sxx −+ ),,( 121 sxx+ ),,( 211 xxx −+ ),,( 211 sxx −+ ),,( 221 sxx+ ),,( 211 ssx+ ),( 21 ss ),( 21 xx− ),( 11 sx− ),( 21 sx− ),( 12 sx ),( 22 sx Optimal value
  • 22. NonbasicNonbasic (zero)(zero) variablesvariables BasicBasic variablesvariables BasicBasic solutionsolution Associ-Associ- atedated cornercorner pointpoint FeasibleFeasible ?? ObjectiveObjective value, zvalue, z (2,0,0,0,6)(2,0,0,0,6) AA YesYes 22 (-4,0,0,6,0)(-4,0,0,6,0) -- NoNo -- (-1,0,3,0,0)(-1,0,3,0,0) -- NoNo -- N0N0 SolutionSolution -- -- -- ),,,,( 21211 ssxxx −+ ),,( 221 sxx− ),,( 212 ssx ),,( 211 ssx− ),,( 121 sxx− ),( 11 −+ xx ),( 21 xx+ ),( 11 sx+ ),( 21 sx+ Hence note that the number of Basic Solutions can be less than n m    ÷  
  • 23. (-1,3) z maximum 8 at 0 B E D A C Direction of increasing z 21 3xxz +=
  • 24. Example: Convert the following optimization problem into a LPP: Maximize 1 2 1 2max{| 2 3 |, | 3 7 |}z x x x x= + − Subject to 1 2 1 2 1 2 2 4 , 0 x x x x x x + ≤ − + ≤ ≥
  • 25. Note that here the objective function is NOT linear. Let us put 1 2 1 2max{| 2 3 |, | 3 7 |}y x x x x= + − Hence 1 2 1 2| 2 3 | and | 3 7 |y x x y x x≥ + ≥ − Which is equivalent to 1 2 1 22 3 , (2 3 )y x x y x x≥ + ≥ − + ( )1 2 1 23 7 , 3 7y x x y x x≥ − ≥ − −
  • 26. Hence the given optimization problem is equivalent to the LPP: Maximize z y= Subject to 1 2 1 2 2 4 x x x x + ≤ − + ≤ 1 2 1 22 3 0, 2 3 0x x y x x y+ − ≤ − − − ≤ 1 2 1 2 1 2 3 7 0, 3 7 0. , , 0 x x y x x y x x y − − ≤ − + − ≤ ≥