Summary of the simplex method

Similar documents
Ann-Brith Strömberg. Lecture 4 Linear and Integer Optimization with Applications 1/10

Summary of the simplex method

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

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

Linear programs, convex polyhedra, extreme points

Dr. Maddah ENMG 500 Engineering Management I 10/21/07

Systems Analysis in Construction

AM 121: Intro to Optimization

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

IE 400: Principles of Engineering Management. Simplex Method Continued

The Simplex Method. Lecture 5 Standard and Canonical Forms and Setting up the Tableau. Lecture 5 Slide 1. FOMGT 353 Introduction to Management Science

Special cases of linear programming

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

February 17, Simplex Method Continued

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

1 Review Session. 1.1 Lecture 2

Gauss-Jordan Elimination for Solving Linear Equations Example: 1. Solve the following equations: (3)

Simplex Method for LP (II)

Linear Programming, Lecture 4

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

Metode Kuantitatif Bisnis. Week 4 Linear Programming Simplex Method - Minimize

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

Review Solutions, Exam 2, Operations Research

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

TIM 206 Lecture 3: The Simplex Method

Introduction to Operations Research Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology, Madras

MVE165/MMG631 Linear and integer optimization with applications Lecture 8 Discrete optimization: theory and algorithms

Lecture 2: The Simplex method

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

Lecture 11 Linear programming : The Revised Simplex Method

MATH 445/545 Homework 2: Due March 3rd, 2016

Linear Programming and the Simplex method

MATH2070 Optimisation

CO350 Linear Programming Chapter 8: Degeneracy and Finite Termination

Chap6 Duality Theory and Sensitivity Analysis

Sensitivity Analysis

The Simplex Method. Formulate Constrained Maximization or Minimization Problem. Convert to Standard Form. Convert to Canonical Form

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

UNIT-4 Chapter6 Linear Programming

Distributed Real-Time Control Systems. Lecture Distributed Control Linear Programming

OPERATIONS RESEARCH. Linear Programming Problem

Part III: A Simplex pivot

The Simplex Method. Standard form (max) z c T x = 0 such that Ax = b.

9.1 Linear Programs in canonical form

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

Introduction to Mathematical Programming

In Chapters 3 and 4 we introduced linear programming

Farkas Lemma, Dual Simplex and Sensitivity Analysis

Dr. S. Bourazza Math-473 Jazan University Department of Mathematics

OPRE 6201 : 3. Special Cases

Linear Programming: Chapter 5 Duality

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

Example. 1 Rows 1,..., m of the simplex tableau remain lexicographically positive

LP. Lecture 3. Chapter 3: degeneracy. degeneracy example cycling the lexicographic method other pivot rules the fundamental theorem of LP

Part 1. The Review of Linear Programming

CSC Design and Analysis of Algorithms. LP Shader Electronics Example

Answer the following questions: Q1: Choose the correct answer ( 20 Points ):

3 The Simplex Method. 3.1 Basic Solutions

Chapter 2: Linear Programming Basics. (Bertsimas & Tsitsiklis, Chapter 1)

1 Overview. 2 Extreme Points. AM 221: Advanced Optimization Spring 2016

CO350 Linear Programming Chapter 8: Degeneracy and Finite Termination

Introduction to Operations Research

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

The Dual Simplex Algorithm

Today s class. Constrained optimization Linear programming. Prof. Jinbo Bi CSE, UConn. Numerical Methods, Fall 2011 Lecture 12

The simplex algorithm

Lecture 5 Simplex Method. September 2, 2009

CPS 616 ITERATIVE IMPROVEMENTS 10-1

Optimization (168) Lecture 7-8-9

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

Part 1. The Review of Linear Programming

Supplementary lecture notes on linear programming. We will present an algorithm to solve linear programs of the form. maximize.

Linear Programming Duality

Simplex Algorithm Using Canonical Tableaus

CSCI5654 (Linear Programming, Fall 2013) Lecture-8. Lecture 8 Slide# 1

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

Lectures 6, 7 and part of 8

Week_4: simplex method II

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

Introduction to Linear and Combinatorial Optimization (ADM I)

DEPARTMENT OF STATISTICS AND OPERATIONS RESEARCH OPERATIONS RESEARCH DETERMINISTIC QUALIFYING EXAMINATION. Part I: Short Questions

56:270 Final Exam - May

CS Algorithms and Complexity


Section Notes 8. Integer Programming II. Applied Math 121. Week of April 5, expand your knowledge of big M s and logical constraints.

The Big M Method. Modify the LP

ORF 522. Linear Programming and Convex Analysis

15-780: LinearProgramming

AM 121: Intro to Optimization Models and Methods

IP Cut Homework from J and B Chapter 9: 14, 15, 16, 23, 24, You wish to solve the IP below with a cutting plane technique.

Chapter 3, Operations Research (OR)

MATH 445/545 Test 1 Spring 2016

2.098/6.255/ Optimization Methods Practice True/False Questions

Math Homework 3: solutions. 1. Consider the region defined by the following constraints: x 1 + x 2 2 x 1 + 2x 2 6

OPTIMISATION 3: NOTES ON THE SIMPLEX ALGORITHM

The Avis-Kalunzy Algorithm is designed to find a basic feasible solution (BFS) of a given set of constraints. Its input: A R m n and b R m such that

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)

Algebraic Simplex Active Learning Module 4

3. THE SIMPLEX ALGORITHM

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

Transcription:

MVE165/MMG631,Linear and integer optimization with applications The simplex method: degeneracy; unbounded solutions; starting solutions; infeasibility; alternative optimal solutions Ann-Brith Strömberg 2013 04 09

Summary of the simplex method Optimality condition: For a minimization [maximization] problem, the variable entering the basis should have the largest negative [positive] reduced cost [marginal value] The entering variable determines a direction (along an edge of the polyhedron) in which the objective value decreases [increases] If all reduced costs are positive [negative] then the current basis is optimal Feasibility condition: The variable leaving the basis is the one with the smallest quota between the corresponding right hand side and the (non-negative) constraint coefficient of the entering variable (search direction) The variable leaving the basis corresponds to the constraint that is reached first A negative (zero) coefficient of the entering variable: the corresponding (in)equality is not constraining

Simplex search for linear (minimization) programs (Ch. 4.6) 1. Initialization: Choose any feasible basis, construct the corresponding basic solution x 0 ; let t = 0 2. Step direction: Select a variable to enter the basis using the optimality condition (negative reduced cost). If no entering variable exists: Stop, the solution is optimal 3. Step length: Select a leaving variable using the feasibility condition (smallest non-negative quota). If all coefficients 0: Stop, the problem has an unbounded solution 4. New iterate: Compute the new basic solution x t+1 by performing matrix operations 5. Let t := t + 1 and repeat from 2

Special case: Degeneracy (Ch. 4.10) If the smallest non-negative quotient is zero, the value of a basic variable will become zero in the next iteration The solution is degenerate The objective value will not improve in this iteration Risk: cycling around (non-optimal) bases Reason: a redundant constraint touches the feasible set Example: x 1 + x 2 6 x 2 3 x 1 + 2x 2 9 x 1, x 2 0

Special case: Degeneracy example minimize z = x 1 2x 2 x 1 + x 2 6 x 2 3 x 1 + 2x 2 9 x 1, x 2 0 basis z x 1 x 2 x 3 x 4 x 5 RHS z 1-1 -2 0 0 0 0 x 3 0 1 1 1 0 0 6 x B = (x 3, x 4,x 5) = (6,3, 9) x 4 0 0 1 0 1 0 3 x 5 0 1 2 0 0 1 9 z 1-1 0 0 2 0 6 x 3 0 1 0 1-1 0 3 x B = (x 3, x 2,x 5) = (3,3, 3) x 2 0 0 1 0 1 0 3 x 5 0 1 0 0-2 1 3 z 1 0 0 0 0 1 9 x 3 0 0 0 1 1-1 0 x B = (x 3, x 2,x 1) = (0,3, 3) x 2 0 0 1 0 1 0 3 x 1 0 1 0 0-2 1 3 z 1 0 0 0 0 1 9 x 4 0 0 0 1 1-1 0 x B = (x 4, x 2,x 1) = (0,3, 3) x 2 0 0 1-1 0 1 3 x 1 0 1 0 2 0-1 3 z 1 0 0 1 1 0 9 x 5 0 0 0-1 -1 1 0 x B = (x 5, x 2,x 1) = (0,3, 3) x 2 0 0 1 0 1 0 3 x 1 0 1 0 1-1 0 3 This last iteration will not appear in the simplex course. Why?

Special case: Degeneracy Typical objective function progress of the simplex method objective value iteration number Computation rules to prevent from infinite cycling: careful choices of leaving and entering variables In modern software: perturb the right hand side (b + b), solve, decrease b and resolve starting from the current basis. Repeat until b = 0

Unbounded solutions (Ch. 4.4, 4.6) If all quotas are negative, the value of the variable entering the basis may increase infinitely The feasible set is unbounded In a real application this would probably be due to some incorrect modelling assumption Example: minimize z = x 1 2x 2 subject to x 1 +x 2 2 2x 1 +x 2 1 x 1, x 2 0 Draw graph!!

Unbounded solutions (Ch. 4.4, 4.6) A feasible basis is given by x 1 = 1, x 2 = 3, with corresponding tableau: basis z x 1 x 2 s 1 s 2 RHS z 1 0 0 5-3 7 x 1 0 1 0 1-1 1 x 2 0 0 1 2-1 3 Entering variable is s 2 Row 1: x 1 = 1 + s 2 0 s 2 1 Row 2: x 2 = 3 + s 2 0 s 2 3 No leaving variable can be found, since no constraint will prevent s 2 from increasing infinitely Homework: Find the above basis using the simplex method

Starting solution finding an initial basis (Ch. 4.9) Example: minimize z = 2x 1 +3x 2 subject to 3x 1 +2x 2 = 14 2x 1 4x 2 2 Draw graph!! 4x 1 +3x 2 19 x 1,x 2 0 Add slack and surplus variables minimize z = 2x 1 +3x 2 subject to 3x 1 +2x 2 = 14 2x 1 4x 2 s 1 = 2 4x 1 +3x 2 +s 2 = 19 x 1,x 2,s 1,s 2 0 How to find an initial basis? Only s 2 is obvious!

Artificial variables Add artificial variables a 1 and a 2 to the first and second constraints, respectively Solve an artificial problem: minimize a 1 + a 2 minimize w = a 1 +a 2 subject to 3x 1 +2x 2 +a 1 = 14 2x 1 4x 2 s 1 +a 2 = 2 4x 1 +3x 2 +s 2 = 19 x 1,x 2,s 1,s 2,a 1,a 2 0 The phase one problem An initial basis is given by a 1 = 14, a 2 = 2, and s 2 = 19: basis w x 1 x 2 s 1 s 2 a 1 a 2 RHS w 1-5 2 1 0 0 0-16 a 1 0 3 2 0 0 1 0 14 a 2 0 2-4 -1 0 0 1 2 s 2 0 4 3 0 1 0 0 19

Find an initial solution using artificial variables x 1 enters a 2 leaves (then x 2 s 2, then s 1 a 1 ) basis w x 1 x 2 s 1 s 2 a 1 a 2 RHS w 1-5 2 1 0 0 0-16 a 1 0 3 2 0 0 1 0 14 a 2 0 2-4 -1 0 0 1 2 s 2 0 4 3 0 1 0 0 19 w 1 0-8 -1.5 0 0-11 a 1 0 0 8 1.5 0 1 11 x 1 0 1-2 -0.5 0 0 1 s 2 0 0 11 2 1 0 15 w 1 0 0-0.045 0.727 0-0.091 a 1 0 0 0 0.045-0.727 1 0.091 x 1 0 1 0-0.136 0.182 0 3.727 x 2 0 0 1 0.182 0.091 0 1.364 w 1 0 0 0 0 0 s 1 0 0 0 1-16 2 x 1 0 1 0 0-2 4 x 2 0 0 1 0 3 1 A feasible basis is given by x 1 = 4, x 2 = 1, and s 1 = 2

Find an initial solution illustration

Infeasible linear programs (Ch. 4.9) If the solution to the phase one problem has an optimal value w = 0, a feasible basis has been found Start optimizing the original objective function z from this basis (homework) If the solution to the phase one problem has an optimal value w > 0, no feasible solutions exist What would this mean in a real application? Alternative: Big-M method: Add the artificial variables to the original objective with a large coefficient Example: minimize z = 2x 1 + 3x 2 minimize z a = 2x 1 + 3x 2 + Ma 1 + Ma 2

Alternative optimal solutions (Ch. 4.6) Example: maximize z = 2x 1 +4x 2 subject to x 1 +2x 2 5 x 1 +x 2 4 Draw graph!! x 1,x 2 0 The extreme points (0, 5 2 ) and (3,1) have the same optimal value z = 10 All solutions that are positive linear (convex) combinations of these are optimal: (x 1,x 2 ) = α (0, 5 ) + (1 α) (3,1), 0 α 1 2

Next lecture on Thursday, April 11 Sensitivity analysis (Ch. 5) Linear optimization duality theory (Ch. 6)