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

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

Review Solutions, Exam 2, Operations Research

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

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

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

AM 121: Intro to Optimization Models and Methods Fall 2018

Simplex Algorithm Using Canonical Tableaus

IE 400: Principles of Engineering Management. Simplex Method Continued

Solutions to Review Questions, Exam 1

February 17, Simplex Method Continued

CO350 Linear Programming Chapter 8: Degeneracy and Finite Termination

Systems Analysis in Construction

3 The Simplex Method. 3.1 Basic Solutions

Linear Programming, Lecture 4

Lecture 5 Simplex Method. September 2, 2009

MATH 445/545 Test 1 Spring 2016

Chapter 4 The Simplex Algorithm Part I

1 Review Session. 1.1 Lecture 2

Variants of Simplex Method

The Simplex Method for Solving a Linear Program Prof. Stephen Graves

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

The Simplex Algorithm and Goal Programming

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

The augmented form of this LP is the following linear system of equations:

Summary of the simplex method

Simplex Method in different guises

CO350 Linear Programming Chapter 8: Degeneracy and Finite Termination

Optimization Methods in Management Science

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

CO350 Linear Programming Chapter 6: The Simplex Method

ORF 522. Linear Programming and Convex Analysis

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

Linear Programming. Linear Programming I. Lecture 1. Linear Programming. Linear Programming

OPTIMISATION 3: NOTES ON THE SIMPLEX ALGORITHM

c) Place the Coefficients from all Equations into a Simplex Tableau, labeled above with variables indicating their respective columns

Lesson 27 Linear Programming; The Simplex Method

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

Simplex Method for LP (II)

LINEAR PROGRAMMING I. a refreshing example standard form fundamental questions geometry linear algebra simplex algorithm

1. Introduce slack variables for each inequaility to make them equations and rewrite the objective function in the form ax by cz... + P = 0.

Lecture slides by Kevin Wayne

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

TIM 206 Lecture 3: The Simplex Method

AM 121: Intro to Optimization Models and Methods

Understanding the Simplex algorithm. Standard Optimization Problems.

MATH 4211/6211 Optimization Linear Programming

Simplex method(s) for solving LPs in standard form

Duality Theory, Optimality Conditions

ECE 307 Techniques for Engineering Decisions

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

February 22, Introduction to the Simplex Algorithm

Part 1. The Review of Linear Programming

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

Review Questions, Final Exam

CO350 Linear Programming Chapter 6: The Simplex Method

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)

Linear Programming: Simplex Method CHAPTER The Simplex Tableau; Pivoting

Lecture 2: The Simplex method

Chapter 1 Linear Programming. Paragraph 5 Duality

Sensitivity Analysis

9.1 Linear Programs in canonical form

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

Slide 1 Math 1520, Lecture 10

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

IE 5531: Engineering Optimization I

Math Models of OR: Extreme Points and Basic Feasible Solutions

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

A Review of Linear Programming

Chapter 4 The Simplex Algorithm Part II

The Dual Simplex Algorithm

AM 121: Intro to Optimization

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

MATH2070 Optimisation

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

Linear programs Optimization Geoff Gordon Ryan Tibshirani

Math Models of OR: Some Definitions

ORF 307: Lecture 2. Linear Programming: Chapter 2 Simplex Methods

Lecture 2: The Simplex method. 1. Repetition of the geometrical simplex method. 2. Linear programming problems on standard form.

Summary of the simplex method

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.

Operations Research I: Deterministic Models

Introduce the idea of a nondegenerate tableau and its analogy with nondenegerate vertices.

F 1 F 2 Daily Requirement Cost N N N

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

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

Special cases of linear programming

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

56:171 Operations Research Midterm Exam - October 26, 1989 Instructor: D.L. Bricker

THE STEPS OF THE SIMPLEX ALGORITHM

OPRE 6201 : 3. Special Cases

Fundamental Theorems of Optimization

CPS 616 ITERATIVE IMPROVEMENTS 10-1

CO 602/CM 740: Fundamentals of Optimization Problem Set 4

Review Questions, Final Exam

LINEAR PROGRAMMING. Relation to the Text (cont.) Relation to Material in Text. Relation to the Text. Relation to the Text (cont.

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

The Simplex Algorithm

OPERATIONS RESEARCH. Linear Programming Problem

4.5 Simplex method. LP in standard form: min z = c T x s.t. Ax = b

Transcription:

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

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

The Simplex Method Standard form (max) z c T x = 0 such that Ax = b. Build initial tableau. z c T 0 0 A b Find an initial BFS.

The Simplex Method Standard form (max) z c T x = 0 such that Ax = b. Build initial tableau. Find an initial BFS. z c T 0 0 A b Look at Row 0 for neg coeffs:

The Simplex Method Standard form (max) z c T x = 0 such that Ax = b. Build initial tableau. Find an initial BFS. z c T 0 0 A b Look at Row 0 for neg coeffs: 1. Choose the column most negative coef.

The Simplex Method Standard form (max) z c T x = 0 such that Ax = b. Build initial tableau. Find an initial BFS. z c T 0 0 A b Look at Row 0 for neg coeffs: 1. Choose the column most negative coef. 2. Perform a ratio test by taking RHS/Lead Coeff.

The Simplex Method Standard form (max) z c T x = 0 such that Ax = b. Build initial tableau. Find an initial BFS. z c T 0 0 A b Look at Row 0 for neg coeffs: 1. Choose the column most negative coef. 2. Perform a ratio test by taking RHS/Lead Coeff. Exceptions: Ignore zeros and neg coeffs.

The Simplex Method Standard form (max) z c T x = 0 such that Ax = b. Build initial tableau. Find an initial BFS. z c T 0 0 A b Look at Row 0 for neg coeffs: 1. Choose the column most negative coef. 2. Perform a ratio test by taking RHS/Lead Coeff. Exceptions: Ignore zeros and neg coeffs. Choose the row with the smallest ratio.

The Simplex Method Standard form (max) z c T x = 0 such that Ax = b. Build initial tableau. Find an initial BFS. z c T 0 0 A b Look at Row 0 for neg coeffs: 1. Choose the column most negative coef. 2. Perform a ratio test by taking RHS/Lead Coeff. Exceptions: Ignore zeros and neg coeffs. Choose the row with the smallest ratio. 3. Pivot using the column/row we found.

The Simplex Method Standard form (max) z c T x = 0 such that Ax = b. Build initial tableau. Find an initial BFS. z c T 0 0 A b Look at Row 0 for neg coeffs: 1. Choose the column most negative coef. 2. Perform a ratio test by taking RHS/Lead Coeff. Exceptions: Ignore zeros and neg coeffs. Choose the row with the smallest ratio. 3. Pivot using the column/row we found. 4. Repeat.

Stopping Criteria 1 Stop if all Row 0 coeffs are non-negative. The current solution is optimal and unique.

Stopping Criteria 1 Stop if all Row 0 coeffs are non-negative. The current solution is optimal and unique. Example Final Tableau: z x 1 x 2 s 1 s 2 rhs 1 0 0 3 1 27 0 0 1 3 1 3 0 1 0 2 1 2

Stopping Criteria 1 Stop if all Row 0 coeffs are non-negative. The current solution is optimal and unique. Example Final Tableau: z x 1 x 2 s 1 s 2 rhs 1 0 0 3 1 27 0 0 1 3 1 3 0 1 0 2 1 2 Maximizer: x 1 = 2, x 2 = 3 and s 1 = s 2 = 0. Notice also the top row: z = 27 3s 1 s 2

From Wed: Unbounded LP Here was the final tableau for an unbounded region and an unbounded LP: z x 1 x 2 x 3 s 1 s 2 s 3 rhs 1 1 0 0 0 3 2 50 s 1 0 4 0 0 1 1 0 5 x 2 0 1 1 0 0 1 2 10 x 3 0 0 0 1 0 1 1 15

From Wed: Unbounded LP Here was the final tableau for an unbounded region and an unbounded LP: z x 1 x 2 x 3 s 1 s 2 s 3 rhs 1 1 0 0 0 3 2 50 s 1 0 4 0 0 1 1 0 5 x 2 0 1 1 0 0 1 2 10 x 3 0 0 0 1 0 1 1 15 Translation: max z = 50 x 1 3s 2 + 2s 3

From Wed: Unbounded LP Here was the final tableau for an unbounded region and an unbounded LP: z x 1 x 2 x 3 s 1 s 2 s 3 rhs 1 1 0 0 0 3 2 50 s 1 0 4 0 0 1 1 0 5 x 2 0 1 1 0 0 1 2 10 x 3 0 0 0 1 0 1 1 15 Translation: max z = 50 x 1 3s 2 + 2s 3 with 0 0 10 2 x = 15 5 + s 3 1 0 0 0 0 1

Example 3, A Little Foreshadowing Build the initial tableau. max z = x 1 +x 2 st 2x 1 +x 2 4 x 1 +2x 2 = 6 x 1, x 2 0

Example 3, A Little Foreshadowing Build the initial tableau. max z = x 1 +x 2 st 2x 1 +x 2 4 x 1 +2x 2 = 6 x 1, x 2 0 z x 1 x 2 e 1 rhs 1 1 1 0 0 0 2 1 1 4 0 1 2 0 6 Not standard form... No initial BFS.

Choosing x 1, x 2 as the basic variables, we can perform the row reduction using an inverse matrix: [ ] 2 1 B = 1 2

Choosing x 1, x 2 as the basic variables, we can perform the row reduction using an inverse matrix: [ ] 2 1 B = 1 2 B 1 [A b] = 1 3 [ 2 1 1 2 ] [ 2 1 1 4 1 2 0 6 ] =

Choosing x 1, x 2 as the basic variables, we can perform the row reduction using an inverse matrix: [ ] 2 1 B = 1 2 B 1 [A b] = 1 [ ] [ ] 2 1 2 1 1 4 = 3 1 2 1 2 0 6 [ 1 0 2/3 ] 2/3 0 1 1/3 8/3

Choosing x 1, x 2 as the basic variables, we can perform the row reduction using an inverse matrix: [ ] 2 1 B = 1 2 B 1 [A b] = 1 [ ] [ ] 2 1 2 1 1 4 = 3 1 2 1 2 0 6 [ 1 0 2/3 ] 2/3 0 1 1/3 8/3 The new tableau: z x 1 x 2 e 1 rhs 1 0 0 1/3 10/3 0 1 0 2/3 2/3 0 0 1 1/3 8/3

Bring e 1 into the set of BV (take x 2 out): z x 1 x 2 e 1 rhs 1 0 1 0 6 0 1 2 0 6 0 0 3 1 8 Optimal?

Bring e 1 into the set of BV (take x 2 out): z x 1 x 2 e 1 rhs 1 0 1 0 6 0 1 2 0 6 0 0 3 1 8 Optimal? Yes.

Back to the Example z x 1 x 2 e 1 rhs 1 1 1 0 0 0 2 1 1 4 0 1 2 0 6 What if we had chosen x 2 and e 1 as our basic variables?

Back to the Example z x 1 x 2 e 1 rhs 1 1 1 0 0 0 2 1 1 4 0 1 2 0 6 What if we had chosen x 2 and e 1 as our basic variables? z x 1 x 2 e 1 rhs 1 1/2 0 0 3 0 1/2 1 0 3 0 3/2 0 1 1 Conclusion?

Back to the Example z x 1 x 2 e 1 rhs 1 1 1 0 0 0 2 1 1 4 0 1 2 0 6 What if we had chosen x 2 and e 1 as our basic variables? z x 1 x 2 e 1 rhs 1 1/2 0 0 3 0 1/2 1 0 3 0 3/2 0 1 1 Conclusion? Not every choice of basic variables will be feasible!

Example 4 max x 6x 1 + 5x 2 s.t. x 1 + x 2 5 3x 1 + 2x 2 12 x 1, x 2 0 6 5 0 0 0 1 1 1 0 5 3 2 0 1 12 0 0 3 1 27 0 1 3 1 3 1 0 2 1 2 Solution is (2, 3)

Slight Change: max x 6x 1 + 4x 2 s.t. x 1 + x 2 5 3x 1 + 2x 2 12 x 1, x 2 0 6 4 0 0 0 1 1 1 0 5 3 2 0 1 12 0 0 0 2 24 0 1/3 1 1/3 1 1 2/3 0 1/3 4 New solution is (4, 0)

We can bring in x 2 with no change to z: 0 0 0 2 24 0 1/3 1 1/3 1 1 2/3 0 1/3 4 0 0 0 2 24 0 1 3 1 3 1 0 2 1 2 New solution is (2, 3). Any point on that line segment is also a maximizer.

Alternative Optimal Solutions If a NBV in Row 0 is 0, and we can pivot in this column (and maintain the same value of z), then we may have alternative optimal solutions.

Alternative Optimal Solutions If a NBV in Row 0 is 0, and we can pivot in this column (and maintain the same value of z), then we may have alternative optimal solutions. If two BFS are optimal, the line segment joining them is also optimal (by convexity).

Alternative Optimal Solutions If a NBV in Row 0 is 0, and we can pivot in this column (and maintain the same value of z), then we may have alternative optimal solutions. If two BFS are optimal, the line segment joining them is also optimal (by convexity). There may be stalling behavior.

Alternative Optimal Solutions If a NBV in Row 0 is 0, and we can pivot in this column (and maintain the same value of z), then we may have alternative optimal solutions. If two BFS are optimal, the line segment joining them is also optimal (by convexity). There may be stalling behavior. That is, it may be that once we pivot into the new BV, there may be a new way to proceed (for a better value of z).

Example Consider the following final tableau: Interpretation? z x 1 x 2 x 3 x 4 rhs 1 0 0 0 2 2 0 1 0 1 1 2 0 0 1 2 3 3

Example Consider the following final tableau: z x 1 x 2 x 3 x 4 rhs 1 0 0 0 2 2 0 1 0 1 1 2 0 0 1 2 3 3 Interpretation? Row 0 may have a 0 for x 3, but we cannot pivot in that column. How many solutions to the optim. problem do we have?

Example Consider the following LP: Start as usual: max 4x 1 + 3x 2 st x 1 6x 2 5 3x 1 11 x 1, x 2 0 4 3 0 0 0 1 6 1 0 5 3 0 0 1 11 What s going on? 0 3 0 4/3 44/3 0 6 1 1/3 4/3 1 0 0 1/3 11/3

Write out the system of equations: max z = 44/3 +3x 2 (4/3)s 2 st x 1 = 1/3 (1/3)s 2 x 2 = x 2 s 1 = 4/3 +6x 2 +(1/3)s 2 s 2 = s 2 How should we maximize this?

Write out the system of equations: max z = 44/3 +3x 2 (4/3)s 2 st x 1 = 1/3 (1/3)s 2 x 2 = x 2 s 1 = 4/3 +6x 2 +(1/3)s 2 s 2 = s 2 How should we maximize this? Set s 2 = 0, and 1 0 x = 1 0 3 4 + x 1 2 6 0 0 This increases the value of z without bound. Notice that c T d 0.

Proceed as usual: min z = x 1 + 2x 2 st x 1 x 2 1 x 1 2x 2 2 x 1, x 2 0 Interpretation? 1 2 0 0 0 1 1 1 0 1 1 2 0 1 2 0 1 1 0 1 1 1 1 0 1 0 1 1 1 1

There is an optimal solution: (1, 0) The feasible set is unbounded.

Two Types of Unboundedness The objective function is unbounded (as is the feasible region). The feasible region is unbounded, but the objective function is not. The LP is unbounded if there is a negative coefficient in Row 0, and all the remaining elements in the column are negative or zero