LECTURE 5: DUALITY AND SENSITIVITY ANALYSIS. 1. Dual linear program 2. Duality theory 3. Sensitivity analysis 4. Dual simplex method



Similar documents
4.6 Linear Programming duality

Practical Guide to the Simplex Method of Linear Programming

Duality in Linear Programming

Linear Programming. Widget Factory Example. Linear Programming: Standard Form. Widget Factory Example: Continued.

This exposition of linear programming

Linear Programming Notes VII Sensitivity Analysis

9.4 THE SIMPLEX METHOD: MINIMIZATION

Special Situations in the Simplex Algorithm

1 Introduction. Linear Programming. Questions. A general optimization problem is of the form: choose x to. max f(x) subject to x S. where.

Linear Programming. March 14, 2014

1 Solving LPs: The Simplex Algorithm of George Dantzig

3. Linear Programming and Polyhedral Combinatorics

Linear Programming I

Standard Form of a Linear Programming Problem

Chapter 4. Duality. 4.1 A Graphical Example

Linear Programming Problems

Chapter 6. Linear Programming: The Simplex Method. Introduction to the Big M Method. Section 4 Maximization and Minimization with Problem Constraints

26 Linear Programming

Mathematical finance and linear programming (optimization)

Operation Research. Module 1. Module 2. Unit 1. Unit 2. Unit 3. Unit 1

Linear Programming for Optimization. Mark A. Schulze, Ph.D. Perceptive Scientific Instruments, Inc.

2.3 Convex Constrained Optimization Problems

What is Linear Programming?

Proximal mapping via network optimization

Linear Programming. April 12, 2005

Simplex method summary

Chapter 6: Sensitivity Analysis

Linear Programming Notes V Problem Transformations

IEOR 4404 Homework #2 Intro OR: Deterministic Models February 14, 2011 Prof. Jay Sethuraman Page 1 of 5. Homework #2

Nonlinear Programming Methods.S2 Quadratic Programming

Chapter 2 Solving Linear Programs

International Doctoral School Algorithmic Decision Theory: MCDA and MOO

24. The Branch and Bound Method

Interior Point Methods and Linear Programming

Lecture 15 An Arithmetic Circuit Lowerbound and Flows in Graphs

Solving Linear Systems, Continued and The Inverse of a Matrix

A Branch and Bound Algorithm for Solving the Binary Bi-level Linear Programming Problem

Equilibrium computation: Part 1

3. Evaluate the objective function at each vertex. Put the vertices into a table: Vertex P=3x+2y (0, 0) 0 min (0, 5) 10 (15, 0) 45 (12, 2) 40 Max

Lecture 2: August 29. Linear Programming (part I)

MATH10212 Linear Algebra. Systems of Linear Equations. Definition. An n-dimensional vector is a row or a column of n numbers (or letters): a 1.

Optimization in R n Introduction

Solving Linear Programs

Using the Simplex Method to Solve Linear Programming Maximization Problems J. Reeb and S. Leavengood

Duality in General Programs. Ryan Tibshirani Convex Optimization /36-725

Duality of linear conic problems

Lecture 3. Linear Programming. 3B1B Optimization Michaelmas 2015 A. Zisserman. Extreme solutions. Simplex method. Interior point method

v w is orthogonal to both v and w. the three vectors v, w and v w form a right-handed set of vectors.

Linear Programming in Matrix Form

The Equivalence of Linear Programs and Zero-Sum Games

OPRE 6201 : 2. Simplex Method

Further Study on Strong Lagrangian Duality Property for Invex Programs via Penalty Functions 1

Similarity and Diagonalization. Similar Matrices

0.1 Linear Programming

Continued Fractions and the Euclidean Algorithm

An Introduction to Linear Programming

LU Factorization Method to Solve Linear Programming Problem

EXCEL SOLVER TUTORIAL

. P. 4.3 Basic feasible solutions and vertices of polyhedra. x 1. x 2

1 Linear Programming. 1.1 Introduction. Problem description: motivate by min-cost flow. bit of history. everything is LP. NP and conp. P breakthrough.

Applied Algorithm Design Lecture 5

56:171 Operations Research Midterm Exam Solutions Fall 2001

Advanced Lecture on Mathematical Science and Information Science I. Optimization in Finance

Optimization Theory for Large Systems

DATA ANALYSIS II. Matrix Algorithms

Can linear programs solve NP-hard problems?

Study Guide 2 Solutions MATH 111

Notes on Determinant

Systems of Linear Equations

Linear Programming II: Minimization 2006 Samuel L. Baker Assignment 11 is on page 16.

Reduced echelon form: Add the following conditions to conditions 1, 2, and 3 above:

Degeneracy in Linear Programming

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS. + + x 2. x n. a 11 a 12 a 1n b 1 a 21 a 22 a 2n b 2 a 31 a 32 a 3n b 3. a m1 a m2 a mn b m

Actually Doing It! 6. Prove that the regular unit cube (say 1cm=unit) of sufficiently high dimension can fit inside it the whole city of New York.

Transportation Polytopes: a Twenty year Update

MATH 304 Linear Algebra Lecture 18: Rank and nullity of a matrix.

CS 598CSC: Combinatorial Optimization Lecture date: 2/4/2010

160 CHAPTER 4. VECTOR SPACES

Definition Given a graph G on n vertices, we define the following quantities:

Sensitivity Analysis 3.1 AN EXAMPLE FOR ANALYSIS

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS

WRITING PROOFS. Christopher Heil Georgia Institute of Technology

Solving Linear Programs using Microsoft EXCEL Solver

Nonlinear Optimization: Algorithms 3: Interior-point methods

GENERALIZED INTEGER PROGRAMMING

OPTIMIZATION. Schedules. Notation. Index

Lecture 2 Matrix Operations

Linear Programming: Chapter 11 Game Theory

1 VECTOR SPACES AND SUBSPACES

Linear Programming. Solving LP Models Using MS Excel, 18

Two-Stage Stochastic Linear Programs

The Graphical Method: An Example

CITY UNIVERSITY LONDON. BEng Degree in Computer Systems Engineering Part II BSc Degree in Computer Systems Engineering Part III PART 2 EXAMINATION

Notes V General Equilibrium: Positive Theory. 1 Walrasian Equilibrium and Excess Demand

4.1 Learning algorithms for neural networks

Solving Systems of Linear Equations

Some representability and duality results for convex mixed-integer programs.

! Solve problem to optimality. ! Solve problem in poly-time. ! Solve arbitrary instances of the problem. #-approximation algorithm.

Unit 1. Today I am going to discuss about Transportation problem. First question that comes in our mind is what is a transportation problem?

Transcription:

LECTURE 5: DUALITY AND SENSITIVITY ANALYSIS 1. Dual linear program 2. Duality theory 3. Sensitivity analysis 4. Dual simplex method

Introduction to dual linear program Given a constraint matrix A, right hand side vector b, and cost vector c, we have a corresponding linear programming problem: Questions: 1. Can we use the same data set of (A, b, c) to construct another linear programming problem? 2. If so, how is this new linear program related to the original primal problem?

Guessing A is an m by n matrix, b is an m-vector, c is an n-vector. Can the roles of b and c can be switched? - If so, we ll have m variables and n constraints. Correspondingly, (1) the transpose of matrix A should be considered to accommodate rows for columns, and vise versa? (2) nonnegative variables for free variables? (3) equality constraints for inequality constraints? (4) minimizing objective for maximizing objective?

Dual linear program Consider the following linear program Remember the original linear program

Example

Dual of LP in other form Symmetric pair

Karmarkar s form LP

How are they related? We denote the original LP by (P) as the primal problem and the new LP by (D) as dual problem. (P) and (D) are defined by the same data set (A, b, c). Problem (D) is a linear program with m variables and n constraints. The right-hand-side vector and the cost vector change roles in (P) and (D). What else?

Many interesting questions Feasibility: - Can problems (P) and (D) be both feasible? - One is feasible, while the other is infeasible? - Both are infeasible? Basic solutions: - Is there any relation between the basic solutions of (P) and that of (D)? bfs? optimal solutions? Optimality: -Can problems (P) and (D) both have a unique optimal solution? - Both have infinitely many? - One unique, the other infinitely many?

Examples Both (P) and (D) are infeasible: Both (P) and (D) have infinitely many optimal solutions:

Dual relationship If we take (D) as the primal problem, what ll happen? Convert (D) into its standard form by 1. taking w = u v 2. adding slacks s 3. minimizing objective New dual

Dual of the dual = primal Rearrange the new dual We have

Example

Weak duality theorem If x is a primal feasible solution to (P) and w is a dual feasible solution to (D), then (Weak Duality Theorem): If x is a primal feasible solution to (P) and w is a dual feasible solution to (D), then.

Example

Corollaries 1. If x is primal feasible, w is dual feasible, and then x is primal optimal, and w is dual optimal. 2. If the primal is unbounded below, then the dual is infeasible. (Is the converse statement true? -- watch for infeasibility) 3. If the dual is unbounded above, then the primal is infeasible. (Is the converse statement true?)

Strong duality theorem Questions: - Can the results of weak duality be stronger? - Is there any gap between the primal optimal value and the dual optimal value? Strong Duality Theorem:

Proof of strong duality theorem Proof: Note that the dual of the dual is the primal and the fact that If x is primal feasible, w is dual feasible and then x is primal optimal and w is dual optimal. We only need to show that if the primal has a finite optimal bfs x, then there exists a dual feasible solution w such that

Proof - continue Applying the simplex method at the optimal bsf x with basis B, we define. Then Thus w is dual feasible and

Implications

Corresponding basic solutions At a primal basic solution x with basis B, we defined a dual basic solution.

Further implications of strong duality theorem Theorem of Alternatives Existence of solutions of systems of equalities and inequalities Famous Farkas Lemma (another form)

Proof of Farkas Lemma Since w = 0 is dual feasible, we know (P) is infeasible if and only if (D) is unbounded above. Note that (P) is infeasible if and only if (I) has no solution. (D) is unbounded above if and only if (II) has a solution. Hence, (I) has no solution if and only if (II) has a solution.

Complementary slackness Consider the symmetric pair LP

Observations 1. 2.

Complementary slackness theorem Theorem:

Example Consider a relaxed knapsack problem: Its dual becomes 4y* > 3 x*1 = 0 7y* > 4 x*2 = 0 10y* = 9 x*3 =? x*3 = 2 z* = 18 3y* > 2 x*4 = 0 7y* > 5 x*5 = 0

Complementary slackness for standard form LP

Kuhn-Tucker condition Theorem:

Implication Solving a linear programming problem is equivalent to solving a system of linear inequalities.

Economic interpretation of duality Is there any special meaning of the dual variables? What is a dual problem trying to do? What s the role of the complementary slackness in decision making?

Dual variables Consider a nondegenerate linear program:

Dual variable for shadow price Moreover, we have Note: dual variable indicates the minimum unit price that one has to charge for additional demand i. It is also called shadow price or equilibrium price.

Dual LP problem Consider the following production scenario: n products to be produced m resources in hand market selling price for each product is known technology matrix is given by

A manufacturer s view

Complementary slackness condition Observation: 1. is the maximum marginal price the manufacturer is willing to pay the supplier for resource i. 2. When resource i is not fully utilized, i.e., the complementary slackness condition implies This means the manufacturer is not willing to pay a penny for buying any additional amount! 3. When the supplier asks too much, i.e., then This means the manufacturer is not going to produce any product j!

Sensitivity analysis Sensitivity is a post-optimality analysis of a linear program in which, some components of (A, b, c) may change after obtaining an optimal solution with an optimal basis and an optimal objective value. Questions of interests:

Fundamental concepts No matter how the data (A, b, c) change, we need to make sure that 1. Feasibility (c is not involved): bfs x is feasible if and only if 2. Optimality (b is not involved):

Change in the cost vector Scenario: Consider Question: Within which range of the current optimal solution remains to be optimal? Note: when c = (0,,0,1,0, 0), we have the regular sensitivity analysis on each cost coefficient.

Geometric view Fact:

Analysis Compare (1) (2) i.e.,

Analysis - continue

Analysis - continue

Change in the r-h-s vector Scenario: Fact: Question:

Analysis

Analysis

Changes in the constraint matrix Since both feasibility and optimality are involved, a general analysis is difficult. We only consider simple cases such as adding a new variable, removing a variable, adding a new constraint.

Adding a new variable Why? A new product, service or activity is introduced. Analysis:

Removing a variable Why? An activity is no longer available.

Adding a new constraint Why? A new restriction is enforces.

Analysis

Analysis

Dual simplex method What s the dual simplex method? - It is a simplex based algorithm that works on the dual problem directly. In other words, it hops from one vertex to another vertex along some edge directions in the dual space. It keeps dual feasibility and complementary slackness, but seeks primal feasibility.

Motivation Applying the (revised) simplex method to solve the dual problem:

Corresponding basic solutions At a primal basic solution x with basis B, we defined a dual basic solution.

Basic ideas of dual simplex method Starting with a dual basic feasible solution

Basic ideas of dual simplex method Checking optimality

Basic ideas of dual simplex method Pivoting move

Related issues Question 1: Analysis:

Related issues Question 2: Where is the dual feasibility information? Guess: must be from the fundamental matrix and vector c.

Related issues Question 3: When Answer: Sherman-Morrison-Woodbury formula. Sherman, J.; Morrison, W. J. (1949). "Adjustment of an Inverse Matrix Corresponding to Changes in the Elements of a Given Column or a Given Row of the Original Matrix (abstract)". Annals of Mathematical Statistics 20: 621. doi:10.1214/aoms/1177729959

Sherman-Morrison-Woodbury Formula Lemma:

Proof from wikipedia.org/wiki

Observations

Example

Analysis

Observations

Dual simplex method

Dual simplex method

Example

Example - continue

How to start the dual simplex method?

Observations

Remarks (1) Solving a standard form LP by the dual simplex method is mathematically equivalent to solving its dual LP by the revised (primal) simplex method. (2) The work of solving an LP by the dual simplex method is about the same as of by the revised (primal) simplex method. (3) The dual simplex method is useful for the sensitivity analysis.

Complexity of the simplex method

Worst case performance of the simplex method Klee-Minty Example: Victor Klee, George J. Minty, How good is the simplex algorithm? in (O. Shisha edited) Inequalities, Vol. III (1972), pp. 159-175.

Klee-Minty Example

Klee-Minty Example