SlideShare a Scribd company logo
Dual Formulation Example
From 30 model questions
Write the dual of the following primal problem:
Maximise: z = -5x1 + 2x2
Subject to the constraints:
x1 - x2 ≥ 2
2x1 + 3x2 ≤ 5
x1, x2 ≥ 0
1. If primal is a maximisation problem, its dual will be a minimisation problem, and vice versa.
2. No. of dual variables = no. of primal constraints.
3. No. of dual constraints = no. of primal variables.
4. The transpose of the coefficient matrix of the primal is the coefficient matrix of the dual.
5. The direction of constraints of the dual is the reverse of the direction of constraints in the
primal.
6. If the kth primal constraint is a strict equality, then the kth dual variable will be unrestricted in
sign.
7. If the ith primal variable is unrestricted in sign, then the ith dual constraint will be a strict
equality.
8. If the primal is a maximisation problem, then before formulating the dual all the constraints
should be converted into ‘≤ type’. If the primal is a minimisation problem, then before
formulating the dual all the constraints should be converted into ‘≥ type’.
9. The objective function coefficients of the primal become the RHS constants of the
constraints of the dual and the RHS constants of the primal constraints become the objective
function coefficients of the variables in the dual.
10. If a variable is unrestricted in sign, it can be written as the difference between two non-
negative variables.
Primal:
Max z = -5x1 + 2x2
s/t
x1 - x2 ≥ 2
2x1 + 3x2 ≤ 5
x1, x2 ≥ 0
∵ 𝑝𝑟𝑖𝑚𝑎𝑙 𝑖𝑠 𝑎 𝑚𝑎𝑥𝑖𝑚𝑖𝑠𝑎𝑡𝑖𝑜𝑛 𝑝𝑟𝑜𝑏𝑙𝑒𝑚
∴ 𝑤𝑒 ℎ𝑎𝑣𝑒 𝑡𝑜 𝑒𝑛𝑠𝑢𝑟𝑒 𝑡ℎ𝑎𝑡 𝑎𝑙𝑙 𝑐𝑜𝑛𝑠𝑡𝑟𝑎𝑖𝑛𝑡𝑠 𝑎𝑟𝑒 𝑜𝑓 "≤" 𝑡𝑦𝑝𝑒
∴ 𝑡ℎ𝑒 𝑝𝑟𝑖𝑚𝑎𝑙 𝑤𝑖𝑙𝑙 𝑏𝑒 𝑟𝑒𝑤𝑟𝑖𝑡𝑡𝑒𝑛 𝑎𝑠:
𝑀𝑎𝑥 𝑧 = −5𝑥1 + 2𝑥2
𝑠/𝑡
−𝑥1 + 𝑥2 ≤ −2
2𝑥1 + 3𝑥2 ≤ 5
𝑥1, 𝑥2 ≥ 0
𝑀𝑎𝑥 𝑧 = −5𝑥1 + 2𝑥2
𝑠/𝑡
−𝑥1 + 𝑥2 ≤ −2
2𝑥1 + 3𝑥2 ≤ 5
𝑥1, 𝑥2 ≥ 0
Primal objective function: maximise
Dual objective function: minimise
Number of dual variables = number of primal constraints = 2 (𝑦1, 𝑦2)
Number of dual constraints = number of primal variables = 2
Coefficient matrix of dual constraints = transpose of the coefficient matrix of primal
constraints =
−1 1
2 3
𝑡
=
−1 2
1 3
∵ 𝑡ℎ𝑒 𝑝𝑟𝑖𝑚𝑎𝑙 𝑐𝑜𝑛𝑠𝑡𝑟𝑎𝑖𝑛𝑡𝑠 𝑎𝑟𝑒 𝑜𝑓 "≤" 𝑡𝑦𝑝𝑒
∴ 𝑡ℎ𝑒 𝑑𝑢𝑎𝑙 𝑐𝑜𝑛𝑠𝑡𝑟𝑎𝑖𝑛𝑡𝑠 𝑤𝑖𝑙𝑙 𝑏𝑒 𝑜𝑓 "≥" 𝑡𝑦𝑝𝑒
RHS constants of dual constraints = Objective function coefficients of primal variables
Objective function coefficients of dual variables = RHS constants of primal constraints
∴ 𝑡ℎ𝑒 𝑑𝑢𝑎𝑙 𝑐𝑎𝑛 𝑏𝑒 𝑤𝑟𝑖𝑡𝑡𝑒𝑛 𝑎𝑠:
𝑀𝑖𝑛 𝑧 = −2𝑦1 + 5𝑦2
𝑠/𝑡
−𝑦1 + 2𝑦2 ≥ −5
𝑦1 + 3𝑦2 ≥ 2
𝑦1, 𝑦2 ≥ 0

More Related Content

What's hot

Operation Research (Simplex Method)
Operation Research (Simplex Method)Operation Research (Simplex Method)
Operation Research (Simplex Method)
Shivani Gautam
 
Recurrence relations
Recurrence relationsRecurrence relations
Recurrence relations
IIUM
 
Trig substitution
Trig substitutionTrig substitution
Trig substitutiondynx24
 
Simplex Method
Simplex MethodSimplex Method
Simplex MethodSachin MK
 
Gaussian Elimination Method
Gaussian Elimination MethodGaussian Elimination Method
Gaussian Elimination Method
Andi Firdaus
 
LP special cases and Duality.pptx
LP special cases and Duality.pptxLP special cases and Duality.pptx
LP special cases and Duality.pptx
Snehal Athawale
 
primal and dual problem
primal and dual problemprimal and dual problem
primal and dual problem
Yash Lad
 
Linear programming graphical method (feasibility)
Linear programming   graphical method (feasibility)Linear programming   graphical method (feasibility)
Linear programming graphical method (feasibility)
Rajesh Timane, PhD
 
LP linear programming (summary) (5s)
LP linear programming (summary) (5s)LP linear programming (summary) (5s)
LP linear programming (summary) (5s)
Dionísio Carmo-Neto
 
Duality in Linear Programming
Duality in Linear ProgrammingDuality in Linear Programming
Duality in Linear Programming
jyothimonc
 
Linear Programming (graphical method)
Linear Programming (graphical method)Linear Programming (graphical method)
Linear Programming (graphical method)
Kamel Attar
 
Operations Research - The Two Phase Method
Operations Research - The Two Phase MethodOperations Research - The Two Phase Method
Operations Research - The Two Phase Method
Hisham Al Kurdi, EAVA, DMC-D-4K, HCCA-P, HCAA-D
 
Unit.2. linear programming
Unit.2. linear programmingUnit.2. linear programming
Unit.2. linear programming
DagnaygebawGoshme
 
Big m method
Big m methodBig m method
Big m method
Luckshay Batra
 
Lesson 5: Matrix Algebra (slides)
Lesson 5: Matrix Algebra (slides)Lesson 5: Matrix Algebra (slides)
Lesson 5: Matrix Algebra (slides)Matthew Leingang
 
Nonlinear programming 2013
Nonlinear programming 2013Nonlinear programming 2013
Nonlinear programming 2013sharifz
 
Chapter 4: Vector Spaces - Part 1/Slides By Pearson
Chapter 4: Vector Spaces - Part 1/Slides By PearsonChapter 4: Vector Spaces - Part 1/Slides By Pearson
Chapter 4: Vector Spaces - Part 1/Slides By Pearson
Chaimae Baroudi
 
Gamma & Beta functions
Gamma & Beta functionsGamma & Beta functions
Gamma & Beta functions
Selvaraj John
 

What's hot (20)

Operation Research (Simplex Method)
Operation Research (Simplex Method)Operation Research (Simplex Method)
Operation Research (Simplex Method)
 
Recurrence relations
Recurrence relationsRecurrence relations
Recurrence relations
 
Lp simplex 3_
Lp simplex 3_Lp simplex 3_
Lp simplex 3_
 
Trig substitution
Trig substitutionTrig substitution
Trig substitution
 
Simplex Method
Simplex MethodSimplex Method
Simplex Method
 
Gaussian Elimination Method
Gaussian Elimination MethodGaussian Elimination Method
Gaussian Elimination Method
 
LP special cases and Duality.pptx
LP special cases and Duality.pptxLP special cases and Duality.pptx
LP special cases and Duality.pptx
 
Dual simplexmethod
Dual simplexmethodDual simplexmethod
Dual simplexmethod
 
primal and dual problem
primal and dual problemprimal and dual problem
primal and dual problem
 
Linear programming graphical method (feasibility)
Linear programming   graphical method (feasibility)Linear programming   graphical method (feasibility)
Linear programming graphical method (feasibility)
 
LP linear programming (summary) (5s)
LP linear programming (summary) (5s)LP linear programming (summary) (5s)
LP linear programming (summary) (5s)
 
Duality in Linear Programming
Duality in Linear ProgrammingDuality in Linear Programming
Duality in Linear Programming
 
Linear Programming (graphical method)
Linear Programming (graphical method)Linear Programming (graphical method)
Linear Programming (graphical method)
 
Operations Research - The Two Phase Method
Operations Research - The Two Phase MethodOperations Research - The Two Phase Method
Operations Research - The Two Phase Method
 
Unit.2. linear programming
Unit.2. linear programmingUnit.2. linear programming
Unit.2. linear programming
 
Big m method
Big m methodBig m method
Big m method
 
Lesson 5: Matrix Algebra (slides)
Lesson 5: Matrix Algebra (slides)Lesson 5: Matrix Algebra (slides)
Lesson 5: Matrix Algebra (slides)
 
Nonlinear programming 2013
Nonlinear programming 2013Nonlinear programming 2013
Nonlinear programming 2013
 
Chapter 4: Vector Spaces - Part 1/Slides By Pearson
Chapter 4: Vector Spaces - Part 1/Slides By PearsonChapter 4: Vector Spaces - Part 1/Slides By Pearson
Chapter 4: Vector Spaces - Part 1/Slides By Pearson
 
Gamma & Beta functions
Gamma & Beta functionsGamma & Beta functions
Gamma & Beta functions
 

Similar to Dual formulation example

Unit.3. duality and sensetivity analisis
Unit.3. duality and sensetivity analisisUnit.3. duality and sensetivity analisis
Unit.3. duality and sensetivity analisis
DagnaygebawGoshme
 
OR Linear Programming
OR Linear ProgrammingOR Linear Programming
OR Linear Programmingchaitu87
 
Simplex method material for operation .pptx
Simplex method material for operation .pptxSimplex method material for operation .pptx
Simplex method material for operation .pptx
bizuayehuadmasu1
 
Mathematical linear programming notes
Mathematical linear programming notesMathematical linear programming notes
Mathematical linear programming notes
Tarig Gibreel
 
Derivatives
DerivativesDerivatives
Derivatives
gregorblanco
 
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
 
1.7 solving absolute value inequalities
1.7 solving absolute value inequalities1.7 solving absolute value inequalities
1.7 solving absolute value inequalitiesfthrower
 
2_Simplex.pdf
2_Simplex.pdf2_Simplex.pdf
2_Simplex.pdf
ThanoonQasem
 
Graphical method
Graphical methodGraphical method
Graphical method
Vipul Zanzrukiya
 
Mb 106 quantitative techniques 8
Mb 106 quantitative techniques 8Mb 106 quantitative techniques 8
Mb 106 quantitative techniques 8
KrishnaRoy45
 
Rational Expressions
Rational ExpressionsRational Expressions
Rational Expressionsking_danickus
 
Inequalities
InequalitiesInequalities
Chapter 4 Duality & sensitivity analysis hand out last .pdf
Chapter 4 Duality & sensitivity analysis hand out last .pdfChapter 4 Duality & sensitivity analysis hand out last .pdf
Chapter 4 Duality & sensitivity analysis hand out last .pdf
Tsegay Berhe
 
1541 infinite limits
1541 infinite limits1541 infinite limits
1541 infinite limits
Dr Fereidoun Dejahang
 
Notes 12.1 identifying, adding & subtracting polynomials
Notes 12.1   identifying, adding & subtracting polynomialsNotes 12.1   identifying, adding & subtracting polynomials
Notes 12.1 identifying, adding & subtracting polynomialsLori Rapp
 
Advance algebra
Advance algebraAdvance algebra
Advance algebra
lyra matalubos
 

Similar to Dual formulation example (20)

Unit.3. duality and sensetivity analisis
Unit.3. duality and sensetivity analisisUnit.3. duality and sensetivity analisis
Unit.3. duality and sensetivity analisis
 
OR Linear Programming
OR Linear ProgrammingOR Linear Programming
OR Linear Programming
 
Review for final exam
Review for final examReview for final exam
Review for final exam
 
Simplex method material for operation .pptx
Simplex method material for operation .pptxSimplex method material for operation .pptx
Simplex method material for operation .pptx
 
Mathematical linear programming notes
Mathematical linear programming notesMathematical linear programming notes
Mathematical linear programming notes
 
Derivatives
DerivativesDerivatives
Derivatives
 
Linearprog, Reading Materials for Operational Research
Linearprog, Reading Materials for Operational Research Linearprog, Reading Materials for Operational Research
Linearprog, Reading Materials for Operational Research
 
1.7 solving absolute value inequalities
1.7 solving absolute value inequalities1.7 solving absolute value inequalities
1.7 solving absolute value inequalities
 
2_Simplex.pdf
2_Simplex.pdf2_Simplex.pdf
2_Simplex.pdf
 
Graphical method
Graphical methodGraphical method
Graphical method
 
Mb 106 quantitative techniques 8
Mb 106 quantitative techniques 8Mb 106 quantitative techniques 8
Mb 106 quantitative techniques 8
 
Rational Expressions
Rational ExpressionsRational Expressions
Rational Expressions
 
0
00
0
 
Inequalities
InequalitiesInequalities
Inequalities
 
11.2
11.211.2
11.2
 
Chapter 4 Duality & sensitivity analysis hand out last .pdf
Chapter 4 Duality & sensitivity analysis hand out last .pdfChapter 4 Duality & sensitivity analysis hand out last .pdf
Chapter 4 Duality & sensitivity analysis hand out last .pdf
 
Q2
Q2Q2
Q2
 
1541 infinite limits
1541 infinite limits1541 infinite limits
1541 infinite limits
 
Notes 12.1 identifying, adding & subtracting polynomials
Notes 12.1   identifying, adding & subtracting polynomialsNotes 12.1   identifying, adding & subtracting polynomials
Notes 12.1 identifying, adding & subtracting polynomials
 
Advance algebra
Advance algebraAdvance algebra
Advance algebra
 

More from Anurag Srivastava

Vam
VamVam
Simplex method maximisation
Simplex method maximisationSimplex method maximisation
Simplex method maximisation
Anurag Srivastava
 
Project networks
Project networksProject networks
Project networks
Anurag Srivastava
 
Or flowchart
Or flowchartOr flowchart
Or flowchart
Anurag Srivastava
 
Strategic management model
Strategic management modelStrategic management model
Strategic management model
Anurag Srivastava
 
Maximisation problem
Maximisation problemMaximisation problem
Maximisation problem
Anurag Srivastava
 
Lpp numerical
Lpp numericalLpp numerical
Lpp numerical
Anurag Srivastava
 
Lpp numerical solved
Lpp numerical solvedLpp numerical solved
Lpp numerical solved
Anurag Srivastava
 
Lpp formulation
Lpp formulationLpp formulation
Lpp formulation
Anurag Srivastava
 
Lp formulation
Lp formulationLp formulation
Lp formulation
Anurag Srivastava
 
Graphical method
Graphical methodGraphical method
Graphical method
Anurag Srivastava
 
Games
GamesGames
Game theory
Game theoryGame theory
Game theory
Anurag Srivastava
 
Decision tree solved
Decision tree solvedDecision tree solved
Decision tree solved
Anurag Srivastava
 
Decision theory numerical
Decision theory numericalDecision theory numerical
Decision theory numerical
Anurag Srivastava
 
Crashing
CrashingCrashing
Assignment model problems
Assignment model problemsAssignment model problems
Assignment model problems
Anurag Srivastava
 
Minimisation problem
Minimisation problemMinimisation problem
Minimisation problem
Anurag Srivastava
 
Operations research
Operations researchOperations research
Operations research
Anurag Srivastava
 
Unit iv-3-pm
Unit iv-3-pmUnit iv-3-pm
Unit iv-3-pm
Anurag Srivastava
 

More from Anurag Srivastava (20)

Vam
VamVam
Vam
 
Simplex method maximisation
Simplex method maximisationSimplex method maximisation
Simplex method maximisation
 
Project networks
Project networksProject networks
Project networks
 
Or flowchart
Or flowchartOr flowchart
Or flowchart
 
Strategic management model
Strategic management modelStrategic management model
Strategic management model
 
Maximisation problem
Maximisation problemMaximisation problem
Maximisation problem
 
Lpp numerical
Lpp numericalLpp numerical
Lpp numerical
 
Lpp numerical solved
Lpp numerical solvedLpp numerical solved
Lpp numerical solved
 
Lpp formulation
Lpp formulationLpp formulation
Lpp formulation
 
Lp formulation
Lp formulationLp formulation
Lp formulation
 
Graphical method
Graphical methodGraphical method
Graphical method
 
Games
GamesGames
Games
 
Game theory
Game theoryGame theory
Game theory
 
Decision tree solved
Decision tree solvedDecision tree solved
Decision tree solved
 
Decision theory numerical
Decision theory numericalDecision theory numerical
Decision theory numerical
 
Crashing
CrashingCrashing
Crashing
 
Assignment model problems
Assignment model problemsAssignment model problems
Assignment model problems
 
Minimisation problem
Minimisation problemMinimisation problem
Minimisation problem
 
Operations research
Operations researchOperations research
Operations research
 
Unit iv-3-pm
Unit iv-3-pmUnit iv-3-pm
Unit iv-3-pm
 

Recently uploaded

Senior Project and Engineering Leader Jim Smith.pdf
Senior Project and Engineering Leader Jim Smith.pdfSenior Project and Engineering Leader Jim Smith.pdf
Senior Project and Engineering Leader Jim Smith.pdf
Jim Smith
 
Leadership Ethics and Change, Purpose to Impact Plan
Leadership Ethics and Change, Purpose to Impact PlanLeadership Ethics and Change, Purpose to Impact Plan
Leadership Ethics and Change, Purpose to Impact Plan
Muhammad Adil Jamil
 
TCS AI for Business Study – Key Findings
TCS AI for Business Study – Key FindingsTCS AI for Business Study – Key Findings
TCS AI for Business Study – Key Findings
Tata Consultancy Services
 
SOCIO-ANTHROPOLOGY FACULTY OF NURSING.....
SOCIO-ANTHROPOLOGY FACULTY OF NURSING.....SOCIO-ANTHROPOLOGY FACULTY OF NURSING.....
SOCIO-ANTHROPOLOGY FACULTY OF NURSING.....
juniourjohnstone
 
Case Analysis - The Sky is the Limit | Principles of Management
Case Analysis - The Sky is the Limit | Principles of ManagementCase Analysis - The Sky is the Limit | Principles of Management
Case Analysis - The Sky is the Limit | Principles of Management
A. F. M. Rubayat-Ul Jannat
 
Founder-Game Director Workshop (Session 1)
Founder-Game Director  Workshop (Session 1)Founder-Game Director  Workshop (Session 1)
Founder-Game Director Workshop (Session 1)
Amir H. Fassihi
 
W.H.Bender Quote 65 - The Team Member and Guest Experience
W.H.Bender Quote 65 - The Team Member and Guest ExperienceW.H.Bender Quote 65 - The Team Member and Guest Experience
W.H.Bender Quote 65 - The Team Member and Guest Experience
William (Bill) H. Bender, FCSI
 
一比一原版杜克大学毕业证(Duke毕业证)成绩单留信认证
一比一原版杜克大学毕业证(Duke毕业证)成绩单留信认证一比一原版杜克大学毕业证(Duke毕业证)成绩单留信认证
一比一原版杜克大学毕业证(Duke毕业证)成绩单留信认证
gcljeuzdu
 
Oprah Winfrey: A Leader in Media, Philanthropy, and Empowerment | CIO Women M...
Oprah Winfrey: A Leader in Media, Philanthropy, and Empowerment | CIO Women M...Oprah Winfrey: A Leader in Media, Philanthropy, and Empowerment | CIO Women M...
Oprah Winfrey: A Leader in Media, Philanthropy, and Empowerment | CIO Women M...
CIOWomenMagazine
 
Training- integrated management system (iso)
Training- integrated management system (iso)Training- integrated management system (iso)
Training- integrated management system (iso)
akaash13
 

Recently uploaded (10)

Senior Project and Engineering Leader Jim Smith.pdf
Senior Project and Engineering Leader Jim Smith.pdfSenior Project and Engineering Leader Jim Smith.pdf
Senior Project and Engineering Leader Jim Smith.pdf
 
Leadership Ethics and Change, Purpose to Impact Plan
Leadership Ethics and Change, Purpose to Impact PlanLeadership Ethics and Change, Purpose to Impact Plan
Leadership Ethics and Change, Purpose to Impact Plan
 
TCS AI for Business Study – Key Findings
TCS AI for Business Study – Key FindingsTCS AI for Business Study – Key Findings
TCS AI for Business Study – Key Findings
 
SOCIO-ANTHROPOLOGY FACULTY OF NURSING.....
SOCIO-ANTHROPOLOGY FACULTY OF NURSING.....SOCIO-ANTHROPOLOGY FACULTY OF NURSING.....
SOCIO-ANTHROPOLOGY FACULTY OF NURSING.....
 
Case Analysis - The Sky is the Limit | Principles of Management
Case Analysis - The Sky is the Limit | Principles of ManagementCase Analysis - The Sky is the Limit | Principles of Management
Case Analysis - The Sky is the Limit | Principles of Management
 
Founder-Game Director Workshop (Session 1)
Founder-Game Director  Workshop (Session 1)Founder-Game Director  Workshop (Session 1)
Founder-Game Director Workshop (Session 1)
 
W.H.Bender Quote 65 - The Team Member and Guest Experience
W.H.Bender Quote 65 - The Team Member and Guest ExperienceW.H.Bender Quote 65 - The Team Member and Guest Experience
W.H.Bender Quote 65 - The Team Member and Guest Experience
 
一比一原版杜克大学毕业证(Duke毕业证)成绩单留信认证
一比一原版杜克大学毕业证(Duke毕业证)成绩单留信认证一比一原版杜克大学毕业证(Duke毕业证)成绩单留信认证
一比一原版杜克大学毕业证(Duke毕业证)成绩单留信认证
 
Oprah Winfrey: A Leader in Media, Philanthropy, and Empowerment | CIO Women M...
Oprah Winfrey: A Leader in Media, Philanthropy, and Empowerment | CIO Women M...Oprah Winfrey: A Leader in Media, Philanthropy, and Empowerment | CIO Women M...
Oprah Winfrey: A Leader in Media, Philanthropy, and Empowerment | CIO Women M...
 
Training- integrated management system (iso)
Training- integrated management system (iso)Training- integrated management system (iso)
Training- integrated management system (iso)
 

Dual formulation example

  • 1. Dual Formulation Example From 30 model questions
  • 2. Write the dual of the following primal problem: Maximise: z = -5x1 + 2x2 Subject to the constraints: x1 - x2 ≥ 2 2x1 + 3x2 ≤ 5 x1, x2 ≥ 0
  • 3. 1. If primal is a maximisation problem, its dual will be a minimisation problem, and vice versa. 2. No. of dual variables = no. of primal constraints. 3. No. of dual constraints = no. of primal variables. 4. The transpose of the coefficient matrix of the primal is the coefficient matrix of the dual. 5. The direction of constraints of the dual is the reverse of the direction of constraints in the primal. 6. If the kth primal constraint is a strict equality, then the kth dual variable will be unrestricted in sign. 7. If the ith primal variable is unrestricted in sign, then the ith dual constraint will be a strict equality. 8. If the primal is a maximisation problem, then before formulating the dual all the constraints should be converted into ‘≤ type’. If the primal is a minimisation problem, then before formulating the dual all the constraints should be converted into ‘≥ type’. 9. The objective function coefficients of the primal become the RHS constants of the constraints of the dual and the RHS constants of the primal constraints become the objective function coefficients of the variables in the dual. 10. If a variable is unrestricted in sign, it can be written as the difference between two non- negative variables.
  • 4. Primal: Max z = -5x1 + 2x2 s/t x1 - x2 ≥ 2 2x1 + 3x2 ≤ 5 x1, x2 ≥ 0 ∵ 𝑝𝑟𝑖𝑚𝑎𝑙 𝑖𝑠 𝑎 𝑚𝑎𝑥𝑖𝑚𝑖𝑠𝑎𝑡𝑖𝑜𝑛 𝑝𝑟𝑜𝑏𝑙𝑒𝑚 ∴ 𝑤𝑒 ℎ𝑎𝑣𝑒 𝑡𝑜 𝑒𝑛𝑠𝑢𝑟𝑒 𝑡ℎ𝑎𝑡 𝑎𝑙𝑙 𝑐𝑜𝑛𝑠𝑡𝑟𝑎𝑖𝑛𝑡𝑠 𝑎𝑟𝑒 𝑜𝑓 "≤" 𝑡𝑦𝑝𝑒 ∴ 𝑡ℎ𝑒 𝑝𝑟𝑖𝑚𝑎𝑙 𝑤𝑖𝑙𝑙 𝑏𝑒 𝑟𝑒𝑤𝑟𝑖𝑡𝑡𝑒𝑛 𝑎𝑠: 𝑀𝑎𝑥 𝑧 = −5𝑥1 + 2𝑥2 𝑠/𝑡 −𝑥1 + 𝑥2 ≤ −2 2𝑥1 + 3𝑥2 ≤ 5 𝑥1, 𝑥2 ≥ 0
  • 5. 𝑀𝑎𝑥 𝑧 = −5𝑥1 + 2𝑥2 𝑠/𝑡 −𝑥1 + 𝑥2 ≤ −2 2𝑥1 + 3𝑥2 ≤ 5 𝑥1, 𝑥2 ≥ 0 Primal objective function: maximise Dual objective function: minimise Number of dual variables = number of primal constraints = 2 (𝑦1, 𝑦2) Number of dual constraints = number of primal variables = 2 Coefficient matrix of dual constraints = transpose of the coefficient matrix of primal constraints = −1 1 2 3 𝑡 = −1 2 1 3 ∵ 𝑡ℎ𝑒 𝑝𝑟𝑖𝑚𝑎𝑙 𝑐𝑜𝑛𝑠𝑡𝑟𝑎𝑖𝑛𝑡𝑠 𝑎𝑟𝑒 𝑜𝑓 "≤" 𝑡𝑦𝑝𝑒 ∴ 𝑡ℎ𝑒 𝑑𝑢𝑎𝑙 𝑐𝑜𝑛𝑠𝑡𝑟𝑎𝑖𝑛𝑡𝑠 𝑤𝑖𝑙𝑙 𝑏𝑒 𝑜𝑓 "≥" 𝑡𝑦𝑝𝑒 RHS constants of dual constraints = Objective function coefficients of primal variables Objective function coefficients of dual variables = RHS constants of primal constraints
  • 6. ∴ 𝑡ℎ𝑒 𝑑𝑢𝑎𝑙 𝑐𝑎𝑛 𝑏𝑒 𝑤𝑟𝑖𝑡𝑡𝑒𝑛 𝑎𝑠: 𝑀𝑖𝑛 𝑧 = −2𝑦1 + 5𝑦2 𝑠/𝑡 −𝑦1 + 2𝑦2 ≥ −5 𝑦1 + 3𝑦2 ≥ 2 𝑦1, 𝑦2 ≥ 0