SlideShare a Scribd company logo
PRIMAL & DUAL
PROBLEMS,THEIR INTER
RELATIONSHIP
PREPARED BY:
130010119042 –KHAMBHAYATA MAYUR
130010119045 – KHANT VIJAY
130010119047 – LAD YASH A.
SUBMITTED TO:
PROF. S.R.PANDYA
CONTENT:
 Duality Theory
 Examples
 Standard form of the Dual Problem
 Definition
 Primal-Dual relationship
 Duality in LP
 General Rules for Constructing Dual
 Strong Dual
 Weak Dual
Duality Theory
 The theory of duality is a very elegant and important
concept within the field of operations research. This
theory was first developed in relation to linear
programming, but it has many applications, and
perhaps even a more natural and intuitive
interpretation, in several related areas such as
nonlinear programming, networks and game theory.
 The notion of duality within linear programming asserts
that every linear program has associated with it a
related linear program called its dual. The original
problem in relation to its dual is termed the primal.
 it is the relationship between the primal and its dual,
both on a mathematical and economic level, that is
truly the essence of duality theory.
Duality Theory (continue…)
Examples
 There is a small company in Melbourne which has recently
become engaged in the production of office furniture. The
company manufactures tables, desks and chairs. The
production of a table requires 8 kgs of wood and 5 kgs of
metal and is sold for $80; a desk uses 6 kgs of wood and 4
kgs of metal and is sold for $60; and a chair requires 4 kgs of
both metal and wood and is sold for $50. We would like to
determine the revenue maximizing strategy for this
company, given that their resources are limited to 100 kgs
of wood and 60 kgs of metal.
Standard form of the Primal
Problem
a x a x a x b
a x a x a x b
a x a x a x b
x x x
n n
n n
m m mn n m
n
11 1 12 2 1 1
21 1 22 2 2 2
1 1 2 2
1 2 0
   
   
   

...
...
... ... ... ...
... ... ... ...
...
, ,...,
max
x
j j
j
n
Z c x 
1
Standard form of the Dual
Problem
a y a y a y c
a y a y a y c
a y a y a y c
y y y
m m
m m
n n mn m n
m
11 1 21 2 1 1
12 1 22 2 2 2
1 1 2 2
1 2 0
   
   
   

...
...
... ... ... ...
... ... ... ...
...
, ,...,
min
y
i
i
m
iw b y 
1
Definition
z Z cx
s t
Ax b
x
x
*: max
. .
 

 0
w* : min
x
w  yb
s.t.
yA  c
y  0
Primal Problem Dual Problem
b is not assumed to be non-negative
Primal-Dual relationship
x1 0 x2 0 xn  0 w =
y1 0 a11 a12 a n1  b1
D u a l y2 0 a21 a22 a n2  b2
(m in w ) .. . . .. ... . .. . . .
ym  0 am1 am2 amn  bn
  
Z = c1 c2 cn
Example
5 18 5 15
8 12 8 8
12 4 8 10
2 5 5
0
1 2 3
1 2 3
1 2 3
1 3
1 2 3
x x x
x x x
x x x
x x
x x x
  
   
  
 
, ,
max
x
Z x x x  4 10 91 2 3
x1 0 x2 0 x3 0 w=
y1 0 5 - 18 5  15
Dual y2 0 8 12 0  8
(minw) y3 0 12 - 4 8  10
y4 0 2 0 - 5  5
  
Z= 4 10 - 9
Dual
5 8 12 2 4
18 12 4 10
5 8 5 9
0
1 2 3 4
1 2 3
1 3 4
1 2 3 4
y y y y
y y y
y y y
y y y y
   
   
   
, , ,
min
y
w y y y y   15 8 10 51 2 3 4
d x ei
i
k
i

 
1
d x e
d x e
i
i
k
i
i
i
k
i


 
 
1
1
d x e
d x e
i
i
k
i
i
i
k
i





  
1
1
Standard form!
Primal-Dual relationship
Primal Problem
opt=max
Constraint i :
<= form
= form
Variable j:
xj >= 0
xj urs
opt=min
Dual Problem
Variable i :
yi >= 0
yi urs
Constraint j:
>= form
= form
Duality in LP
In LP models, scarce resources are allocated, so they
should be, valued
Whenever we solve an LP problem, we solve two
problems: the primal resource allocation problem,
and the dual resource valuation problem
If the primal problem has n variables and m constraints,
the dual problem will have m variables and n
constraints
Primal and Dual Algebra
Primal
j j
j
ij j i
j
j
c X
. . a X b 1,...,
X 0 1,...,
Max
s t i m
j n
 
 


Dual
i
i
ij j
i
i
Min b
s.t. a c 1,...,
Y 0 1,...,
i
i
Y
Y j n
i m
 
 


'
. .
0
Max C X
s t X b
X





'
'
. .
0
Min b Y
s t AY C
Y






Example
1 2
1 2
1 2
1 2
40 30 ( )
. . 120 ( )
4 2 320 ( )
, 0
Max x x profits
s t x x land
x x labor
x x
  
    
   
  

 
 

1 2
1 2 1
1 2 2
1 2
( ) ( )
120 320
. . 4 40 ( )
2 30 ( )
, 0
land labor
Min y y
s t y y x
y y x
y y
 

  
  
  

 
 

Primal
Dual
General Rules for Constructing Dual
1. The number of variables in the dual problem is equal to the number of
constraints in the original (primal) problem. The number of constraints in
the dual problem is equal to the number of variables in the original
problem.
2. Coefficient of the objective function in the dual problem come from the
right-hand side of the original problem.
3. If the original problem is a max model, the dual is a min model; if the original
problem is a min model, the dual problem is the max problem.
4. The coefficient of the first constraint function for the dual problem are the
coefficients of the first variable in the constraints for the original problem,
and the similarly for other constraints.
5. The right-hand sides of the dual constraints come from the objective function
coefficients in the original problem.
Relations between Primal and Dual
1. The dual of the dual problem is again the primal problem.
2. Either of the two problems has an optimal solution if and
only if the other does; if one problem is feasible but
unbounded, then the other is infeasible; if one is infeasible,
then the other is either infeasible or feasible/unbounded.
3. Weak Duality Theorem: The objective function value of the
primal (dual) to be maximized evaluated at any primal (dual)
feasible solution cannot exceed the dual (primal) objective
function value evaluated at a dual (primal) feasible solution.
cTx >= bTy (in the standard equality form)
Relations between Primal and Dual (continued)
4. Strong Duality Theorem: When there is an optimal solution, the
optimal objective value of the primal is the same as the optimal
objective value of the dual.
cTx* = bTy*
Weak Duality
• DLP provides upper bound (in the case of maximization) to
the solution of the PLP.
• Ex) maximum flow vs. minimum cut
• Weak duality : any feasible solution to the primal linear
program has a value no greater than that of any feasible
solution to the dual linear program.
• Lemma : Let x and y be any feasible solution to the PLP and
DLP respectively. Then cTx ≤ yTb.
Strong duality : if PLP is feasible and has a finite
optimum then DLP is feasible and has a finite
optimum.
Furthermore, if x* and y* are optimal solutions for
PLP and DLP then cT x* = y*Tb
Strong Duality
Four Possible Primal Dual Problems
Dual
Primal Finite optimum Unbounded Infeasible
Finite optimum 1 x x
Unbounded x x 2
Infeasible x 3 4

More Related Content

What's hot

Game theory
Game theoryGame theory
Game theory
NEELAM KUSHWAHA
 
Big m method
Big m methodBig m method
Big m method
Luckshay Batra
 
Transportation problems
Transportation problemsTransportation problems
Transportation problems
VishalHotchandani2
 
Assignment Problem
Assignment ProblemAssignment Problem
Assignment Problem
Nakul Bhardwaj
 
Goal programming
Goal programmingGoal programming
Goal programming
Hakeem-Ur- Rehman
 
Duality in Linear Programming
Duality in Linear ProgrammingDuality in Linear Programming
Duality in Linear Programming
jyothimonc
 
3. linear programming senstivity analysis
3. linear programming senstivity analysis3. linear programming senstivity analysis
3. linear programming senstivity analysis
Hakeem-Ur- Rehman
 
LEAST COST METHOD
LEAST COST METHOD LEAST COST METHOD
LEAST COST METHOD
VishalHotchandani2
 
Formulation Lpp
Formulation  LppFormulation  Lpp
Formulation LppSachin MK
 
Optimal Solution by MODI Method
Optimal Solution by MODI MethodOptimal Solution by MODI Method
Optimal Solution by MODI Method
DrDeepaChauhan
 
Game theory
Game theoryGame theory
Canonical form and Standard form of LPP
Canonical form and Standard form of LPPCanonical form and Standard form of LPP
Canonical form and Standard form of LPP
Sundar B N
 
PRIMAL & DUAL PROBLEMS
PRIMAL & DUAL PROBLEMSPRIMAL & DUAL PROBLEMS
PRIMAL & DUAL PROBLEMS
MayuR Khambhayata
 
Game theory ppt
Game theory pptGame theory ppt
Game theory ppt
Anushka Kapoor
 
Simplex method: Slack, Surplus & Artificial variable
Simplex method:  Slack, Surplus & Artificial variableSimplex method:  Slack, Surplus & Artificial variable
Simplex method: Slack, Surplus & Artificial variable
DevyaneeDevyanee2007
 
Simplex method concept,
Simplex method concept,Simplex method concept,
Simplex method concept,
Dronak Sahu
 
Operations Research - The Big M Method
Operations Research - The Big M MethodOperations Research - The Big M Method
Operations Research - The Big M Method
Hisham Al Kurdi, EAVA, DMC-D-4K, HCCA-P, HCAA-D
 

What's hot (20)

Game theory
Game theoryGame theory
Game theory
 
Big m method
Big m methodBig m method
Big m method
 
Transportation problems
Transportation problemsTransportation problems
Transportation problems
 
Assignment Problem
Assignment ProblemAssignment Problem
Assignment Problem
 
Goal programming
Goal programmingGoal programming
Goal programming
 
Duality in Linear Programming
Duality in Linear ProgrammingDuality in Linear Programming
Duality in Linear Programming
 
3. linear programming senstivity analysis
3. linear programming senstivity analysis3. linear programming senstivity analysis
3. linear programming senstivity analysis
 
LEAST COST METHOD
LEAST COST METHOD LEAST COST METHOD
LEAST COST METHOD
 
Formulation Lpp
Formulation  LppFormulation  Lpp
Formulation Lpp
 
Optimal Solution by MODI Method
Optimal Solution by MODI MethodOptimal Solution by MODI Method
Optimal Solution by MODI Method
 
graphical method
graphical method graphical method
graphical method
 
Game theory
Game theoryGame theory
Game theory
 
Canonical form and Standard form of LPP
Canonical form and Standard form of LPPCanonical form and Standard form of LPP
Canonical form and Standard form of LPP
 
PRIMAL & DUAL PROBLEMS
PRIMAL & DUAL PROBLEMSPRIMAL & DUAL PROBLEMS
PRIMAL & DUAL PROBLEMS
 
Game theory ppt
Game theory pptGame theory ppt
Game theory ppt
 
Modi method
Modi methodModi method
Modi method
 
Simplex method: Slack, Surplus & Artificial variable
Simplex method:  Slack, Surplus & Artificial variableSimplex method:  Slack, Surplus & Artificial variable
Simplex method: Slack, Surplus & Artificial variable
 
Game theory
Game theoryGame theory
Game theory
 
Simplex method concept,
Simplex method concept,Simplex method concept,
Simplex method concept,
 
Operations Research - The Big M Method
Operations Research - The Big M MethodOperations Research - The Big M Method
Operations Research - The Big M Method
 

Similar to primal and dual problem

Duality.ppt
Duality.pptDuality.ppt
Duality.ppt
airhossein
 
Unit.3. duality and sensetivity analisis
Unit.3. duality and sensetivity analisisUnit.3. duality and sensetivity analisis
Unit.3. duality and sensetivity analisis
DagnaygebawGoshme
 
Duality in Linear Programming Problem
Duality in Linear Programming ProblemDuality in Linear Programming Problem
Duality in Linear Programming Problem
RAVI PRASAD K.J.
 
Mb 106 quantitative techniques 8
Mb 106 quantitative techniques 8Mb 106 quantitative techniques 8
Mb 106 quantitative techniques 8
KrishnaRoy45
 
Approximate-At-Most-k Encoding of SAT for Soft Constraints
Approximate-At-Most-k Encoding of SAT for Soft ConstraintsApproximate-At-Most-k Encoding of SAT for Soft Constraints
Approximate-At-Most-k Encoding of SAT for Soft Constraints
Shunji Nishimura
 
5. advance topics in lp
5. advance topics in lp5. advance topics in lp
5. advance topics in lp
Hakeem-Ur- Rehman
 
The Use of Fuzzy Optimization Methods for Radiation.ppt
The Use of Fuzzy Optimization Methods for Radiation.pptThe Use of Fuzzy Optimization Methods for Radiation.ppt
The Use of Fuzzy Optimization Methods for Radiation.ppt
eslameslam18
 
OR Linear Programming
OR Linear ProgrammingOR Linear Programming
OR Linear Programmingchaitu87
 
lecture on support vector machine in the field of ML
lecture on support vector machine in the field of MLlecture on support vector machine in the field of ML
lecture on support vector machine in the field of ML
AkashVerma639361
 
Dual formulation example
Dual formulation exampleDual formulation example
Dual formulation example
Anurag Srivastava
 
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
 
しっかり学ぶ数理最適化輪読会・2.3
しっかり学ぶ数理最適化輪読会・2.3しっかり学ぶ数理最適化輪読会・2.3
しっかり学ぶ数理最適化輪読会・2.3
TakeruMimata
 
aaoczc2252
aaoczc2252aaoczc2252
aaoczc2252
Perumal_Gopi42
 
Differential equations
Differential equationsDifferential equations
Differential equations
Dawood Aqlan
 
Differential equations
Differential equationsDifferential equations
Differential equationsCharan Kumar
 
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
 

Similar to primal and dual problem (20)

Duality.ppt
Duality.pptDuality.ppt
Duality.ppt
 
Unit.3. duality and sensetivity analisis
Unit.3. duality and sensetivity analisisUnit.3. duality and sensetivity analisis
Unit.3. duality and sensetivity analisis
 
Duality in Linear Programming Problem
Duality in Linear Programming ProblemDuality in Linear Programming Problem
Duality in Linear Programming Problem
 
Mb 106 quantitative techniques 8
Mb 106 quantitative techniques 8Mb 106 quantitative techniques 8
Mb 106 quantitative techniques 8
 
Approximate-At-Most-k Encoding of SAT for Soft Constraints
Approximate-At-Most-k Encoding of SAT for Soft ConstraintsApproximate-At-Most-k Encoding of SAT for Soft Constraints
Approximate-At-Most-k Encoding of SAT for Soft Constraints
 
5. advance topics in lp
5. advance topics in lp5. advance topics in lp
5. advance topics in lp
 
The Use of Fuzzy Optimization Methods for Radiation.ppt
The Use of Fuzzy Optimization Methods for Radiation.pptThe Use of Fuzzy Optimization Methods for Radiation.ppt
The Use of Fuzzy Optimization Methods for Radiation.ppt
 
OR Linear Programming
OR Linear ProgrammingOR Linear Programming
OR Linear Programming
 
Duality
DualityDuality
Duality
 
lecture on support vector machine in the field of ML
lecture on support vector machine in the field of MLlecture on support vector machine in the field of ML
lecture on support vector machine in the field of ML
 
Dual formulation example
Dual formulation exampleDual formulation example
Dual formulation example
 
Linearprog, Reading Materials for Operational Research
Linearprog, Reading Materials for Operational Research Linearprog, Reading Materials for Operational Research
Linearprog, Reading Materials for Operational Research
 
Duality
DualityDuality
Duality
 
しっかり学ぶ数理最適化輪読会・2.3
しっかり学ぶ数理最適化輪読会・2.3しっかり学ぶ数理最適化輪読会・2.3
しっかり学ぶ数理最適化輪読会・2.3
 
aaoczc2252
aaoczc2252aaoczc2252
aaoczc2252
 
Differential equations
Differential equationsDifferential equations
Differential equations
 
Differential equations
Differential equationsDifferential equations
Differential equations
 
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
 
5598 l6 duality-notes (1)
5598 l6 duality-notes (1)5598 l6 duality-notes (1)
5598 l6 duality-notes (1)
 
Ai unit-3
Ai unit-3Ai unit-3
Ai unit-3
 

More from Yash Lad

Ayodhya Dispute & Verdict
Ayodhya Dispute & VerdictAyodhya Dispute & Verdict
Ayodhya Dispute & Verdict
Yash Lad
 
Bio-Weapon Design
Bio-Weapon DesignBio-Weapon Design
Bio-Weapon Design
Yash Lad
 
AIRBAG SYSTEM FOR 2-WHEELER VEHICLE SYSTEM
AIRBAG SYSTEM FOR 2-WHEELER VEHICLE SYSTEMAIRBAG SYSTEM FOR 2-WHEELER VEHICLE SYSTEM
AIRBAG SYSTEM FOR 2-WHEELER VEHICLE SYSTEM
Yash Lad
 
Ballasting Of Tractors & Power Tillers
Ballasting Of Tractors & Power TillersBallasting Of Tractors & Power Tillers
Ballasting Of Tractors & Power Tillers
Yash Lad
 
Motor Vehicle Act Definitions
Motor Vehicle Act DefinitionsMotor Vehicle Act Definitions
Motor Vehicle Act Definitions
Yash Lad
 
Project : Aqua Silencer
Project : Aqua SilencerProject : Aqua Silencer
Project : Aqua Silencer
Yash Lad
 
Wheel & Tyre-Service,Repair & Overhaul
Wheel & Tyre-Service,Repair & OverhaulWheel & Tyre-Service,Repair & Overhaul
Wheel & Tyre-Service,Repair & Overhaul
Yash Lad
 
Analysis and selection of body member sections, Body subframe and underfloor ...
Analysis and selection of body member sections, Body subframe and underfloor ...Analysis and selection of body member sections, Body subframe and underfloor ...
Analysis and selection of body member sections, Body subframe and underfloor ...
Yash Lad
 
nuclear fission and fusion
nuclear fission and fusionnuclear fission and fusion
nuclear fission and fusion
Yash Lad
 

More from Yash Lad (9)

Ayodhya Dispute & Verdict
Ayodhya Dispute & VerdictAyodhya Dispute & Verdict
Ayodhya Dispute & Verdict
 
Bio-Weapon Design
Bio-Weapon DesignBio-Weapon Design
Bio-Weapon Design
 
AIRBAG SYSTEM FOR 2-WHEELER VEHICLE SYSTEM
AIRBAG SYSTEM FOR 2-WHEELER VEHICLE SYSTEMAIRBAG SYSTEM FOR 2-WHEELER VEHICLE SYSTEM
AIRBAG SYSTEM FOR 2-WHEELER VEHICLE SYSTEM
 
Ballasting Of Tractors & Power Tillers
Ballasting Of Tractors & Power TillersBallasting Of Tractors & Power Tillers
Ballasting Of Tractors & Power Tillers
 
Motor Vehicle Act Definitions
Motor Vehicle Act DefinitionsMotor Vehicle Act Definitions
Motor Vehicle Act Definitions
 
Project : Aqua Silencer
Project : Aqua SilencerProject : Aqua Silencer
Project : Aqua Silencer
 
Wheel & Tyre-Service,Repair & Overhaul
Wheel & Tyre-Service,Repair & OverhaulWheel & Tyre-Service,Repair & Overhaul
Wheel & Tyre-Service,Repair & Overhaul
 
Analysis and selection of body member sections, Body subframe and underfloor ...
Analysis and selection of body member sections, Body subframe and underfloor ...Analysis and selection of body member sections, Body subframe and underfloor ...
Analysis and selection of body member sections, Body subframe and underfloor ...
 
nuclear fission and fusion
nuclear fission and fusionnuclear fission and fusion
nuclear fission and fusion
 

Recently uploaded

special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
Celine George
 
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
AzmatAli747758
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
Nguyen Thanh Tu Collection
 
Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
bennyroshan06
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
PedroFerreira53928
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
rosedainty
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 

Recently uploaded (20)

special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
 
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
 
Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 

primal and dual problem

  • 1. PRIMAL & DUAL PROBLEMS,THEIR INTER RELATIONSHIP PREPARED BY: 130010119042 –KHAMBHAYATA MAYUR 130010119045 – KHANT VIJAY 130010119047 – LAD YASH A. SUBMITTED TO: PROF. S.R.PANDYA
  • 2. CONTENT:  Duality Theory  Examples  Standard form of the Dual Problem  Definition  Primal-Dual relationship  Duality in LP  General Rules for Constructing Dual  Strong Dual  Weak Dual
  • 3. Duality Theory  The theory of duality is a very elegant and important concept within the field of operations research. This theory was first developed in relation to linear programming, but it has many applications, and perhaps even a more natural and intuitive interpretation, in several related areas such as nonlinear programming, networks and game theory.
  • 4.  The notion of duality within linear programming asserts that every linear program has associated with it a related linear program called its dual. The original problem in relation to its dual is termed the primal.  it is the relationship between the primal and its dual, both on a mathematical and economic level, that is truly the essence of duality theory. Duality Theory (continue…)
  • 5. Examples  There is a small company in Melbourne which has recently become engaged in the production of office furniture. The company manufactures tables, desks and chairs. The production of a table requires 8 kgs of wood and 5 kgs of metal and is sold for $80; a desk uses 6 kgs of wood and 4 kgs of metal and is sold for $60; and a chair requires 4 kgs of both metal and wood and is sold for $50. We would like to determine the revenue maximizing strategy for this company, given that their resources are limited to 100 kgs of wood and 60 kgs of metal.
  • 6. Standard form of the Primal Problem a x a x a x b a x a x a x b a x a x a x b x x x n n n n m m mn n m n 11 1 12 2 1 1 21 1 22 2 2 2 1 1 2 2 1 2 0              ... ... ... ... ... ... ... ... ... ... ... , ,..., max x j j j n Z c x  1
  • 7. Standard form of the Dual Problem a y a y a y c a y a y a y c a y a y a y c y y y m m m m n n mn m n m 11 1 21 2 1 1 12 1 22 2 2 2 1 1 2 2 1 2 0              ... ... ... ... ... ... ... ... ... ... ... , ,..., min y i i m iw b y  1
  • 8. Definition z Z cx s t Ax b x x *: max . .     0 w* : min x w  yb s.t. yA  c y  0 Primal Problem Dual Problem b is not assumed to be non-negative
  • 9. Primal-Dual relationship x1 0 x2 0 xn  0 w = y1 0 a11 a12 a n1  b1 D u a l y2 0 a21 a22 a n2  b2 (m in w ) .. . . .. ... . .. . . . ym  0 am1 am2 amn  bn    Z = c1 c2 cn
  • 10. Example 5 18 5 15 8 12 8 8 12 4 8 10 2 5 5 0 1 2 3 1 2 3 1 2 3 1 3 1 2 3 x x x x x x x x x x x x x x             , , max x Z x x x  4 10 91 2 3
  • 11. x1 0 x2 0 x3 0 w= y1 0 5 - 18 5  15 Dual y2 0 8 12 0  8 (minw) y3 0 12 - 4 8  10 y4 0 2 0 - 5  5    Z= 4 10 - 9
  • 12. Dual 5 8 12 2 4 18 12 4 10 5 8 5 9 0 1 2 3 4 1 2 3 1 3 4 1 2 3 4 y y y y y y y y y y y y y y             , , , min y w y y y y   15 8 10 51 2 3 4
  • 13. d x ei i k i    1 d x e d x e i i k i i i k i       1 1 d x e d x e i i k i i i k i         1 1 Standard form!
  • 14. Primal-Dual relationship Primal Problem opt=max Constraint i : <= form = form Variable j: xj >= 0 xj urs opt=min Dual Problem Variable i : yi >= 0 yi urs Constraint j: >= form = form
  • 15. Duality in LP In LP models, scarce resources are allocated, so they should be, valued Whenever we solve an LP problem, we solve two problems: the primal resource allocation problem, and the dual resource valuation problem If the primal problem has n variables and m constraints, the dual problem will have m variables and n constraints
  • 16. Primal and Dual Algebra Primal j j j ij j i j j c X . . a X b 1,..., X 0 1,..., Max s t i m j n       Dual i i ij j i i Min b s.t. a c 1,..., Y 0 1,..., i i Y Y j n i m       ' . . 0 Max C X s t X b X      ' ' . . 0 Min b Y s t AY C Y      
  • 17. Example 1 2 1 2 1 2 1 2 40 30 ( ) . . 120 ( ) 4 2 320 ( ) , 0 Max x x profits s t x x land x x labor x x                      1 2 1 2 1 1 2 2 1 2 ( ) ( ) 120 320 . . 4 40 ( ) 2 30 ( ) , 0 land labor Min y y s t y y x y y x y y                   Primal Dual
  • 18. General Rules for Constructing Dual 1. The number of variables in the dual problem is equal to the number of constraints in the original (primal) problem. The number of constraints in the dual problem is equal to the number of variables in the original problem. 2. Coefficient of the objective function in the dual problem come from the right-hand side of the original problem. 3. If the original problem is a max model, the dual is a min model; if the original problem is a min model, the dual problem is the max problem. 4. The coefficient of the first constraint function for the dual problem are the coefficients of the first variable in the constraints for the original problem, and the similarly for other constraints. 5. The right-hand sides of the dual constraints come from the objective function coefficients in the original problem.
  • 19. Relations between Primal and Dual 1. The dual of the dual problem is again the primal problem. 2. Either of the two problems has an optimal solution if and only if the other does; if one problem is feasible but unbounded, then the other is infeasible; if one is infeasible, then the other is either infeasible or feasible/unbounded. 3. Weak Duality Theorem: The objective function value of the primal (dual) to be maximized evaluated at any primal (dual) feasible solution cannot exceed the dual (primal) objective function value evaluated at a dual (primal) feasible solution. cTx >= bTy (in the standard equality form)
  • 20. Relations between Primal and Dual (continued) 4. Strong Duality Theorem: When there is an optimal solution, the optimal objective value of the primal is the same as the optimal objective value of the dual. cTx* = bTy*
  • 21. Weak Duality • DLP provides upper bound (in the case of maximization) to the solution of the PLP. • Ex) maximum flow vs. minimum cut • Weak duality : any feasible solution to the primal linear program has a value no greater than that of any feasible solution to the dual linear program. • Lemma : Let x and y be any feasible solution to the PLP and DLP respectively. Then cTx ≤ yTb.
  • 22. Strong duality : if PLP is feasible and has a finite optimum then DLP is feasible and has a finite optimum. Furthermore, if x* and y* are optimal solutions for PLP and DLP then cT x* = y*Tb Strong Duality
  • 23. Four Possible Primal Dual Problems Dual Primal Finite optimum Unbounded Infeasible Finite optimum 1 x x Unbounded x x 2 Infeasible x 3 4