Part 1. The Review of Linear Programming

Similar documents
Part 1. The Review of Linear Programming Introduction

Part 1. The Review of Linear Programming

Review Solutions, Exam 2, Operations Research

Understanding the Simplex algorithm. Standard Optimization Problems.

Introduction to Mathematical Programming IE406. Lecture 10. Dr. Ted Ralphs

The use of shadow price is an example of sensitivity analysis. Duality theory can be applied to do other kind of sensitivity analysis:

OPERATIONS RESEARCH. Michał Kulej. Business Information Systems

F 1 F 2 Daily Requirement Cost N N N

4.6 Linear Programming duality

Slack Variable. Max Z= 3x 1 + 4x 2 + 5X 3. Subject to: X 1 + X 2 + X x 1 + 4x 2 + X X 1 + X 2 + 4X 3 10 X 1 0, X 2 0, X 3 0

Sensitivity Analysis and Duality in LP

Chapter 1 Linear Programming. Paragraph 5 Duality

Farkas Lemma, Dual Simplex and Sensitivity Analysis

Math Models of OR: Some Definitions

4. Duality and Sensitivity

Standard Form An LP is in standard form when: All variables are non-negativenegative All constraints are equalities Putting an LP formulation into sta

Chap6 Duality Theory and Sensitivity Analysis

Note 3: LP Duality. If the primal problem (P) in the canonical form is min Z = n (1) then the dual problem (D) in the canonical form is max W = m (2)

The Dual Simplex Algorithm

END3033 Operations Research I Sensitivity Analysis & Duality. to accompany Operations Research: Applications and Algorithms Fatih Cavdur

Math Models of OR: Sensitivity Analysis

Lecture 11: Post-Optimal Analysis. September 23, 2009

Sensitivity Analysis and Duality

1 Review Session. 1.1 Lecture 2

Summary of the simplex method

Sensitivity Analysis

II. Analysis of Linear Programming Solutions

"SYMMETRIC" PRIMAL-DUAL PAIR

Network Flows. 7. Multicommodity Flows Problems. Fall 2010 Instructor: Dr. Masoud Yaghini

21. Solve the LP given in Exercise 19 using the big-m method discussed in Exercise 20.

Introduction to Mathematical Programming

March 13, Duality 3

Worked Examples for Chapter 5

A Review of Linear Programming

Duality Theory, Optimality Conditions

(P ) Minimize 4x 1 + 6x 2 + 5x 3 s.t. 2x 1 3x 3 3 3x 2 2x 3 6

Simplex Algorithm Using Canonical Tableaus

Lecture 10: Linear programming. duality. and. The dual of the LP in standard form. maximize w = b T y (D) subject to A T y c, minimize z = c T x (P)

MVE165/MMG631 Linear and integer optimization with applications Lecture 5 Linear programming duality and sensitivity analysis

Yinyu Ye, MS&E, Stanford MS&E310 Lecture Note #06. The Simplex Method

Introduction to Mathematical Programming IE406. Lecture 13. Dr. Ted Ralphs

Systems Analysis in Construction

The Simplex Algorithm


Linear Programming Duality

Lesson 27 Linear Programming; The Simplex Method

1. Algebraic and geometric treatments Consider an LP problem in the standard form. x 0. Solutions to the system of linear equations

Lecture 10: Linear programming duality and sensitivity 0-0

Linear Programming Duality P&S Chapter 3 Last Revised Nov 1, 2004

9.1 Linear Programs in canonical form

Special cases of linear programming

Linear Programming: Chapter 5 Duality

New Artificial-Free Phase 1 Simplex Method

Linear Programming, Lecture 4

Simplex tableau CE 377K. April 2, 2015

Optimisation and Operations Research

min 4x 1 5x 2 + 3x 3 s.t. x 1 + 2x 2 + x 3 = 10 x 1 x 2 6 x 1 + 3x 2 + x 3 14

3. Duality: What is duality? Why does it matter? Sensitivity through duality.

Linear Programming Inverse Projection Theory Chapter 3

Ω R n is called the constraint set or feasible set. x 1

(includes both Phases I & II)

The dual simplex method with bounds

OPTIMISATION 3: NOTES ON THE SIMPLEX ALGORITHM

4. Duality Duality 4.1 Duality of LPs and the duality theorem. min c T x x R n, c R n. s.t. ai Tx = b i i M a i R n

OPERATIONS RESEARCH. Linear Programming Problem

Chapter 1: Linear Programming

LINEAR PROGRAMMING II

SAMPLE QUESTIONS. b = (30, 20, 40, 10, 50) T, c = (650, 1000, 1350, 1600, 1900) T.

AM 121 Introduction to Optimization: Models and Methods Example Questions for Midterm 1

4.7 Sensitivity analysis in Linear Programming

UNIT-4 Chapter6 Linear Programming

LINEAR PROGRAMMING 2. In many business and policy making situations the following type of problem is encountered:

Dual Basic Solutions. Observation 5.7. Consider LP in standard form with A 2 R m n,rank(a) =m, and dual LP:

56:171 Operations Research Fall 1998

Introduction to linear programming using LEGO.

Relation of Pure Minimum Cost Flow Model to Linear Programming

IE 5531: Engineering Optimization I

UNIVERSITY of LIMERICK

Lecture 5. x 1,x 2,x 3 0 (1)

Chapter 3, Operations Research (OR)

(includes both Phases I & II)

Algorithms and Theory of Computation. Lecture 13: Linear Programming (2)

MATH 373 Section A1. Final Exam. Dr. J. Bowman 17 December :00 17:00

MAT016: Optimization

Section Notes 9. IP: Cutting Planes. Applied Math 121. Week of April 12, 2010

1 Simplex and Matrices

Linear and Combinatorial Optimization

AM 121: Intro to Optimization

The Primal-Dual Algorithm P&S Chapter 5 Last Revised October 30, 2006

Linear Programming Redux

In Chapters 3 and 4 we introduced linear programming

Example Problem. Linear Program (standard form) CSCI5654 (Linear Programming, Fall 2013) Lecture-7. Duality

TIM 206 Lecture 3: The Simplex Method

Linear Programming in Matrix Form

Prelude to the Simplex Algorithm. The Algebraic Approach The search for extreme point solutions.

Foundations of Operations Research

Linear programming. Saad Mneimneh. maximize x 1 + x 2 subject to 4x 1 x 2 8 2x 1 + x x 1 2x 2 2

Midterm Review. Yinyu Ye Department of Management Science and Engineering Stanford University Stanford, CA 94305, U.S.A.

Introduction. Very efficient solution procedure: simplex method.

3. THE SIMPLEX ALGORITHM

Transcription:

In the name of God Part 1. The Review of Linear Programming 1.5. Spring 2010 Instructor: Dr. Masoud Yaghini

Outline Introduction Formulation of the Dual Problem Primal-Dual Relationship Economic Interpretation of the Dual Dual Simplex Method References

Introduction

Dual problem Introduction For every linear program there is another associated linear program, called dual (linear programming) problem Dual problem may be used to obtain the solution to the original program. Primal problem The original linear program called the primal (linear programming) problem. Dual problem s variables provide extremely useful information about the primal problem.

Introduction The dual of the dual is the primal. The properties of dual program will lead to two new algorithms, for solving linear programs: The dual simplex method The primal-dual algorithm

Formulation of the Dual Problem

Formulation of the Dual Problem There are two important forms of duality: the canonical form of duality the standard form of duality These two forms are completely equivalent.

Canonical Form of Duality Canonical Form of Duality: Where P: the primal problem D: the dual problem Note that: for each primal constraint there is exactly one dual variable for each primal variable there is exactly one dual constraint

Canonical Form of Duality Example:

Standard Form of Duality Standard Form of Duality

Standard Form of Duality Example

Mixed Forms of Duality In practice, many linear programs contain some constraints of the,, and = types. Also, variables may be 0, 0, or unrestricted. This presents no problem since we may apply the transformation techniques to convert any "mixed" problem to one of the primal or dual forms.

Mixed Forms of Duality Consider the following linear program. Converting this problem to canonical form by multiplying the second set of inequalities by -1, writing the equality constraint set equivalently as two inequalities substituting x 2 = - x 2, x 3 = x 3 - x 3, we get

After converting, we get Mixed Forms of Duality Denoting the dual variables associated with the four constraint sets as w 1,w 2, w 3, and w 3 respectively,

Mixed Forms of Duality We obtain the dual to this problem as follows:

Mixed Forms of Duality Finally. Using w 2 = -w 2, and w 3 = w 3 w 3, the foregoing problem may be equivalently stated as follows.

Mixed Forms of Duality Relationships Between Primal and Dual Problems

Mixed Forms of Duality Example, Consider the following linear program Applying the results of the table, we can immediately write down the dual.

Primal-Dual Relationship

Primal-Dual Relationship Consider the canonical form of duality Let x 0 and w 0 are feasible solutions to the primal and dual programs Then Ax 0 b, x 0 0, w 0 A c, and w 0 0. Multiplying Ax 0 b on the left by w 0 and w 0 A c on the right by x 0, we get This is known as the weak duality property.

Primal-Dual Relationship The objective function value for any feasible solution to the minimization problem is always greater than or equal to the objective function value for any feasible solution to the maximization problem. The objective value of any feasible solution of the minimization problem gives an upper bound on the optimal objective of the maximization problem. Similarly, the objective value of any feasible solution of the maximization problem is a lower bound on the optimal objective of the minimization problem.

The Fundamental Theorem of Duality With regard to the primal and dual linear programming problems, exactly one of the following statements is true: 1. If cx 0 = w 0 b, then x 0 and w 0 are optimal solutions to their respective problems. 2. One problem has unbounded objective value, in which case the other problem must be infeasible. 3. Both problems are infeasible. From this theorem we see that duality is not completely symmetric.

The Fundamental Theorem of Duality The best we can say is that

Economic Interpretation of the Dual

Economic Interpretation of the Primal Consider the following linear program and its dual. If B is the optimal basis for the primal problem and c B is the basic cost vector, then we know that Where J the index set of for nonbasic variables include slack and structural variables.

Economic Interpretation of the Primal The w i * is the rate of change of the optimal objective value with a unit increase in the i th right-hand-side value. Since w i * 0, z* will increase or stay constant as b i increases. Economically, we may think of w* as a vector of shadow prices for the right-hand-side vector. If the i th constraint represents a demand for production of at least b i units of the i th product and cx represents the total cost of production, then w i * is the incremental cost of producing one more unit of the i th product. Put another way, w* is the fair price we would pay to have an extra unit of the i th product.

Economic Interpretation of the Primal Suppose that you engage a firm to produce specified outputs or goods. Let, b 1, b 2,, b m : amounts of m outputs. n: the number of activities at varying levels to produce the outputs. x j : the level of each activity j c j : the unit cost of each activity j a ij : the amount of product i generated by one unit of activity j b i : the required amount of output I : the units of output i that are produced and must be greater than or equal to the required amount b i

Economic Interpretation of the Primal You agree to pay the total cost of production. You would like to have control over the firm's operations so that you can specify the mix and levels of activities that the firm will engage in so as to minimize the total production cost. Therefore you wish to solve the following problem, which is precisely the primal problem.

Economic Interpretation of the Dual Instead of trying to control the operation of the firm to obtain the most desirable mix of activities, suppose that you agree to pay the firm fair unit prices for each of outputs. Let, w i : the unit price output i = 1, 2,, m : the unit price of activity j Therefore you ask the firm that the implicit price of activity j, does not exceed the actual price c j. Therefore the firm must observe the constraints Within these constraints the firm would like to choose a set of prices that maximize his return

Economic Interpretation of the Dual This leads to the following dual problem of the firm. The main duality theorem states that there is an equilibrium set of activities and set of prices where the minimal production cost is equal to the maximal return.

The Dual Simplex Method

The Dual Simplex Method The dual simplex method solves the dual problem directly on the primal simplex tableau. At each iteration we move from a basic feasible solution of the dual problem to an improved basic feasible solution until optimality of the dual (and also the primal) is reached, Or else until we conclude that the dual is unbounded and that the primal is infeasible.

The Dual Simplex Method In certain instances it is difficult to find a starting basic solution that is feasible (that is, all b i 0) to a linear program without adding artificial variables. In these instances it is often possible to find a starting basic, but not necessarily feasible, solution that is dual feasible (that is, all z j c j 0 for a minimization problem). In such cases it is useful to use dual simplex method that would produce a series of simplex tableaux that maintain dual feasibility and complementary slackness and strive toward primal feasibility.

The Dual Simplex Method Consider the following tableau representing a basic solution at some iteration.

The Dual Simplex Method Suppose that the tableau is dual feasible (that is, z j c j 0 for a minimization problem). Then, if the tableau is also primal feasible (that is, all b i 0) then we have the optimal solution. Otherwise, consider some b r < 0. By selecting row r as a pivot row and some column k such that y rk < 0 as a pivot column we can make the new right-hand side b r > 0. Through a series of such pivots we hope to make all b i 0 while maintaining all z j c j 0 and thus achieve optimality.

Summary of the Dual Simplex Method INITIALIZATION STEP (for Minimization Problem) Find a basis B of the primal such that z j - c j = c B B -1 a j c j 0 for all j MAIN STEP 1. If b = B -1 b 0, stop; the current solution is optimal. Otherwise select the pivot row r with b r < 0, say b r = Minimum { b i }.

The Dual Simplex Method 2. If y rj 0 for all j, stop; the dual is unbounded and the primal is infeasible. Otherwise select the pivot column k by the following minimum ratio test: 3. Pivot at y rk and return to step 1.

The Dual Simplex Method Example: A starting basic solution that is dual feasible can be obtained by utilizing the slack variables x 4 and x 5. This results from the fact that the cost vector is nonnegative. Applying the dual simplex method, we obtain the following series of tableaux.

The Dual Simplex Method

The Dual Simplex Method Since b > 0 and z j c j 0 for all j, the optimal primal and dual solutions are at hand. Note that w 1 * and w 2 * are respectively the negatives of the z j c j entries under the slack variables x 4 and x 5. Also note that in each subsequent tableau the value of the objective function is increasing, as it should, for the dual (maximization) problem.

References

References M.S. Bazaraa, J.J. Jarvis, H.D. Sherali, Linear Programming and Network Flows, Wiley, 1990. (Chapter 6)

The End