SlideShare una empresa de Scribd logo
1 de 28
DUALITY
Duality Theory ,[object Object],[object Object],[object Object],[object Object]
Rules for converting Primal to Dual ,[object Object],[object Object],[object Object],[object Object]
Dual Problem Primal LP  : Max  z = c 1 x 1  + c 2 x 2  + ... + c n x n subject to: a 11 x 1  + a 12 x 2  + ... + a 1n x n  ≤ b 1 a 21 x 1  + a 22 x 2  + ... + a 2n x n  ≤ b 2 : a m1 x 1  + a m2 x 2  + ... + a mn x n  ≤ b m  x 1  ≥ 0, x 2  ≥ 0,…….x j  ≥ 0,……., x n  ≥ 0. Associated Dual LP  : Min. z = b 1 y 1  + b 2 y 2  + ... + b m y m subject to: a 11 y 1  + a 21 y 2  + ... + a m1 y m  ≥ c 1 a 12 y 1  + a 22 y 2  + ... + a m2 y m  ≥ c 2 : a 1n y 1  + a 2n y 2  + ... + a mn y m  ≥ c n y 1  ≥ 0, y 2  ≥ 0,…….y j  ≥ 0,……., y m  ≥ 0.
Example Primal Max. Z = 3x 1 +5x 2 Subject to constraints: x 1  <  4  y 1 2x 2  <  12  y 2 3x 1 +2x 2  <  18  y 3 x 1 , x 2  >  0 The Primal has: 2 variables and 3 constraints. So the Dual has: 3 variables and 2 constraints Dual Min. Z’ = 4y 1 +12y 2  +18y 3 Subject to constraints: y 1  + 3y 3  >  3  2y 2  +2y 3  >  5  y 1 , y 2 , y 3  >  0 We define one dual variable for each primal constraint.
Example Primal Min.. Z = 10x 1 +15x 2 Subject to constraints: 5x 1  +  7x 2  >  80  6x 1  + 11x 2  >  100  x 1 , x 2  >  0
Solution Dual Max.. Z’ = 80y 1 +100y 2 Subject to constraints: 5y 1  +  6y 2  <  10  7y 1  + 11y 2  <  15  y 1 , y 2  >  0
Example Primal Max. Z = 12x 1 + 4x 2 Subject to constraints: 4x 1  + 7x 2  <   56  2x 1  + 5x 2  >  20  5x 1  +  4x 2  = 40  x 1 , x 2  >  0
Solution ,[object Object],[object Object],[object Object],[object Object],[object Object]
Cont… The primal problem can now take the following standard form: Max. Z = 12x 1 + 4x 2 Subject to constraints: 4x 1  + 7x 2  <   56 -2x 1  - 5x 2  <   -20 5x 1  +  4x 2  <  40 -5x 1  -  4x 2  <   -40 x 1 , x 2  >  0
Cont… Min. Z’ = 56y 1  -20y 2  + 40y 3  – 40y 4 Subject to constraints: 4y 1  – 2y 2  +  5y 3  – 5y 4   >  12  7y 1  - 5y 2  +  4y 3  – 4y 4  >  4  y 1 , y 2 , y 3 , y 4  >  0 The dual of this problem can now be obtained as follows:
Example Primal Min.. Z = 2x 2  + 5x 3 Subject to constraints: x 1  + x 2  >  2  2x 1  + x 2  +6x 3  <  6  x 1  - x 2  +3x 3  = 4  x 1 , x 2 , x 3  >  0
Solution Primal in standard form  : Max.. Z = -2x 2  - 5x 3 Subject to constraints: -x 1  - x 2  <   -2  2x 1  + x 2  +6x 3  <  6  x 1  - x 2  +3x 3  <  4  - x 1  + x 2  - 3x 3  <   -4  x 1 , x 2 , x 3  >  0
Cont… Dual Min. Z’ = -2y 1  + 6y 2  + 4y 3  – 4y 4 Subject to constraints: -y 1  + 2y 2  + y 3  – y 4   >  0  -y 1  + y 2  - y 3  + y 4  >   -2  6y 2  + 3y 3  - 3y 4  >   -5 y 1 , y 2 , y 3 , y 4  >  0
DUAL SIMPLEX METHOD
Introduction Suppose a “basic solution” satisfies the optimality condition but not feasible, then we apply dual simplex method. In regular Simplex method, we start with a Basic Feasible solution (which is not optimal) and move towards optimality always retaining feasibility. In the dual simplex method, the exact opposite occurs. We start with a “optimal” solution (which is not feasible) and move towards feasibility always retaining optimality condition.The algorithm ends once we obtain feasibility.
Dual Simplex Method ,[object Object],[object Object],[object Object]
Example Min. Z = 3x 1  + 2x 2 Subject to constraints: 3x 1  + x 2  >  3 4x 1  + 3x 2  >  6 x 1  + x 2  <  3 x 1 , x 2  >  0
Cont… Step I: The first two inequalities are multiplied by –1 to convert them to  <  constraints and convert the objective function into maximization function. Max. Z’ = -3x 1  - 2x 2  where Z’= -Z  Subject to constraints: -3x 1  - x 2  <  -3  -4x 1  - 3x 2  <  -6 x 1  + x 2  <  3 x 1 , x 2  >  0
Cont… Let S 1 , S 2  , S 3  be three slack variables Model can rewritten as: Z’ + 3x 1  + 2x 2  = 0 -3x 1  - x 2  +S 1  =  -3  -4x 1  - 3x 2  +S 2  = -6 x 1  + x 2  +S 3  = 3 Initial BS is : x 1 = 0, x 2 = 0,  S 1 = -3,  S 2 = -6, S 3 = 3 and Z=0.
Cont… ,[object Object],[object Object],[object Object],[object Object],- - - 2/3 3/4 -  Ratio 3 1 0 0 1 1 0 S 3 -6 0 1 0 -3 -4 0 S 2 -3 0 0 1 -1 -3 0 S 1 0 0 0 0 2 3 1 Z Sol. S 3 S 2 S 1 x 2 x 1 Z Coefficients of:  Basic Variable
Cont… Therefore, S 1  is the departing variable and x 1  is the entering variable.  - 2 - - 1/5 -  Ratio 1 1 1/3 0 0 -1/3 0 S 3 2 0 -1/3 0 1 4/3 0 x 2 -1 0 -1/3 1 0 -5/3 0 S 1 4 0 2/3 0 0 1/3 1 Z Sol. S 3 S 2 S 1 x 2 x 1 Z Coefficients of:  Basic Variable
Cont… Optimal Solution is :  x 1 = 3/5, x 2 = 6/5, Z= 21/5 6/5 1 2/5 -1/5 0 0 0 S 3 6/5 0 -3/5 4/5 1 0 0 x 2 3/5 0 1/5 -3/5 0 1 0 x 1 21/5 0 3/5 1/5 0 0 1 Z Sol. S 3 S 2 S 1 x 2 x 1 Z Coefficients of:  Basic Variable
Example Max. Z = -x 1  - x 2 Subject to constraints: x 1  + x 2  <  8 x 2  >  3 -x 1  + x 2  <  2 x 1 , x 2  >  0
Cont… Let S 1 , S 2  , S 3  be three slack variables Model can rewritten as: Z  + x 1  + x 2  = 0 x 1  + x 2  + S 1  =  8 -x 2  + S 2  = -3 -x 1  + x 2  + S 3  = 2 x 1 , x 2  >  0 Initial BS is : x 1 = 0, x 2 = 0,  S 1 = 8,  S 2 = -3, S 3 = 2 and Z=0.
Cont… Therefore, S 2  is the departing variable and x 2  is the entering variable.  - - - 1 - -  Ratio 2 1 0 0 1 -1 0 S 3 -3 0 1 0 -1 0 0 S 2 8 0 0 1 1 1 0 S 1 0 0 0 0 1 1 1 Z Sol. S 3 S 2 S 1 x 2 x 1 Z Coefficients of:  Basic Variable
Cont… Therefore, S 3  is the departing variable and x 1  is the entering variable.  - - - - 1 -  Ratio -1 1 1 0 0 -1 0 S 3 3 0 -1 0 1 0 0 x 2 5 0 1 1 0 1 0 S 1 -3 0 1 0 0 1 1 Z Sol. S 3 S 2 S 1 x 2 x 1 Z Coefficients of:  Basic Variable
Cont… Optimal Solution is :  x 1 = 1, x 2 = 3, Z= -4 1 -1 -1 0 0 1 0 x 1 3 0 -1 0 1 0 0 x 2 4 0 2 1 0 0 0 S 1 -4 1 2 0 0 0 1 Z Sol. S 3 S 2 S 1 x 2 x 1 Z Coefficients of:  Basic Variable

Más contenido relacionado

La actualidad más candente

Simplex Method
Simplex MethodSimplex Method
Simplex MethodSachin MK
 
Formulation Lpp
Formulation  LppFormulation  Lpp
Formulation LppSachin MK
 
Sensitivity analysis linear programming copy
Sensitivity analysis linear programming   copySensitivity analysis linear programming   copy
Sensitivity analysis linear programming copyKiran Jadhav
 
Simplex method concept,
Simplex method concept,Simplex method concept,
Simplex method concept,Dronak Sahu
 
Graphical Method
Graphical MethodGraphical Method
Graphical MethodSachin MK
 
NON LINEAR PROGRAMMING
NON LINEAR PROGRAMMING NON LINEAR PROGRAMMING
NON LINEAR PROGRAMMING karishma gupta
 
Artificial Variable Technique –
Artificial Variable Technique –Artificial Variable Technique –
Artificial Variable Technique –itsvineeth209
 
Operation research complete note
Operation research  complete noteOperation research  complete note
Operation research complete notekabul university
 
Special Cases in Simplex Method
Special Cases in Simplex MethodSpecial Cases in Simplex Method
Special Cases in Simplex MethodDivyansh Verma
 
Linear programming
Linear programmingLinear programming
Linear programmingKarnav Rana
 
Linear Programming (graphical method)
Linear Programming (graphical method)Linear Programming (graphical method)
Linear Programming (graphical method)Kamel Attar
 
Linear Programming Problems : Dr. Purnima Pandit
Linear Programming Problems : Dr. Purnima PanditLinear Programming Problems : Dr. Purnima Pandit
Linear Programming Problems : Dr. Purnima PanditPurnima Pandit
 

La actualidad más candente (20)

Simplex Method
Simplex MethodSimplex Method
Simplex Method
 
Formulation Lpp
Formulation  LppFormulation  Lpp
Formulation Lpp
 
PRIMAL & DUAL PROBLEMS
PRIMAL & DUAL PROBLEMSPRIMAL & DUAL PROBLEMS
PRIMAL & DUAL PROBLEMS
 
L20 Simplex Method
L20 Simplex MethodL20 Simplex Method
L20 Simplex Method
 
simplex method
simplex methodsimplex method
simplex method
 
Sensitivity analysis linear programming copy
Sensitivity analysis linear programming   copySensitivity analysis linear programming   copy
Sensitivity analysis linear programming copy
 
Simplex method concept,
Simplex method concept,Simplex method concept,
Simplex method concept,
 
Big-M Method Presentation
Big-M Method PresentationBig-M Method Presentation
Big-M Method Presentation
 
Operations Research - The Big M Method
Operations Research - The Big M MethodOperations Research - The Big M Method
Operations Research - The Big M Method
 
Graphical Method
Graphical MethodGraphical Method
Graphical Method
 
Linear Programming
Linear ProgrammingLinear Programming
Linear Programming
 
NON LINEAR PROGRAMMING
NON LINEAR PROGRAMMING NON LINEAR PROGRAMMING
NON LINEAR PROGRAMMING
 
Artificial Variable Technique –
Artificial Variable Technique –Artificial Variable Technique –
Artificial Variable Technique –
 
Integer programming
Integer programmingInteger programming
Integer programming
 
Operation research complete note
Operation research  complete noteOperation research  complete note
Operation research complete note
 
Special Cases in Simplex Method
Special Cases in Simplex MethodSpecial Cases in Simplex Method
Special Cases in Simplex Method
 
Linear programming
Linear programmingLinear programming
Linear programming
 
Linear Programming (graphical method)
Linear Programming (graphical method)Linear Programming (graphical method)
Linear Programming (graphical method)
 
Linear Programming Problems : Dr. Purnima Pandit
Linear Programming Problems : Dr. Purnima PanditLinear Programming Problems : Dr. Purnima Pandit
Linear Programming Problems : Dr. Purnima Pandit
 
LINEAR PROGRAMMING
LINEAR PROGRAMMINGLINEAR PROGRAMMING
LINEAR PROGRAMMING
 

Destacado

Boolean algebra
Boolean algebraBoolean algebra
Boolean algebramdaglis
 
UNIT 26: PLANNING AND MANAGING FOOD PRODUCTION AND BEVERAGE SERVICE
UNIT 26: PLANNING AND MANAGING FOOD PRODUCTION AND BEVERAGE SERVICEUNIT 26: PLANNING AND MANAGING FOOD PRODUCTION AND BEVERAGE SERVICE
UNIT 26: PLANNING AND MANAGING FOOD PRODUCTION AND BEVERAGE SERVICEPremium Assignment Help
 
CONVERTING SOUND ENERGY INTO ELECTRICITY USING PIEZOELECTRIC MATERIAL: A STUDY
CONVERTING SOUND ENERGY INTO ELECTRICITY USING PIEZOELECTRIC MATERIAL: A STUDYCONVERTING SOUND ENERGY INTO ELECTRICITY USING PIEZOELECTRIC MATERIAL: A STUDY
CONVERTING SOUND ENERGY INTO ELECTRICITY USING PIEZOELECTRIC MATERIAL: A STUDYIAEME Publication
 
Common Emitter With Emitter Resistance Re
Common Emitter With Emitter Resistance ReCommon Emitter With Emitter Resistance Re
Common Emitter With Emitter Resistance ReHamdard University
 
How sound is converted to energy
How sound is converted to energyHow sound is converted to energy
How sound is converted to energyAdrita Majumder
 
Noise to electric Energy Conversion
Noise to electric Energy ConversionNoise to electric Energy Conversion
Noise to electric Energy ConversionChintan Shah
 
Sound energy and electricity
Sound energy and electricitySound energy and electricity
Sound energy and electricityAdrita Majumder
 
green noise or production of electricity from noise or sound
green noise or production of electricity from noise or soundgreen noise or production of electricity from noise or sound
green noise or production of electricity from noise or soundsukhvinder343
 
Minterm and maxterm
Minterm and maxtermMinterm and maxterm
Minterm and maxtermparsa.khan64
 
Lesson 30: Duality In Linear Programming
Lesson 30: Duality In Linear ProgrammingLesson 30: Duality In Linear Programming
Lesson 30: Duality In Linear ProgrammingMatthew Leingang
 
linear programming metode simplex
linear programming metode simplexlinear programming metode simplex
linear programming metode simplexBambang Kristiono
 
Sound Energy to Electric Energy
Sound Energy to Electric EnergySound Energy to Electric Energy
Sound Energy to Electric EnergyDebayon Saha
 
Transportation model and assignment model
Transportation model and assignment modelTransportation model and assignment model
Transportation model and assignment modelpriyanka yadav
 

Destacado (20)

Principal of duality
Principal of dualityPrincipal of duality
Principal of duality
 
Duality concept
Duality conceptDuality concept
Duality concept
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
 
UNIT 26: PLANNING AND MANAGING FOOD PRODUCTION AND BEVERAGE SERVICE
UNIT 26: PLANNING AND MANAGING FOOD PRODUCTION AND BEVERAGE SERVICEUNIT 26: PLANNING AND MANAGING FOOD PRODUCTION AND BEVERAGE SERVICE
UNIT 26: PLANNING AND MANAGING FOOD PRODUCTION AND BEVERAGE SERVICE
 
Sound to elelectricity
Sound to elelectricitySound to elelectricity
Sound to elelectricity
 
CONVERTING SOUND ENERGY INTO ELECTRICITY USING PIEZOELECTRIC MATERIAL: A STUDY
CONVERTING SOUND ENERGY INTO ELECTRICITY USING PIEZOELECTRIC MATERIAL: A STUDYCONVERTING SOUND ENERGY INTO ELECTRICITY USING PIEZOELECTRIC MATERIAL: A STUDY
CONVERTING SOUND ENERGY INTO ELECTRICITY USING PIEZOELECTRIC MATERIAL: A STUDY
 
Mobile charging using voice
Mobile charging using voiceMobile charging using voice
Mobile charging using voice
 
Voice usage mobile charging
Voice usage mobile chargingVoice usage mobile charging
Voice usage mobile charging
 
Common Emitter With Emitter Resistance Re
Common Emitter With Emitter Resistance ReCommon Emitter With Emitter Resistance Re
Common Emitter With Emitter Resistance Re
 
How sound is converted to energy
How sound is converted to energyHow sound is converted to energy
How sound is converted to energy
 
Noise to electric Energy Conversion
Noise to electric Energy ConversionNoise to electric Energy Conversion
Noise to electric Energy Conversion
 
Sound energy and electricity
Sound energy and electricitySound energy and electricity
Sound energy and electricity
 
green noise or production of electricity from noise or sound
green noise or production of electricity from noise or soundgreen noise or production of electricity from noise or sound
green noise or production of electricity from noise or sound
 
Minterm and maxterm
Minterm and maxtermMinterm and maxterm
Minterm and maxterm
 
Lesson 30: Duality In Linear Programming
Lesson 30: Duality In Linear ProgrammingLesson 30: Duality In Linear Programming
Lesson 30: Duality In Linear Programming
 
linear programming metode simplex
linear programming metode simplexlinear programming metode simplex
linear programming metode simplex
 
Sound Energy to Electric Energy
Sound Energy to Electric EnergySound Energy to Electric Energy
Sound Energy to Electric Energy
 
Dual simplexmethod
Dual simplexmethodDual simplexmethod
Dual simplexmethod
 
Phonetics
PhoneticsPhonetics
Phonetics
 
Transportation model and assignment model
Transportation model and assignment modelTransportation model and assignment model
Transportation model and assignment model
 

Similar a Duality

OR Linear Programming
OR Linear ProgrammingOR Linear Programming
OR Linear Programmingchaitu87
 
simplex method-maths 4 mumbai university
simplex method-maths 4 mumbai universitysimplex method-maths 4 mumbai university
simplex method-maths 4 mumbai universityshobhakedari59
 
Simplex Method
Simplex MethodSimplex Method
Simplex Methodkzoe1996
 
7.3_Nonlinear Programming-LagrangeExamples.pptx
7.3_Nonlinear Programming-LagrangeExamples.pptx7.3_Nonlinear Programming-LagrangeExamples.pptx
7.3_Nonlinear Programming-LagrangeExamples.pptxethannguyen1618
 
Simplex method
Simplex methodSimplex method
Simplex methodtatteya
 
An Introduction to Linear Programming
An Introduction to Linear ProgrammingAn Introduction to Linear Programming
An Introduction to Linear ProgrammingMinh-Tri Pham
 
Mathematical linear programming notes
Mathematical linear programming notesMathematical linear programming notes
Mathematical linear programming notesTarig Gibreel
 
Two Phase Method- Linear Programming
Two Phase Method- Linear ProgrammingTwo Phase Method- Linear Programming
Two Phase Method- Linear ProgrammingManas Lad
 
Limits by Factoring
Limits by FactoringLimits by Factoring
Limits by FactoringPablo Antuna
 
Day 3 of Free Intuitive Calculus Course: Limits by Factoring
Day 3 of Free Intuitive Calculus Course: Limits by FactoringDay 3 of Free Intuitive Calculus Course: Limits by Factoring
Day 3 of Free Intuitive Calculus Course: Limits by FactoringPablo Antuna
 
OR presentation simplex.pptx
OR presentation simplex.pptxOR presentation simplex.pptx
OR presentation simplex.pptxpranalpatilPranal
 
Simplex method: Slack, Surplus & Artificial variable
Simplex method:  Slack, Surplus & Artificial variableSimplex method:  Slack, Surplus & Artificial variable
Simplex method: Slack, Surplus & Artificial variableDevyaneeDevyanee2007
 
Trig substitution
Trig substitutionTrig substitution
Trig substitutiondynx24
 

Similar a Duality (20)

OR Linear Programming
OR Linear ProgrammingOR Linear Programming
OR Linear Programming
 
Big m method
Big   m methodBig   m method
Big m method
 
simplex method-maths 4 mumbai university
simplex method-maths 4 mumbai universitysimplex method-maths 4 mumbai university
simplex method-maths 4 mumbai university
 
Simplex two phase
Simplex two phaseSimplex two phase
Simplex two phase
 
Dual formulation example
Dual formulation exampleDual formulation example
Dual formulation example
 
Chapter four
Chapter fourChapter four
Chapter four
 
Operations research 1_the_two-phase_simp
Operations research 1_the_two-phase_simpOperations research 1_the_two-phase_simp
Operations research 1_the_two-phase_simp
 
Simplex Method
Simplex MethodSimplex Method
Simplex Method
 
7.3_Nonlinear Programming-LagrangeExamples.pptx
7.3_Nonlinear Programming-LagrangeExamples.pptx7.3_Nonlinear Programming-LagrangeExamples.pptx
7.3_Nonlinear Programming-LagrangeExamples.pptx
 
Simplex method
Simplex methodSimplex method
Simplex method
 
An Introduction to Linear Programming
An Introduction to Linear ProgrammingAn Introduction to Linear Programming
An Introduction to Linear Programming
 
MFCS2-Module1.pptx
MFCS2-Module1.pptxMFCS2-Module1.pptx
MFCS2-Module1.pptx
 
Mathematical linear programming notes
Mathematical linear programming notesMathematical linear programming notes
Mathematical linear programming notes
 
Two Phase Method- Linear Programming
Two Phase Method- Linear ProgrammingTwo Phase Method- Linear Programming
Two Phase Method- Linear Programming
 
Limits by Factoring
Limits by FactoringLimits by Factoring
Limits by Factoring
 
Day 3 of Free Intuitive Calculus Course: Limits by Factoring
Day 3 of Free Intuitive Calculus Course: Limits by FactoringDay 3 of Free Intuitive Calculus Course: Limits by Factoring
Day 3 of Free Intuitive Calculus Course: Limits by Factoring
 
OR presentation simplex.pptx
OR presentation simplex.pptxOR presentation simplex.pptx
OR presentation simplex.pptx
 
Simplex method: Slack, Surplus & Artificial variable
Simplex method:  Slack, Surplus & Artificial variableSimplex method:  Slack, Surplus & Artificial variable
Simplex method: Slack, Surplus & Artificial variable
 
Operations Research - The Two Phase Method
Operations Research - The Two Phase MethodOperations Research - The Two Phase Method
Operations Research - The Two Phase Method
 
Trig substitution
Trig substitutionTrig substitution
Trig substitution
 

Más de Sachin MK

Testing terms & definitions
Testing terms & definitionsTesting terms & definitions
Testing terms & definitionsSachin MK
 
St & internationalization
St & internationalizationSt & internationalization
St & internationalizationSachin MK
 
Software testing techniques
Software testing techniquesSoftware testing techniques
Software testing techniquesSachin MK
 
Rapid software testing
Rapid software testingRapid software testing
Rapid software testingSachin MK
 
Model based software testing
Model based software testingModel based software testing
Model based software testingSachin MK
 
Growth of software testing
Growth of software testingGrowth of software testing
Growth of software testingSachin MK
 
Software testing primer nick jenkins
Software testing primer nick jenkinsSoftware testing primer nick jenkins
Software testing primer nick jenkinsSachin MK
 
Testing quotes neww
Testing quotes newwTesting quotes neww
Testing quotes newwSachin MK
 
Email marketing ver 1.001 [autosaved]
Email marketing ver 1.001 [autosaved]Email marketing ver 1.001 [autosaved]
Email marketing ver 1.001 [autosaved]Sachin MK
 
Database Management Systems Tutorial
Database Management Systems TutorialDatabase Management Systems Tutorial
Database Management Systems TutorialSachin MK
 
Sql Commands
Sql CommandsSql Commands
Sql CommandsSachin MK
 
Inroduction Of Or
Inroduction Of OrInroduction Of Or
Inroduction Of OrSachin MK
 
Grievance Process
Grievance ProcessGrievance Process
Grievance ProcessSachin MK
 
Factors Influencing Employee Remuneration
Factors Influencing Employee RemunerationFactors Influencing Employee Remuneration
Factors Influencing Employee RemunerationSachin MK
 
Compensation
CompensationCompensation
CompensationSachin MK
 
Sources Financing Nsb
Sources  Financing NsbSources  Financing Nsb
Sources Financing NsbSachin MK
 

Más de Sachin MK (20)

Testing terms & definitions
Testing terms & definitionsTesting terms & definitions
Testing terms & definitions
 
St & internationalization
St & internationalizationSt & internationalization
St & internationalization
 
Software testing techniques
Software testing techniquesSoftware testing techniques
Software testing techniques
 
Rapid software testing
Rapid software testingRapid software testing
Rapid software testing
 
Model based software testing
Model based software testingModel based software testing
Model based software testing
 
Growth of software testing
Growth of software testingGrowth of software testing
Growth of software testing
 
Software testing primer nick jenkins
Software testing primer nick jenkinsSoftware testing primer nick jenkins
Software testing primer nick jenkins
 
Testing quotes neww
Testing quotes newwTesting quotes neww
Testing quotes neww
 
Email marketing ver 1.001 [autosaved]
Email marketing ver 1.001 [autosaved]Email marketing ver 1.001 [autosaved]
Email marketing ver 1.001 [autosaved]
 
Mis
MisMis
Mis
 
Database Management Systems Tutorial
Database Management Systems TutorialDatabase Management Systems Tutorial
Database Management Systems Tutorial
 
Html Tutor
Html TutorHtml Tutor
Html Tutor
 
Sql Commands
Sql CommandsSql Commands
Sql Commands
 
Inroduction Of Or
Inroduction Of OrInroduction Of Or
Inroduction Of Or
 
Grievance Process
Grievance ProcessGrievance Process
Grievance Process
 
Factors Influencing Employee Remuneration
Factors Influencing Employee RemunerationFactors Influencing Employee Remuneration
Factors Influencing Employee Remuneration
 
Fm
FmFm
Fm
 
Compensation
CompensationCompensation
Compensation
 
Sources Financing Nsb
Sources  Financing NsbSources  Financing Nsb
Sources Financing Nsb
 
Projections
ProjectionsProjections
Projections
 

Último

Certified Kala Jadu, Black magic expert in Faisalabad and Kala ilam specialis...
Certified Kala Jadu, Black magic expert in Faisalabad and Kala ilam specialis...Certified Kala Jadu, Black magic expert in Faisalabad and Kala ilam specialis...
Certified Kala Jadu, Black magic expert in Faisalabad and Kala ilam specialis...baharayali
 
Study of the Psalms Chapter 1 verse 3 - wanderean
Study of the Psalms Chapter 1 verse 3 - wandereanStudy of the Psalms Chapter 1 verse 3 - wanderean
Study of the Psalms Chapter 1 verse 3 - wandereanmaricelcanoynuay
 
Famous Kala Jadu, Black magic expert in UK and Kala ilam expert in Saudi Arab...
Famous Kala Jadu, Black magic expert in UK and Kala ilam expert in Saudi Arab...Famous Kala Jadu, Black magic expert in UK and Kala ilam expert in Saudi Arab...
Famous Kala Jadu, Black magic expert in UK and Kala ilam expert in Saudi Arab...baharayali
 
Exploring the Meaning of Jesus’ Ascension
Exploring the Meaning of Jesus’ AscensionExploring the Meaning of Jesus’ Ascension
Exploring the Meaning of Jesus’ AscensionbluetroyvictorVinay
 
Jude: The Acts of the Apostate: High Handed Sins (vv.5-7).pptx
Jude: The Acts of the Apostate: High Handed Sins (vv.5-7).pptxJude: The Acts of the Apostate: High Handed Sins (vv.5-7).pptx
Jude: The Acts of the Apostate: High Handed Sins (vv.5-7).pptxStephen Palm
 
Jude: The Acts of the Apostates (Jude vv.1-4).pptx
Jude: The Acts of the Apostates (Jude vv.1-4).pptxJude: The Acts of the Apostates (Jude vv.1-4).pptx
Jude: The Acts of the Apostates (Jude vv.1-4).pptxStephen Palm
 
Human Design Gates Cheat Sheet | Kabastro.com
Human Design Gates Cheat Sheet | Kabastro.comHuman Design Gates Cheat Sheet | Kabastro.com
Human Design Gates Cheat Sheet | Kabastro.comKabastro
 
A Spiritual Guide To Truth v10.pdf xxxxxxx
A Spiritual Guide To Truth v10.pdf xxxxxxxA Spiritual Guide To Truth v10.pdf xxxxxxx
A Spiritual Guide To Truth v10.pdf xxxxxxxssuser83613b
 
Lesson 6 - Our Spiritual Weapons - SBS.pptx
Lesson 6 - Our Spiritual Weapons - SBS.pptxLesson 6 - Our Spiritual Weapons - SBS.pptx
Lesson 6 - Our Spiritual Weapons - SBS.pptxCelso Napoleon
 
About Kabala (English) | Kabastro.com | Kabala.vn
About Kabala (English) | Kabastro.com | Kabala.vnAbout Kabala (English) | Kabastro.com | Kabala.vn
About Kabala (English) | Kabastro.com | Kabala.vnKabastro
 
Peaceful Meditation | Peaceful Way by Kabastro
Peaceful Meditation | Peaceful Way by KabastroPeaceful Meditation | Peaceful Way by Kabastro
Peaceful Meditation | Peaceful Way by KabastroKabastro
 
Certified Amil baba, Black magic specialist in Russia and Kala jadu expert in...
Certified Amil baba, Black magic specialist in Russia and Kala jadu expert in...Certified Amil baba, Black magic specialist in Russia and Kala jadu expert in...
Certified Amil baba, Black magic specialist in Russia and Kala jadu expert in...makhmalhalaaay
 
Codex Singularity: Search for the Prisca Sapientia
Codex Singularity: Search for the Prisca SapientiaCodex Singularity: Search for the Prisca Sapientia
Codex Singularity: Search for the Prisca Sapientiajfrenchau
 
Famous kala ilam, Bangali Amil baba in UAE and Kala jadu expert in Saudi Arab...
Famous kala ilam, Bangali Amil baba in UAE and Kala jadu expert in Saudi Arab...Famous kala ilam, Bangali Amil baba in UAE and Kala jadu expert in Saudi Arab...
Famous kala ilam, Bangali Amil baba in UAE and Kala jadu expert in Saudi Arab...baharayali
 
Deerfoot Church of Christ Bulletin 5 12 24
Deerfoot Church of Christ Bulletin 5 12 24Deerfoot Church of Christ Bulletin 5 12 24
Deerfoot Church of Christ Bulletin 5 12 24deerfootcoc
 
From The Heart v8.pdf xxxxxxxxxxxxxxxxxxx
From The Heart v8.pdf xxxxxxxxxxxxxxxxxxxFrom The Heart v8.pdf xxxxxxxxxxxxxxxxxxx
From The Heart v8.pdf xxxxxxxxxxxxxxxxxxxssuser83613b
 
Real Kala Jadu, Black magic specialist in Lahore and Kala ilam expert in kara...
Real Kala Jadu, Black magic specialist in Lahore and Kala ilam expert in kara...Real Kala Jadu, Black magic specialist in Lahore and Kala ilam expert in kara...
Real Kala Jadu, Black magic specialist in Lahore and Kala ilam expert in kara...baharayali
 

Último (20)

Certified Kala Jadu, Black magic expert in Faisalabad and Kala ilam specialis...
Certified Kala Jadu, Black magic expert in Faisalabad and Kala ilam specialis...Certified Kala Jadu, Black magic expert in Faisalabad and Kala ilam specialis...
Certified Kala Jadu, Black magic expert in Faisalabad and Kala ilam specialis...
 
Study of the Psalms Chapter 1 verse 3 - wanderean
Study of the Psalms Chapter 1 verse 3 - wandereanStudy of the Psalms Chapter 1 verse 3 - wanderean
Study of the Psalms Chapter 1 verse 3 - wanderean
 
Famous Kala Jadu, Black magic expert in UK and Kala ilam expert in Saudi Arab...
Famous Kala Jadu, Black magic expert in UK and Kala ilam expert in Saudi Arab...Famous Kala Jadu, Black magic expert in UK and Kala ilam expert in Saudi Arab...
Famous Kala Jadu, Black magic expert in UK and Kala ilam expert in Saudi Arab...
 
Exploring the Meaning of Jesus’ Ascension
Exploring the Meaning of Jesus’ AscensionExploring the Meaning of Jesus’ Ascension
Exploring the Meaning of Jesus’ Ascension
 
Jude: The Acts of the Apostate: High Handed Sins (vv.5-7).pptx
Jude: The Acts of the Apostate: High Handed Sins (vv.5-7).pptxJude: The Acts of the Apostate: High Handed Sins (vv.5-7).pptx
Jude: The Acts of the Apostate: High Handed Sins (vv.5-7).pptx
 
Jude: The Acts of the Apostates (Jude vv.1-4).pptx
Jude: The Acts of the Apostates (Jude vv.1-4).pptxJude: The Acts of the Apostates (Jude vv.1-4).pptx
Jude: The Acts of the Apostates (Jude vv.1-4).pptx
 
Human Design Gates Cheat Sheet | Kabastro.com
Human Design Gates Cheat Sheet | Kabastro.comHuman Design Gates Cheat Sheet | Kabastro.com
Human Design Gates Cheat Sheet | Kabastro.com
 
St. Louise de Marillac and Galley Prisoners
St. Louise de Marillac and Galley PrisonersSt. Louise de Marillac and Galley Prisoners
St. Louise de Marillac and Galley Prisoners
 
St. Louise de Marillac and Care of the Sick Poor
St. Louise de Marillac and Care of the Sick PoorSt. Louise de Marillac and Care of the Sick Poor
St. Louise de Marillac and Care of the Sick Poor
 
A Spiritual Guide To Truth v10.pdf xxxxxxx
A Spiritual Guide To Truth v10.pdf xxxxxxxA Spiritual Guide To Truth v10.pdf xxxxxxx
A Spiritual Guide To Truth v10.pdf xxxxxxx
 
Lesson 6 - Our Spiritual Weapons - SBS.pptx
Lesson 6 - Our Spiritual Weapons - SBS.pptxLesson 6 - Our Spiritual Weapons - SBS.pptx
Lesson 6 - Our Spiritual Weapons - SBS.pptx
 
About Kabala (English) | Kabastro.com | Kabala.vn
About Kabala (English) | Kabastro.com | Kabala.vnAbout Kabala (English) | Kabastro.com | Kabala.vn
About Kabala (English) | Kabastro.com | Kabala.vn
 
Peaceful Meditation | Peaceful Way by Kabastro
Peaceful Meditation | Peaceful Way by KabastroPeaceful Meditation | Peaceful Way by Kabastro
Peaceful Meditation | Peaceful Way by Kabastro
 
Certified Amil baba, Black magic specialist in Russia and Kala jadu expert in...
Certified Amil baba, Black magic specialist in Russia and Kala jadu expert in...Certified Amil baba, Black magic specialist in Russia and Kala jadu expert in...
Certified Amil baba, Black magic specialist in Russia and Kala jadu expert in...
 
Codex Singularity: Search for the Prisca Sapientia
Codex Singularity: Search for the Prisca SapientiaCodex Singularity: Search for the Prisca Sapientia
Codex Singularity: Search for the Prisca Sapientia
 
Famous kala ilam, Bangali Amil baba in UAE and Kala jadu expert in Saudi Arab...
Famous kala ilam, Bangali Amil baba in UAE and Kala jadu expert in Saudi Arab...Famous kala ilam, Bangali Amil baba in UAE and Kala jadu expert in Saudi Arab...
Famous kala ilam, Bangali Amil baba in UAE and Kala jadu expert in Saudi Arab...
 
famous No 1 astrologer / Best No 1 Amil baba in UK, Australia, Germany, USA, ...
famous No 1 astrologer / Best No 1 Amil baba in UK, Australia, Germany, USA, ...famous No 1 astrologer / Best No 1 Amil baba in UK, Australia, Germany, USA, ...
famous No 1 astrologer / Best No 1 Amil baba in UK, Australia, Germany, USA, ...
 
Deerfoot Church of Christ Bulletin 5 12 24
Deerfoot Church of Christ Bulletin 5 12 24Deerfoot Church of Christ Bulletin 5 12 24
Deerfoot Church of Christ Bulletin 5 12 24
 
From The Heart v8.pdf xxxxxxxxxxxxxxxxxxx
From The Heart v8.pdf xxxxxxxxxxxxxxxxxxxFrom The Heart v8.pdf xxxxxxxxxxxxxxxxxxx
From The Heart v8.pdf xxxxxxxxxxxxxxxxxxx
 
Real Kala Jadu, Black magic specialist in Lahore and Kala ilam expert in kara...
Real Kala Jadu, Black magic specialist in Lahore and Kala ilam expert in kara...Real Kala Jadu, Black magic specialist in Lahore and Kala ilam expert in kara...
Real Kala Jadu, Black magic specialist in Lahore and Kala ilam expert in kara...
 

Duality

  • 2.
  • 3.
  • 4. Dual Problem Primal LP : Max z = c 1 x 1 + c 2 x 2 + ... + c n x n subject to: a 11 x 1 + a 12 x 2 + ... + a 1n x n ≤ b 1 a 21 x 1 + a 22 x 2 + ... + a 2n x n ≤ b 2 : a m1 x 1 + a m2 x 2 + ... + a mn x n ≤ b m x 1 ≥ 0, x 2 ≥ 0,…….x j ≥ 0,……., x n ≥ 0. Associated Dual LP : Min. z = b 1 y 1 + b 2 y 2 + ... + b m y m subject to: a 11 y 1 + a 21 y 2 + ... + a m1 y m ≥ c 1 a 12 y 1 + a 22 y 2 + ... + a m2 y m ≥ c 2 : a 1n y 1 + a 2n y 2 + ... + a mn y m ≥ c n y 1 ≥ 0, y 2 ≥ 0,…….y j ≥ 0,……., y m ≥ 0.
  • 5. Example Primal Max. Z = 3x 1 +5x 2 Subject to constraints: x 1 < 4 y 1 2x 2 < 12 y 2 3x 1 +2x 2 < 18 y 3 x 1 , x 2 > 0 The Primal has: 2 variables and 3 constraints. So the Dual has: 3 variables and 2 constraints Dual Min. Z’ = 4y 1 +12y 2 +18y 3 Subject to constraints: y 1 + 3y 3 > 3 2y 2 +2y 3 > 5 y 1 , y 2 , y 3 > 0 We define one dual variable for each primal constraint.
  • 6. Example Primal Min.. Z = 10x 1 +15x 2 Subject to constraints: 5x 1 + 7x 2 > 80 6x 1 + 11x 2 > 100 x 1 , x 2 > 0
  • 7. Solution Dual Max.. Z’ = 80y 1 +100y 2 Subject to constraints: 5y 1 + 6y 2 < 10 7y 1 + 11y 2 < 15 y 1 , y 2 > 0
  • 8. Example Primal Max. Z = 12x 1 + 4x 2 Subject to constraints: 4x 1 + 7x 2 < 56 2x 1 + 5x 2 > 20 5x 1 + 4x 2 = 40 x 1 , x 2 > 0
  • 9.
  • 10. Cont… The primal problem can now take the following standard form: Max. Z = 12x 1 + 4x 2 Subject to constraints: 4x 1 + 7x 2 < 56 -2x 1 - 5x 2 < -20 5x 1 + 4x 2 < 40 -5x 1 - 4x 2 < -40 x 1 , x 2 > 0
  • 11. Cont… Min. Z’ = 56y 1 -20y 2 + 40y 3 – 40y 4 Subject to constraints: 4y 1 – 2y 2 + 5y 3 – 5y 4 > 12 7y 1 - 5y 2 + 4y 3 – 4y 4 > 4 y 1 , y 2 , y 3 , y 4 > 0 The dual of this problem can now be obtained as follows:
  • 12. Example Primal Min.. Z = 2x 2 + 5x 3 Subject to constraints: x 1 + x 2 > 2 2x 1 + x 2 +6x 3 < 6 x 1 - x 2 +3x 3 = 4 x 1 , x 2 , x 3 > 0
  • 13. Solution Primal in standard form : Max.. Z = -2x 2 - 5x 3 Subject to constraints: -x 1 - x 2 < -2 2x 1 + x 2 +6x 3 < 6 x 1 - x 2 +3x 3 < 4 - x 1 + x 2 - 3x 3 < -4 x 1 , x 2 , x 3 > 0
  • 14. Cont… Dual Min. Z’ = -2y 1 + 6y 2 + 4y 3 – 4y 4 Subject to constraints: -y 1 + 2y 2 + y 3 – y 4 > 0 -y 1 + y 2 - y 3 + y 4 > -2 6y 2 + 3y 3 - 3y 4 > -5 y 1 , y 2 , y 3 , y 4 > 0
  • 16. Introduction Suppose a “basic solution” satisfies the optimality condition but not feasible, then we apply dual simplex method. In regular Simplex method, we start with a Basic Feasible solution (which is not optimal) and move towards optimality always retaining feasibility. In the dual simplex method, the exact opposite occurs. We start with a “optimal” solution (which is not feasible) and move towards feasibility always retaining optimality condition.The algorithm ends once we obtain feasibility.
  • 17.
  • 18. Example Min. Z = 3x 1 + 2x 2 Subject to constraints: 3x 1 + x 2 > 3 4x 1 + 3x 2 > 6 x 1 + x 2 < 3 x 1 , x 2 > 0
  • 19. Cont… Step I: The first two inequalities are multiplied by –1 to convert them to < constraints and convert the objective function into maximization function. Max. Z’ = -3x 1 - 2x 2 where Z’= -Z Subject to constraints: -3x 1 - x 2 < -3 -4x 1 - 3x 2 < -6 x 1 + x 2 < 3 x 1 , x 2 > 0
  • 20. Cont… Let S 1 , S 2 , S 3 be three slack variables Model can rewritten as: Z’ + 3x 1 + 2x 2 = 0 -3x 1 - x 2 +S 1 = -3 -4x 1 - 3x 2 +S 2 = -6 x 1 + x 2 +S 3 = 3 Initial BS is : x 1 = 0, x 2 = 0, S 1 = -3, S 2 = -6, S 3 = 3 and Z=0.
  • 21.
  • 22. Cont… Therefore, S 1 is the departing variable and x 1 is the entering variable. - 2 - - 1/5 - Ratio 1 1 1/3 0 0 -1/3 0 S 3 2 0 -1/3 0 1 4/3 0 x 2 -1 0 -1/3 1 0 -5/3 0 S 1 4 0 2/3 0 0 1/3 1 Z Sol. S 3 S 2 S 1 x 2 x 1 Z Coefficients of: Basic Variable
  • 23. Cont… Optimal Solution is : x 1 = 3/5, x 2 = 6/5, Z= 21/5 6/5 1 2/5 -1/5 0 0 0 S 3 6/5 0 -3/5 4/5 1 0 0 x 2 3/5 0 1/5 -3/5 0 1 0 x 1 21/5 0 3/5 1/5 0 0 1 Z Sol. S 3 S 2 S 1 x 2 x 1 Z Coefficients of: Basic Variable
  • 24. Example Max. Z = -x 1 - x 2 Subject to constraints: x 1 + x 2 < 8 x 2 > 3 -x 1 + x 2 < 2 x 1 , x 2 > 0
  • 25. Cont… Let S 1 , S 2 , S 3 be three slack variables Model can rewritten as: Z + x 1 + x 2 = 0 x 1 + x 2 + S 1 = 8 -x 2 + S 2 = -3 -x 1 + x 2 + S 3 = 2 x 1 , x 2 > 0 Initial BS is : x 1 = 0, x 2 = 0, S 1 = 8, S 2 = -3, S 3 = 2 and Z=0.
  • 26. Cont… Therefore, S 2 is the departing variable and x 2 is the entering variable. - - - 1 - - Ratio 2 1 0 0 1 -1 0 S 3 -3 0 1 0 -1 0 0 S 2 8 0 0 1 1 1 0 S 1 0 0 0 0 1 1 1 Z Sol. S 3 S 2 S 1 x 2 x 1 Z Coefficients of: Basic Variable
  • 27. Cont… Therefore, S 3 is the departing variable and x 1 is the entering variable. - - - - 1 - Ratio -1 1 1 0 0 -1 0 S 3 3 0 -1 0 1 0 0 x 2 5 0 1 1 0 1 0 S 1 -3 0 1 0 0 1 1 Z Sol. S 3 S 2 S 1 x 2 x 1 Z Coefficients of: Basic Variable
  • 28. Cont… Optimal Solution is : x 1 = 1, x 2 = 3, Z= -4 1 -1 -1 0 0 1 0 x 1 3 0 -1 0 1 0 0 x 2 4 0 2 1 0 0 0 S 1 -4 1 2 0 0 0 1 Z Sol. S 3 S 2 S 1 x 2 x 1 Z Coefficients of: Basic Variable