SlideShare a Scribd company logo
Linear Programming III:
Duality and Sensitivity Analysis
in Linear Programming
5/4/2018 4:12 PM 1
Dual means two. This implies that LPP exists in “pairs”, so
that corresponding to every LPP there is another LPP.
Meaning that we can face the LP models in other ways.
Primal model: the original model is known as primal LP
model.
Dual model: the one which can be obtained from the primal
is dual.
In simplex method, solving one of the LPP (primal or dual)
gives us the solution of both models.
Rules of converting from Primal to Dual or Vice versa:
Objective function: Max
Min
Coeff. Of objective function
RHS of Constraints
Coeff of LHS of the constraints
Sign of the constraint
>=
<=
Objective function: Min
Max
Right-hand-side of the constraints (bj)
Coeff. Of objective function
LHS of the constraints but in transpose
Sign of the constraint
<=
>=
Max Z= C1X1 + C2X2 + ..+ CnXn
St:
a11X1 + a12X2+ ..+ a1nXn <= b1
a21X1 + a22X2 + ..+ a2nXn <= b2
an1X1 + an2X2 +..+annXn <=bm
X1, X2, Xn>=O
Min Z= b1Y1 + b2Y2 + ..+ bnYn
St:
a11Y1 + a21Y2+ ..+ am1Ym <= C1
a12Y1 + a22Y2 + ..+ am2Ym <= C2
a1nY1 + a2nY2+…+amnYn <=Cn
Y1, Y2, Yn>=O
Advantages of dual
 To check the primal problem manually
 When there are more number of constraints than
variables in the primal, go to dual to reduce the
iterations
Example
Obtain the dual of the following problem:
Max. Z = 30X1 + 40X2
ST 60X1 + 120X2 <= 1200 Raw Material
8X1 + 5X2 <= 600 Machine Hour
3X1 + 4X2 <= 500 Man Hour
X1, X2>=0
If we let Y1, Y2, Y3 to be cost of unit resources raw
material, machine hour, and man hour, the problem can
be solved as follows:
Min Z= 1200Y1 + 600Y2 + 500Y3
ST 60Y1 + 8Y2 + 3Y3 >=30
120Y1 + 5Y2 4Y3 >= 40
Y1,Y2,Y3>=0
If you have n decision variables & m constraints in primal,
You will have m decision variables & n constraints in dual.
Example: Obtain the dual of the LP model:
Max Z= 40X1 + 50X2
ST X1 + 2X2 <= 60
4X1 + 3X2 <= 100
X1,X2>=0
Min Z= 60Y1 + 100Y2
ST Y1 + 4Y2 >= 40
2Y1 + 3Y2 >= 50
Y1,Y2>=0
Comparing the optimal solutions of primal & dual
Max Z= 160X1 + 200X2
ST 2X1 + 4X2 <= 40
18X1 + 18X2 <= 216
24X1 + 12X2 <= 240
X1,X2>=0
Cj 160 200 0 0 0
CB Basis X1 X2 S1 S2 S3 Soln
160 X2 0 1 ½ -1/8 0 8
200 X1 1 0 -1/2 1/9 0 4
0 S3 0 0 0 -2 1 48
Zj 160 200 20 20/3 0 Z= 2,240
Cj-Zj 0 0 -20 -20/3 0
The final optimal iteration (Optimal solution):
Comparing the optimal solutions of primal & dual
Dual of the above Primal:
Min Z= 40Y1 + 216Y2 + 240Y3
ST 2Y1 + 18Y2 + 24Y3 >= 160
4Y1 + 18Y2 + 12Y3 >= 200
Y1,Y2, Y3>=0
Cj 160 200 0 0 0
CB Basis Y1 Y2 Y3 S1 S2 Soln
216 Y2 0 1 2 -1/9 1/18 20/3
40 Y1 1 0 -6 ½ -1/2 20
Zj 40 216 192 -4 -8 Z= 2,240
Cj-Zj 0 0 48 4 8
The final optimal iteration (Optimal solution):
Primal:
1. Cj-Zj row values of slacks Si
2. Cj-Zj row values of decision variables Xi
3. Zx value (Objective function value)
Dual:
1. Values of the decision variables Yi
2. Values of the slack variables Si
3. Zy value
Sensitivity Analysis
After obtaining the optimal solution of LPP, we may ask
how the solution would be affected if the parameters Cj,
bi, or aij of the problem change.
This question is answered by sensitivity analysis (post-
optimality analysis).
It would be advantageous if we could obtain this
information from the simplex tableau containing the
final solution without carrying out the whole exercise
again.
Change in Cj: Coefficient of the objective function
Max Z= 160X1 + 200X2
ST 2X1 + 4X2 <= 40
18X1 + 18X2 <= 216
24X1 + 12X2 <= 240
X1,X2>=0
Cj 160 + ∆ 200 0 0 0
CB Basis X1 X2 S1 S2 S3 Soln
200 X2 0 1 ½ -1/18 0 8
160 + ∆ X1 1 0 -1/2 1/9 0 4
0 S3 0 0 0 -2 1 48
Zj 160 + ∆ 200 20 -∆/2 20/3+∆/9 0 Z= 2,240
Cj-Zj 0 0 -20 -20/3 0
New
Cj-Zj
0 0 -20 +∆/2 -20/3-∆/9 0
The final optimal iteration (Optimal solution):
To remain Optimal, all Cj-Zj<=0
Therefore,
-20 + ∆/2<= 0 and -20/3 - ∆/9 <= 0
∆/2 <= 20
∆ <= 40 (1)
-∆/9 <= 20/3
-∆ <= 180/3
-∆ <= 60
∆ >= -60 (2)Then:
C1 = 160 + ∆
C1 – 160 = ∆ <= 40
C1 -160 <= 40
C1 <= 160 + 40
C1 <= 200 (1)
C1 = 160 + ∆
C1 – 160 = ∆ >= -60
C1 -160 >= -60
C1 >= 160 - 60
C1 >= 100 (2)
100<= C1 <= 200
Cj 160 200+ ∆ 0 0 0
CB Basis X1 X2 S1 S2 S3 Soln
200+ ∆ X2 0 1 ½ -1/18 0 8
160 X1 1 0 -1/2 1/9 0 4
0 S3 0 0 0 -2 1 48
Zj 160 200+ ∆ 20 + ∆/2 20/3-∆/18 0 Z= 2,240
Cj-Zj 0 0 -20 -20/3 0
New
Cj-Zj
0 0 -20 -∆/2 -20/3+∆/18 0
Also for C2 = 200 + ∆
160<= C2 <= 320
Change in bi
Cj 160 200 0 0 0
CB Basis X1 X2 S1 S2 S3 Soln
160 X2 0 1 ½ -1/8 0 8
200 X1 1 0 -1/2 1/9 0 4
0 S3 0 0 6 -2 1 48
Zj 160 200 20 20/3 0 Z= 2,240
Cj-Zj 0 0 -20 -20/3 0
B1 = 40 + ∆ b2 = 216 b3 = 240
B1
B2
Bm
+ ∆ *
a1j
a2j
amj
>=
0
0
0
Current
Solution
Coeff. in the
corresponding
slack variables

More Related Content

What's hot

Partial differential equations
Partial differential equationsPartial differential equations
Partial differential equations
Dr.Jagadish Tawade
 
Differential equations and its applications
Differential equations and its applicationsDifferential equations and its applications
Differential equations and its applications
Dr.Jagadish Tawade
 
Applied numerical methods lec14
Applied numerical methods lec14Applied numerical methods lec14
Applied numerical methods lec14
Yasser Ahmed
 
Digital electronics
Digital electronicsDigital electronics
Digital electronics
RaviGhael
 
Sect5 6
Sect5 6Sect5 6
Sect5 6
inKFUPM
 
Project work boost converter
Project work boost converter Project work boost converter
Project work boost converter
MohammadAgungDirmawa
 
Rules of integration
Rules of integrationRules of integration
Rules of integration
klawdet
 
Assignment no4
Assignment no4Assignment no4
Assignment no4
Ali Baig
 
Lesson 30: Duality In Linear Programming
Lesson 30: Duality In Linear ProgrammingLesson 30: Duality In Linear Programming
Lesson 30: Duality In Linear Programming
guest463822
 
Ch02
Ch02Ch02
Ch02
waiwai28
 
Practice Page Solutions
Practice Page SolutionsPractice Page Solutions
Practice Page SolutionsYapJesmin
 
Solution manual 1 3
Solution manual 1 3Solution manual 1 3
Solution manual 1 3
Rafi Flydarkzz
 
Applied numerical methods lec12
Applied numerical methods lec12Applied numerical methods lec12
Applied numerical methods lec12
Yasser Ahmed
 
Chapter 07 in som
Chapter 07 in som Chapter 07 in som
Chapter 07 in som
University Malaysia Pahang
 
Ch 03 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
Ch 03 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片Ch 03 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
Ch 03 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
Chyi-Tsong Chen
 
4 analysis of laminates
4 analysis of laminates4 analysis of laminates
4 analysis of laminatesMadi Na
 

What's hot (20)

Partial differential equations
Partial differential equationsPartial differential equations
Partial differential equations
 
Differential equations and its applications
Differential equations and its applicationsDifferential equations and its applications
Differential equations and its applications
 
Applied numerical methods lec14
Applied numerical methods lec14Applied numerical methods lec14
Applied numerical methods lec14
 
Bending problems
Bending problemsBending problems
Bending problems
 
Digital electronics
Digital electronicsDigital electronics
Digital electronics
 
Sect5 6
Sect5 6Sect5 6
Sect5 6
 
Project work boost converter
Project work boost converter Project work boost converter
Project work boost converter
 
Numerical Methods Solving Linear Equations
Numerical Methods Solving Linear EquationsNumerical Methods Solving Linear Equations
Numerical Methods Solving Linear Equations
 
Rules of integration
Rules of integrationRules of integration
Rules of integration
 
H.w. #7
H.w. #7H.w. #7
H.w. #7
 
Assignment no4
Assignment no4Assignment no4
Assignment no4
 
Lesson 30: Duality In Linear Programming
Lesson 30: Duality In Linear ProgrammingLesson 30: Duality In Linear Programming
Lesson 30: Duality In Linear Programming
 
Ch02
Ch02Ch02
Ch02
 
Practice Page Solutions
Practice Page SolutionsPractice Page Solutions
Practice Page Solutions
 
Sol83
Sol83Sol83
Sol83
 
Solution manual 1 3
Solution manual 1 3Solution manual 1 3
Solution manual 1 3
 
Applied numerical methods lec12
Applied numerical methods lec12Applied numerical methods lec12
Applied numerical methods lec12
 
Chapter 07 in som
Chapter 07 in som Chapter 07 in som
Chapter 07 in som
 
Ch 03 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
Ch 03 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片Ch 03 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
Ch 03 MATLAB Applications in Chemical Engineering_陳奇中教授教學投影片
 
4 analysis of laminates
4 analysis of laminates4 analysis of laminates
4 analysis of laminates
 

Similar to Chapter four

Duel simplex method_operations research .pptx
Duel simplex method_operations research .pptxDuel simplex method_operations research .pptx
Duel simplex method_operations research .pptx
Raja Manyam
 
Big m method
Big   m methodBig   m method
Big m method
Mamatha Upadhya
 
2. lp iterative methods
2. lp   iterative methods2. lp   iterative methods
2. lp iterative methods
Hakeem-Ur- Rehman
 
MFCS2-Module1.pptx
MFCS2-Module1.pptxMFCS2-Module1.pptx
MFCS2-Module1.pptx
RushikeshKadam71
 
Linear programming
Linear programmingLinear programming
Linear programming
sabin kafle
 
Unit.3. duality and sensetivity analisis
Unit.3. duality and sensetivity analisisUnit.3. duality and sensetivity analisis
Unit.3. duality and sensetivity analisis
DagnaygebawGoshme
 
Introduction to Operations Research/ Management Science
Introduction to Operations Research/ Management Science Introduction to Operations Research/ Management Science
Introduction to Operations Research/ Management Science
um1222
 
Two Phase Method- Linear Programming
Two Phase Method- Linear ProgrammingTwo Phase Method- Linear Programming
Two Phase Method- Linear Programming
Manas Lad
 
7.3_Nonlinear Programming-LagrangeExamples.pptx
7.3_Nonlinear Programming-LagrangeExamples.pptx7.3_Nonlinear Programming-LagrangeExamples.pptx
7.3_Nonlinear Programming-LagrangeExamples.pptx
ethannguyen1618
 
Economicinterpretation 130723042249-phpapp01
Economicinterpretation 130723042249-phpapp01Economicinterpretation 130723042249-phpapp01
Economicinterpretation 130723042249-phpapp01
kongara
 
Big-M Method Presentation
Big-M Method PresentationBig-M Method Presentation
Big-M Method Presentation
Nitesh Singh Patel
 
Bigm 140316004148-phpapp02
Bigm 140316004148-phpapp02Bigm 140316004148-phpapp02
Bigm 140316004148-phpapp02
kongara
 
OR Linear Programming
OR Linear ProgrammingOR Linear Programming
OR Linear Programmingchaitu87
 
aaoczc2252
aaoczc2252aaoczc2252
aaoczc2252
Perumal_Gopi42
 
Economic interpretation of duality, shadow price and the complementary slackn...
Economic interpretation of duality, shadow price and the complementary slackn...Economic interpretation of duality, shadow price and the complementary slackn...
Economic interpretation of duality, shadow price and the complementary slackn...Preety Rateria
 
Bounded variables new
Bounded variables newBounded variables new
Bounded variables newSamo Alwatan
 

Similar to Chapter four (20)

Duel simplex method_operations research .pptx
Duel simplex method_operations research .pptxDuel simplex method_operations research .pptx
Duel simplex method_operations research .pptx
 
Big M method
Big M methodBig M method
Big M method
 
Big m method
Big   m methodBig   m method
Big m method
 
2. lp iterative methods
2. lp   iterative methods2. lp   iterative methods
2. lp iterative methods
 
Duality
DualityDuality
Duality
 
MFCS2-Module1.pptx
MFCS2-Module1.pptxMFCS2-Module1.pptx
MFCS2-Module1.pptx
 
Linear programming
Linear programmingLinear programming
Linear programming
 
Unit.3. duality and sensetivity analisis
Unit.3. duality and sensetivity analisisUnit.3. duality and sensetivity analisis
Unit.3. duality and sensetivity analisis
 
Introduction to Operations Research/ Management Science
Introduction to Operations Research/ Management Science Introduction to Operations Research/ Management Science
Introduction to Operations Research/ Management Science
 
Two Phase Method- Linear Programming
Two Phase Method- Linear ProgrammingTwo Phase Method- Linear Programming
Two Phase Method- Linear Programming
 
Simplex algorithm
Simplex algorithmSimplex algorithm
Simplex algorithm
 
7.3_Nonlinear Programming-LagrangeExamples.pptx
7.3_Nonlinear Programming-LagrangeExamples.pptx7.3_Nonlinear Programming-LagrangeExamples.pptx
7.3_Nonlinear Programming-LagrangeExamples.pptx
 
Economicinterpretation 130723042249-phpapp01
Economicinterpretation 130723042249-phpapp01Economicinterpretation 130723042249-phpapp01
Economicinterpretation 130723042249-phpapp01
 
Big-M Method Presentation
Big-M Method PresentationBig-M Method Presentation
Big-M Method Presentation
 
Bigm 140316004148-phpapp02
Bigm 140316004148-phpapp02Bigm 140316004148-phpapp02
Bigm 140316004148-phpapp02
 
OR Linear Programming
OR Linear ProgrammingOR Linear Programming
OR Linear Programming
 
aaoczc2252
aaoczc2252aaoczc2252
aaoczc2252
 
Economic interpretation of duality, shadow price and the complementary slackn...
Economic interpretation of duality, shadow price and the complementary slackn...Economic interpretation of duality, shadow price and the complementary slackn...
Economic interpretation of duality, shadow price and the complementary slackn...
 
Bounded variables new
Bounded variables newBounded variables new
Bounded variables new
 
Simplex two phase
Simplex two phaseSimplex two phase
Simplex two phase
 

Recently uploaded

Poonawalla Fincorp and IndusInd Bank Introduce New Co-Branded Credit Card
Poonawalla Fincorp and IndusInd Bank Introduce New Co-Branded Credit CardPoonawalla Fincorp and IndusInd Bank Introduce New Co-Branded Credit Card
Poonawalla Fincorp and IndusInd Bank Introduce New Co-Branded Credit Card
nickysharmasucks
 
how to swap pi coins to foreign currency withdrawable.
how to swap pi coins to foreign currency withdrawable.how to swap pi coins to foreign currency withdrawable.
how to swap pi coins to foreign currency withdrawable.
DOT TECH
 
This assessment plan proposal is to outline a structured approach to evaluati...
This assessment plan proposal is to outline a structured approach to evaluati...This assessment plan proposal is to outline a structured approach to evaluati...
This assessment plan proposal is to outline a structured approach to evaluati...
lamluanvan.net Viết thuê luận văn
 
Webinar Exploring DORA for Fintechs - Simont Braun
Webinar Exploring DORA for Fintechs - Simont BraunWebinar Exploring DORA for Fintechs - Simont Braun
Webinar Exploring DORA for Fintechs - Simont Braun
FinTech Belgium
 
USDA Loans in California: A Comprehensive Overview.pptx
USDA Loans in California: A Comprehensive Overview.pptxUSDA Loans in California: A Comprehensive Overview.pptx
USDA Loans in California: A Comprehensive Overview.pptx
marketing367770
 
The WhatsPump Pseudonym Problem and the Hilarious Downfall of Artificial Enga...
The WhatsPump Pseudonym Problem and the Hilarious Downfall of Artificial Enga...The WhatsPump Pseudonym Problem and the Hilarious Downfall of Artificial Enga...
The WhatsPump Pseudonym Problem and the Hilarious Downfall of Artificial Enga...
muslimdavidovich670
 
Introduction to Indian Financial System ()
Introduction to Indian Financial System ()Introduction to Indian Financial System ()
Introduction to Indian Financial System ()
Avanish Goel
 
一比一原版BCU毕业证伯明翰城市大学毕业证成绩单如何办理
一比一原版BCU毕业证伯明翰城市大学毕业证成绩单如何办理一比一原版BCU毕业证伯明翰城市大学毕业证成绩单如何办理
一比一原版BCU毕业证伯明翰城市大学毕业证成绩单如何办理
ydubwyt
 
what is the future of Pi Network currency.
what is the future of Pi Network currency.what is the future of Pi Network currency.
what is the future of Pi Network currency.
DOT TECH
 
What website can I sell pi coins securely.
What website can I sell pi coins securely.What website can I sell pi coins securely.
What website can I sell pi coins securely.
DOT TECH
 
Introduction to Value Added Tax System.ppt
Introduction to Value Added Tax System.pptIntroduction to Value Added Tax System.ppt
Introduction to Value Added Tax System.ppt
VishnuVenugopal84
 
US Economic Outlook - Being Decided - M Capital Group August 2021.pdf
US Economic Outlook - Being Decided - M Capital Group August 2021.pdfUS Economic Outlook - Being Decided - M Capital Group August 2021.pdf
US Economic Outlook - Being Decided - M Capital Group August 2021.pdf
pchutichetpong
 
234Presentation on Indian Debt Market.ppt
234Presentation on Indian Debt Market.ppt234Presentation on Indian Debt Market.ppt
234Presentation on Indian Debt Market.ppt
PravinPatil144525
 
Chương 6. Ancol - phenol - ether (1).pdf
Chương 6. Ancol - phenol - ether (1).pdfChương 6. Ancol - phenol - ether (1).pdf
Chương 6. Ancol - phenol - ether (1).pdf
va2132004
 
Scope Of Macroeconomics introduction and basic theories
Scope Of Macroeconomics introduction and basic theoriesScope Of Macroeconomics introduction and basic theories
Scope Of Macroeconomics introduction and basic theories
nomankalyar153
 
when will pi network coin be available on crypto exchange.
when will pi network coin be available on crypto exchange.when will pi network coin be available on crypto exchange.
when will pi network coin be available on crypto exchange.
DOT TECH
 
The Evolution of Non-Banking Financial Companies (NBFCs) in India: Challenges...
The Evolution of Non-Banking Financial Companies (NBFCs) in India: Challenges...The Evolution of Non-Banking Financial Companies (NBFCs) in India: Challenges...
The Evolution of Non-Banking Financial Companies (NBFCs) in India: Challenges...
beulahfernandes8
 
what is the best method to sell pi coins in 2024
what is the best method to sell pi coins in 2024what is the best method to sell pi coins in 2024
what is the best method to sell pi coins in 2024
DOT TECH
 
Summary of financial results for 1Q2024
Summary of financial  results for 1Q2024Summary of financial  results for 1Q2024
Summary of financial results for 1Q2024
InterCars
 
What price will pi network be listed on exchanges
What price will pi network be listed on exchangesWhat price will pi network be listed on exchanges
What price will pi network be listed on exchanges
DOT TECH
 

Recently uploaded (20)

Poonawalla Fincorp and IndusInd Bank Introduce New Co-Branded Credit Card
Poonawalla Fincorp and IndusInd Bank Introduce New Co-Branded Credit CardPoonawalla Fincorp and IndusInd Bank Introduce New Co-Branded Credit Card
Poonawalla Fincorp and IndusInd Bank Introduce New Co-Branded Credit Card
 
how to swap pi coins to foreign currency withdrawable.
how to swap pi coins to foreign currency withdrawable.how to swap pi coins to foreign currency withdrawable.
how to swap pi coins to foreign currency withdrawable.
 
This assessment plan proposal is to outline a structured approach to evaluati...
This assessment plan proposal is to outline a structured approach to evaluati...This assessment plan proposal is to outline a structured approach to evaluati...
This assessment plan proposal is to outline a structured approach to evaluati...
 
Webinar Exploring DORA for Fintechs - Simont Braun
Webinar Exploring DORA for Fintechs - Simont BraunWebinar Exploring DORA for Fintechs - Simont Braun
Webinar Exploring DORA for Fintechs - Simont Braun
 
USDA Loans in California: A Comprehensive Overview.pptx
USDA Loans in California: A Comprehensive Overview.pptxUSDA Loans in California: A Comprehensive Overview.pptx
USDA Loans in California: A Comprehensive Overview.pptx
 
The WhatsPump Pseudonym Problem and the Hilarious Downfall of Artificial Enga...
The WhatsPump Pseudonym Problem and the Hilarious Downfall of Artificial Enga...The WhatsPump Pseudonym Problem and the Hilarious Downfall of Artificial Enga...
The WhatsPump Pseudonym Problem and the Hilarious Downfall of Artificial Enga...
 
Introduction to Indian Financial System ()
Introduction to Indian Financial System ()Introduction to Indian Financial System ()
Introduction to Indian Financial System ()
 
一比一原版BCU毕业证伯明翰城市大学毕业证成绩单如何办理
一比一原版BCU毕业证伯明翰城市大学毕业证成绩单如何办理一比一原版BCU毕业证伯明翰城市大学毕业证成绩单如何办理
一比一原版BCU毕业证伯明翰城市大学毕业证成绩单如何办理
 
what is the future of Pi Network currency.
what is the future of Pi Network currency.what is the future of Pi Network currency.
what is the future of Pi Network currency.
 
What website can I sell pi coins securely.
What website can I sell pi coins securely.What website can I sell pi coins securely.
What website can I sell pi coins securely.
 
Introduction to Value Added Tax System.ppt
Introduction to Value Added Tax System.pptIntroduction to Value Added Tax System.ppt
Introduction to Value Added Tax System.ppt
 
US Economic Outlook - Being Decided - M Capital Group August 2021.pdf
US Economic Outlook - Being Decided - M Capital Group August 2021.pdfUS Economic Outlook - Being Decided - M Capital Group August 2021.pdf
US Economic Outlook - Being Decided - M Capital Group August 2021.pdf
 
234Presentation on Indian Debt Market.ppt
234Presentation on Indian Debt Market.ppt234Presentation on Indian Debt Market.ppt
234Presentation on Indian Debt Market.ppt
 
Chương 6. Ancol - phenol - ether (1).pdf
Chương 6. Ancol - phenol - ether (1).pdfChương 6. Ancol - phenol - ether (1).pdf
Chương 6. Ancol - phenol - ether (1).pdf
 
Scope Of Macroeconomics introduction and basic theories
Scope Of Macroeconomics introduction and basic theoriesScope Of Macroeconomics introduction and basic theories
Scope Of Macroeconomics introduction and basic theories
 
when will pi network coin be available on crypto exchange.
when will pi network coin be available on crypto exchange.when will pi network coin be available on crypto exchange.
when will pi network coin be available on crypto exchange.
 
The Evolution of Non-Banking Financial Companies (NBFCs) in India: Challenges...
The Evolution of Non-Banking Financial Companies (NBFCs) in India: Challenges...The Evolution of Non-Banking Financial Companies (NBFCs) in India: Challenges...
The Evolution of Non-Banking Financial Companies (NBFCs) in India: Challenges...
 
what is the best method to sell pi coins in 2024
what is the best method to sell pi coins in 2024what is the best method to sell pi coins in 2024
what is the best method to sell pi coins in 2024
 
Summary of financial results for 1Q2024
Summary of financial  results for 1Q2024Summary of financial  results for 1Q2024
Summary of financial results for 1Q2024
 
What price will pi network be listed on exchanges
What price will pi network be listed on exchangesWhat price will pi network be listed on exchanges
What price will pi network be listed on exchanges
 

Chapter four

  • 1. Linear Programming III: Duality and Sensitivity Analysis in Linear Programming 5/4/2018 4:12 PM 1
  • 2. Dual means two. This implies that LPP exists in “pairs”, so that corresponding to every LPP there is another LPP. Meaning that we can face the LP models in other ways. Primal model: the original model is known as primal LP model. Dual model: the one which can be obtained from the primal is dual. In simplex method, solving one of the LPP (primal or dual) gives us the solution of both models.
  • 3. Rules of converting from Primal to Dual or Vice versa: Objective function: Max Min Coeff. Of objective function RHS of Constraints Coeff of LHS of the constraints Sign of the constraint >= <= Objective function: Min Max Right-hand-side of the constraints (bj) Coeff. Of objective function LHS of the constraints but in transpose Sign of the constraint <= >= Max Z= C1X1 + C2X2 + ..+ CnXn St: a11X1 + a12X2+ ..+ a1nXn <= b1 a21X1 + a22X2 + ..+ a2nXn <= b2 an1X1 + an2X2 +..+annXn <=bm X1, X2, Xn>=O Min Z= b1Y1 + b2Y2 + ..+ bnYn St: a11Y1 + a21Y2+ ..+ am1Ym <= C1 a12Y1 + a22Y2 + ..+ am2Ym <= C2 a1nY1 + a2nY2+…+amnYn <=Cn Y1, Y2, Yn>=O
  • 4. Advantages of dual  To check the primal problem manually  When there are more number of constraints than variables in the primal, go to dual to reduce the iterations
  • 5. Example Obtain the dual of the following problem: Max. Z = 30X1 + 40X2 ST 60X1 + 120X2 <= 1200 Raw Material 8X1 + 5X2 <= 600 Machine Hour 3X1 + 4X2 <= 500 Man Hour X1, X2>=0 If we let Y1, Y2, Y3 to be cost of unit resources raw material, machine hour, and man hour, the problem can be solved as follows:
  • 6. Min Z= 1200Y1 + 600Y2 + 500Y3 ST 60Y1 + 8Y2 + 3Y3 >=30 120Y1 + 5Y2 4Y3 >= 40 Y1,Y2,Y3>=0 If you have n decision variables & m constraints in primal, You will have m decision variables & n constraints in dual. Example: Obtain the dual of the LP model: Max Z= 40X1 + 50X2 ST X1 + 2X2 <= 60 4X1 + 3X2 <= 100 X1,X2>=0 Min Z= 60Y1 + 100Y2 ST Y1 + 4Y2 >= 40 2Y1 + 3Y2 >= 50 Y1,Y2>=0
  • 7. Comparing the optimal solutions of primal & dual Max Z= 160X1 + 200X2 ST 2X1 + 4X2 <= 40 18X1 + 18X2 <= 216 24X1 + 12X2 <= 240 X1,X2>=0 Cj 160 200 0 0 0 CB Basis X1 X2 S1 S2 S3 Soln 160 X2 0 1 ½ -1/8 0 8 200 X1 1 0 -1/2 1/9 0 4 0 S3 0 0 0 -2 1 48 Zj 160 200 20 20/3 0 Z= 2,240 Cj-Zj 0 0 -20 -20/3 0 The final optimal iteration (Optimal solution):
  • 8. Comparing the optimal solutions of primal & dual Dual of the above Primal: Min Z= 40Y1 + 216Y2 + 240Y3 ST 2Y1 + 18Y2 + 24Y3 >= 160 4Y1 + 18Y2 + 12Y3 >= 200 Y1,Y2, Y3>=0 Cj 160 200 0 0 0 CB Basis Y1 Y2 Y3 S1 S2 Soln 216 Y2 0 1 2 -1/9 1/18 20/3 40 Y1 1 0 -6 ½ -1/2 20 Zj 40 216 192 -4 -8 Z= 2,240 Cj-Zj 0 0 48 4 8 The final optimal iteration (Optimal solution):
  • 9. Primal: 1. Cj-Zj row values of slacks Si 2. Cj-Zj row values of decision variables Xi 3. Zx value (Objective function value) Dual: 1. Values of the decision variables Yi 2. Values of the slack variables Si 3. Zy value
  • 10. Sensitivity Analysis After obtaining the optimal solution of LPP, we may ask how the solution would be affected if the parameters Cj, bi, or aij of the problem change. This question is answered by sensitivity analysis (post- optimality analysis). It would be advantageous if we could obtain this information from the simplex tableau containing the final solution without carrying out the whole exercise again.
  • 11. Change in Cj: Coefficient of the objective function Max Z= 160X1 + 200X2 ST 2X1 + 4X2 <= 40 18X1 + 18X2 <= 216 24X1 + 12X2 <= 240 X1,X2>=0 Cj 160 + ∆ 200 0 0 0 CB Basis X1 X2 S1 S2 S3 Soln 200 X2 0 1 ½ -1/18 0 8 160 + ∆ X1 1 0 -1/2 1/9 0 4 0 S3 0 0 0 -2 1 48 Zj 160 + ∆ 200 20 -∆/2 20/3+∆/9 0 Z= 2,240 Cj-Zj 0 0 -20 -20/3 0 New Cj-Zj 0 0 -20 +∆/2 -20/3-∆/9 0 The final optimal iteration (Optimal solution):
  • 12. To remain Optimal, all Cj-Zj<=0 Therefore, -20 + ∆/2<= 0 and -20/3 - ∆/9 <= 0 ∆/2 <= 20 ∆ <= 40 (1) -∆/9 <= 20/3 -∆ <= 180/3 -∆ <= 60 ∆ >= -60 (2)Then: C1 = 160 + ∆ C1 – 160 = ∆ <= 40 C1 -160 <= 40 C1 <= 160 + 40 C1 <= 200 (1) C1 = 160 + ∆ C1 – 160 = ∆ >= -60 C1 -160 >= -60 C1 >= 160 - 60 C1 >= 100 (2) 100<= C1 <= 200
  • 13. Cj 160 200+ ∆ 0 0 0 CB Basis X1 X2 S1 S2 S3 Soln 200+ ∆ X2 0 1 ½ -1/18 0 8 160 X1 1 0 -1/2 1/9 0 4 0 S3 0 0 0 -2 1 48 Zj 160 200+ ∆ 20 + ∆/2 20/3-∆/18 0 Z= 2,240 Cj-Zj 0 0 -20 -20/3 0 New Cj-Zj 0 0 -20 -∆/2 -20/3+∆/18 0 Also for C2 = 200 + ∆ 160<= C2 <= 320
  • 14. Change in bi Cj 160 200 0 0 0 CB Basis X1 X2 S1 S2 S3 Soln 160 X2 0 1 ½ -1/8 0 8 200 X1 1 0 -1/2 1/9 0 4 0 S3 0 0 6 -2 1 48 Zj 160 200 20 20/3 0 Z= 2,240 Cj-Zj 0 0 -20 -20/3 0 B1 = 40 + ∆ b2 = 216 b3 = 240 B1 B2 Bm + ∆ * a1j a2j amj >= 0 0 0 Current Solution Coeff. in the corresponding slack variables