1 Lecture 12 Chapter 7 Duality and Sensitivity in Linear Programming 7.1 Objective values usually can be interpreted as either minimize cost or maximize.

Slides:



Advertisements
Similar presentations
Tuesday, March 5 Duality – The art of obtaining bounds – weak and strong duality Handouts: Lecture Notes.
Advertisements

February 14, 2002 Putting Linear Programs into standard form
Summary of complementary slackness: 1. If x i ≠ 0, i= 1, 2, …, n the ith dual equation is tight. 2. If equation i of the primal is not tight, y i =0. 1.
Geometry and Theory of LP Standard (Inequality) Primal Problem: Dual Problem:
IEOR 4004 Midterm review (Part II) March 12, 2014.
Standard Minimization Problems with the Dual
EMGT 501 HW #1 Solutions Chapter 2 - SELF TEST 18
Understanding optimum solution
Introduction to Sensitivity Analysis Graphical Sensitivity Analysis
Notes 4IE 3121 Why Sensitivity Analysis So far: find an optimium solution given certain constant parameters (costs, demand, etc) How well do we know these.
The Simplex Method and Linear Programming Duality Ashish Goel Department of Management Science and Engineering Stanford University Stanford, CA 94305,
SOLVING LINEAR PROGRAMS USING EXCEL Dr. Ron Lembke.
CSCI 3160 Design and Analysis of Algorithms Tutorial 6 Fei Chen.
ISM 206 Lecture 4 Duality and Sensitivity Analysis.
Q 2-31 Min 3A + 4B s.t. 1A + 3B ≧ 6 B = - 1/3A + 2 1A + 1B ≧ 4
1 Introduction to Linear and Integer Programming Lecture 9: Feb 14.
Duality Dual problem Duality Theorem Complementary Slackness
EMGT 501 HW # (b) (c) 6.1-4, Due Day: Sep. 21.
Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 1 of 99 Chapter 4 The Simplex Method.
Computational Methods for Management and Economics Carla Gomes
Linear Programming. Linear programming A technique that allows decision makers to solve maximization and minimization problems where there are certain.
ISM 206 Lecture 4 Duality and Sensitivity Analysis.
Problem Set # 4 Maximize f(x) = 3x1 + 2 x2 subject to x1 ≤ 4 x1 + 3 x2 ≤ 15 2x1 + x2 ≤ 10 Problem 1 Solve these problems using the simplex tableau. Maximize.
1 1 Slide LINEAR PROGRAMMING Introduction to Sensitivity Analysis Professor Ahmadi.
Chapter 4 The Simplex Method
MIT and James Orlin © Chapter 3. The simplex algorithm Putting Linear Programs into standard form Introduction to Simplex Algorithm.
Spreadsheet Modeling & Decision Analysis:
Kerimcan OzcanMNGT 379 Operations Research1 LP: Sensitivity Analysis and Interpretation of Solution Chapter 3.
Computational Methods for Management and Economics Carla Gomes
Introduction to Mathematical Programming OR/MA 504 Chapter 3.
Linear Programming - Standard Form
Special Conditions in LP Models (sambungan BAB 1)
Presentation: H. Sarper
Operations Research Assistant Professor Dr. Sana’a Wafa Al-Sayegh 2 nd Semester ITGD4207 University of Palestine.
Duality Theory 對偶理論.
Stevenson and Ozgur First Edition Introduction to Management Science with Spreadsheets McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies,
1 LINEAR PROGRAMMING Introduction to Sensitivity Analysis Professor Ahmadi.
1 Chapter 7 Linear Programming. 2 Linear Programming (LP) Problems Both objective function and constraints are linear. Solutions are highly structured.
The Simplex Method. Standard Linear Programming Problem Standard Maximization Problem 1. All variables are nonnegative. 2. All the constraints (the conditions)
Chapter 6 Linear Programming: The Simplex Method Section R Review.
Introduction to Operations Research
Chapter 7 Duality and Sensitivity in Linear Programming.
Department Of Industrial Engineering Duality And Sensitivity Analysis presented by: Taha Ben Omar Supervisor: Prof. Dr. Sahand Daneshvar.
Linear Programming: Sensitivity Analysis and Interpretation of Solution Pertemuan 5 Matakuliah: K0442-Metode Kuantitatif Tahun: 2009.
A model consisting of linear relationships representing a firm’s objective and resource constraints Linear Programming (LP) LP is a mathematical modeling.
1 The Dual in Linear Programming In LP the solution for the profit- maximizing combination of outputs automatically determines the input amounts that must.
Chapter 2 Introduction to Linear Programming n Linear Programming Problem n Problem Formulation n A Maximization Problem n Graphical Solution Procedure.
Professional software packages such as The WinQSB and LINDO provide the following LP information: Information about the objective function: –its optimal.
Duality Theory.
Linear Programming Revised Simplex Method, Duality of LP problems and Sensitivity analysis D Nagesh Kumar, IISc Optimization Methods: M3L5.
Advanced Operations Research Models Instructor: Dr. A. Seifi Teaching Assistant: Golbarg Kazemi 1.
 Minimization Problem  First Approach  Introduce the basis variable  To solve minimization problem we simple reverse the rule that is we select the.
1 THE REVISED SIMPLEX METHOD CONTENTS Linear Program in the Matrix Notation Basic Feasible Solution in Matrix Notation Revised Simplex Method in Matrix.
Hon Wai Leong, NUS (CS6234, Spring 2009) Page 1 Copyright © 2009 by Leong Hon Wai CS6234: Lecture 4  Linear Programming  LP and Simplex Algorithm [PS82]-Ch2.
OR Chapter 8. General LP Problems Converting other forms to general LP problem : min c’x  - max (-c)’x   = by adding a nonnegative slack variable.
CPSC 536N Sparse Approximations Winter 2013 Lecture 1 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAAAAAAAA.
Spreadsheet Modeling & Decision Analysis A Practical Introduction to Management Science 5 th edition Cliff T. Ragsdale.
Linear Programming Chapter 9. Interior Point Methods  Three major variants  Affine scaling algorithm - easy concept, good performance  Potential.
P RIMAL -D UAL LPP. T HE R EDDY M IKKS C OMPANY - PROBLEM Reddy Mikks company produces both interior and exterior paints from two raw materials, M 1 and.
Chapter 4 The Simplex Algorithm and Goal Programming
Chap 10. Sensitivity Analysis
Chapter 5 Sensitivity Analysis: An Applied Approach
Graphical Analysis – the Feasible Region
Chap 9. General LP problems: Duality and Infeasibility
The Simplex Method: Standard Minimization Problems
ENGM 631 Optimization.
Lecture 4 Part I Mohamed A. M. A..
Chapter 5. The Duality Theorem
Chapter-III Duality in LPP
Presentation transcript:

1 Lecture 12 Chapter 7 Duality and Sensitivity in Linear Programming 7.1 Objective values usually can be interpreted as either minimize cost or maximize benefit. 7.3 Page 301 < constraints usually restrict the supply of some commodity 7.4 Page 301 > constraints usually require satisfaction of a demand of something

2 Activities 7.4 Page 302 Decision variables usually imply the selection of the level of some activity. Max 13x 1 +24x 2 +5x 3 +50x 4 (1) s.t.x 1 +3x 2 > 89(2) -3x 3 -5x 4 < -60(3) 10x 1 +6x 2 +8x 3 +2x 4 < 608(4) x 1, x 2, x 3, x 4 > 0(5) Since (3) has RHS type constraint.

3 Activities Max 13x 1 +24x 2 +5x 3 +50x 4 (1) s.t.x 1 +3x 2 > 89(2) 3x 3 +5x 4 > 60(6) 10x 1 +6x 2 +8x 3 +2x 4 < 608(4) x 1, x 2, x 3, x 4 > 0(5) 1.There are 4 activities. 2.How much do we undertake? (x 1, x 2, x 3, x 4 ) 3.There are demands for 2 commodities – const (2) & (6) 4.There is a restriction on the supply of some raw material – const (4)

4 Relaxation What would we do to relax constraint (2) a little? x 1 +3x 2 > 89(2) Goes to x 1 +3x 2 > 80 What would we do to relax constraint (4) a little? 10x 1 +6x 2 +8x 3 +2x 4 < 608(4) Goes to 10x 1 +6x 2 +8x 3 +2x 4 < 610

5 Relaxed Constraints If we relax a constraint, then the optimal objective value either remains the same or improves!!!!!!!!!!! If we are minimizing, then optimal cost either remains the same or is reduced. Why?

6 Tightening And Relaxing Tightening constraints reduces the feasible region. Relaxing constraints increases the feasible region. Relaxing Tightening

7 Relaxed & Tightened Max ______ OriginalRelaxedTightened Obj ValueObj Value Obj Value = A= B > A= C < A

8 Big Model On Page 305 Min ____ With x 1 < 75 Solve for various RHS using x 1 < RHS 75 slope = - infinity slope = slope = slope = 0 Opt Obj value

9 Big Model On Page 305 Min _____ With 0.12x x x 6 > 10 (RHS) Solve for various RHS slope=0 slope=8.75 slope=36.73 slope=50.11 slope=infinity

10 Summary Const TypeRHS Increase RHS Decrease Supply (<)RelaxTighten Demand (>)TightenRelax 7.12 Page 308 Adding constraints tightens. Dropping constraints relaxes

11 Adding & Dropping Columns 7.17 page 315 Adding columns to a min problem results in an optimal value < the value before the addition Dropping columns of a min problem results in an optimal objective > the value before the drop.

12 The Dual Problem – Page 325 PrimalDual Max cxMin bv s.t.Ax c x > 0v > 0 I call this form of the primal and dual the standard form.

13 Example 1 PrimalDual Max 5x 1 + 6x 2 Min 3v 1 + 7v 2 s.t.x 1 + 2x 2 5(x 1 ) -3x 1 + 4x 2 6 (x 2 ) x 1, x 2 > 0 v 1, v 2 > 0 In the primal there is a dual variable for each constraint. In the dual, there is a primal variable for each constraint.

14 Example 2 Suppose that you are given the primal in the following form and asked to give the dual: Min 3w 1 + 7w 2 s. t. w 1 – 3w 2 > 5 2w 1 + 4w 2 > 6 w 1, w 2 > 0 The 1 st step is to place this problem in standard form.

15 Primal In Standard Form Max –3w 1 –7w 2 s.t. -w 1 + 3w 2 < -5 (x 1 ) -2w 1 – 4w 2 < -6 (x 2 ) w 1, w 2 > 0 Dual is Min –5x 1 – 6x 2 Max 5x 1 + 6x 2 s.t.-x 1 – 2x 2 > -3 ors.t. x 1 + 2x 2 < 3 3x 1 – 4x 2 > -7-3x 1 + 4x 2 < 7 x 1, x 2 > 0x 1, x 2 > 0 This is standard form with dual var x 1 & x 2

16 Dual Of Dual Is Primal Note from the previous slide that the dual of the dual problem is the primal. How do you find the dual of any problem? Use Table 7.1 on page 327.

17 Example 3 Exercise 7-12 Part A P 366 Min 17x x 2 + 0x 3 + 1x 4 s.t.2x 1 + 3x 2 + 2x 3 + 3x 4 < 40 4x 1 + 4x 2 + 0x 3 + 1x 4 > 10 0x 1 + 0x 2 – 3x 3 – x 4 = 0 x 1, …, x 4 > 0 Max 40v v 2 s.t. 2v 1 + 4v 2 < 17 3v 1 + 4v 2 < 29 2v 1 - 3v 3 < 0 3v 1 + v 2 - v 3 < 1 v 1 0, v 3 unrestricted

18 The Primal var x1 >= 0; var x2 >= 0; var x3 >= 0; var x4 >= 0; minimize OBJ: 17*x1+29*x2+x4; subject to C1: 2*x1+3*x2+2*x3+3*x4 <= 40; subject to C2: 4*x1 + 4*x2 + x4 >= 10; subject to C3: -3*x3 - x4 = 0; solve;

19 The Dual var v1 = 0; var v3; maximize OBJ: 40*v1 + 10*v2; subject to C1: 2*v1 + 4*v2 <= 17; subject to C2: 3*v1 + 4*v2 <= 29; subject to C3: 2*v1 - 3*v3 <= 0; subject to C4: 3*v1 + v2 - v3 <= 1; solve;

20 The Solutions AMPL Version Win32 ampl: model a:p.txt; CPLEX 8.0.0: optimal solution; objective dual simplex iterations (0 in phase I) ampl: reset; ampl: model a:d.txt; CPLEX 8.0.0: optimal solution; objective dual simplex iterations (1 in phase I) ampl:

21 What do the dual variables mean? 7.20 Page 316 The dual variables (1 per constraint) give the change in the objective value per unit change in the RHS. PrimalDual Variable 0.3x x 2 < 2v 1 = 10 Implies that the estimated change in the objective value per unit increase in the 2 is 10. That is one unit (2 to 3) is expected to improve the objective function by 10.

22 This Is An Estimate Only 2 3 slope = Can not be achieved due to slope change

23 Optimal Objective Values Match Primal{max cx: Ax 0} Dual{min bv: vA > c, v > 0} Let x * solve the primal and v * solve the dual. Then cx * = bv *.

24 Example 4 Max x 1 + 2x 2 s. t. 2x 1 + x 2 < 5 x 1 + 3x 2 > 5 x 1, x 2 > 0 Opt = (0,5) obj value = 10

25 Example 4 Dual Max x 1 + 2x 2 min 5v 1 – 5v 2 s. t. 2x 1 + x 2 1 -x 1 - 3x 2 2 x 1, x 2 > 0v 1, v 2 > 0 Opt = (2,0) Obj = 10

26 Complementary Slackness 7.26 Primal ConstraintDual Variable ax < b(v) Or ax + s = b(v) Complementary Slackness Says (s)(v) = If s > 0, then v = 0. If v > 0, then s = 0. Either the constraint is active or v = 0.

On Page 323 Dual ConstraintPrimal Variable va > c(x) Or va – s = c(x) Complementary Slackness Says (s)(x) = 0

28 Table 7.1 – Primal max cx PrimalDual ax > bv < 0 ax 0 ax = bv unrestricted x j > 0va j > c j x j < 0va j < c j x j unrestrictedva j = c j

29 The Dual & The Primal 7.30 Page 328 The dual of the dual is the primal Primal min{cx:_______} Dual max{vb: ______} Let X be feasible for the Primal Let V be feasible for the Dual Then cX > Vb

30 The Dual & The Primal 7.32 If either the Primal or Dual has an optimal solution, then both do and the objective functions are the same at optimality! optimal cx * = v * b Primal min{cx:___} Dual max{vb:___}

31 The Dual & The Primal 7.33 Let x * = B -1 b be an optimum for the Primal. Then v * = c B B -1 is an optimum for the Dual. Solving either the Primal or the Dual produces an optimum for the other problem!