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

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

AM 121: Intro to Optimization

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

Sensitivity Analysis

IE 400: Principles of Engineering Management. Simplex Method Continued

Simplex Algorithm Using Canonical Tableaus

February 17, Simplex Method Continued

Summary of the simplex method

Special cases of linear programming

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

AM 121: Intro to Optimization Models and Methods Fall 2018

Simplex Method for LP (II)

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

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

Chapter 4 The Simplex Algorithm Part II

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

Simplex method(s) for solving LPs in standard form

1 Review Session. 1.1 Lecture 2

In Chapters 3 and 4 we introduced linear programming

OPRE 6201 : 3. Special Cases

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

Chap6 Duality Theory and Sensitivity Analysis

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

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

9.1 Linear Programs in canonical form

Part 1. The Review of Linear Programming

3 The Simplex Method. 3.1 Basic Solutions

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

Systems Analysis in Construction

CO350 Linear Programming Chapter 8: Degeneracy and Finite Termination

Linear programs Optimization Geoff Gordon Ryan Tibshirani

The simplex algorithm

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

Linear Programming and the Simplex method

Week_4: simplex method II

The Simplex Algorithm and Goal Programming

ORF 522. Linear Programming and Convex Analysis

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

MATH2070 Optimisation

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

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

ECE 307 Techniques for Engineering Decisions

Summary of the simplex method

Lecture 2: The Simplex method

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

CO350 Linear Programming Chapter 8: Degeneracy and Finite Termination

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

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

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

Lecture slides by Kevin Wayne

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

TIM 206 Lecture 3: The Simplex Method

CPS 616 ITERATIVE IMPROVEMENTS 10-1

Review Solutions, Exam 2, Operations Research

Lecture 5 Simplex Method. September 2, 2009

New Artificial-Free Phase 1 Simplex Method

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

Lecture 4: Algebra, Geometry, and Complexity of the Simplex Method. Reading: Sections 2.6.4, 3.5,

IE 5531: Engineering Optimization I

MATH 445/545 Test 1 Spring 2016

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

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

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

CHAPTER 2. The Simplex Method

Developing an Algorithm for LP Preamble to Section 3 (Simplex Method)

Linear Programming, Lecture 4

Chapter 4 The Simplex Algorithm Part I

AM 121: Intro to Optimization Models and Methods

The Simplex Algorithm

Math Models of OR: Some Definitions

Contents. 4.5 The(Primal)SimplexMethod NumericalExamplesoftheSimplexMethod

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

Week 3: Simplex Method I

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

OPERATIONS RESEARCH. Linear Programming Problem

The Simplex Algorithm: Technicalities 1

The dual simplex method with bounds

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

Optimization (168) Lecture 7-8-9

Math 273a: Optimization The Simplex method

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

THE STEPS OF THE SIMPLEX ALGORITHM

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

IE 400 Principles of Engineering Management. The Simplex Algorithm-I: Set 3

CO350 Linear Programming Chapter 6: The Simplex Method

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

M.SC. MATHEMATICS - II YEAR

GETTING STARTED INITIALIZATION

Linear & Integer programming

Linear Programming Redux

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

Lesson 27 Linear Programming; The Simplex Method

February 22, Introduction to the Simplex Algorithm

Linear Programming: Simplex Algorithm. A function of several variables, f(x) issaidtobelinear if it satisþes the two

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

IE 5531: Engineering Optimization I

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

MAT016: Optimization

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

56:171 Operations Research Midterm Exam--15 October 2002

Transcription:

Dr. Maddah ENMG 500 Engineering Management I 10/21/07 Computational Procedure of the Simplex Method The optimal solution of a general LP problem is obtained in the following steps: Step 1. Express the problem in tableau form. Step 2. Select a starting basic feasible (BF) solution. This step involves two cases: a) If all the constraints in the original problem are and RHS > 0, the stack variables give the starting BF solution. b) Otherwise, a technique called the artificial variables technique is used to give a starting BF solution. Step 3. Generate new BF solutions using both the optimality and feasibility conditions until the optimal solution is reached. Optimality conditions For max problems, the entering variable is selected as the nonbasic variable having the most negative coefficient in the objective function row (Z-row). For min problems, select the most positive. Break ties at random. If all Z-row coefficients are nonnegative (for max problems) or nonpositive (for min problems), the optimal solution has been reached. Note the optimal solution. Stop. Feasibility conditions The leaving variable for max and min problems is the basic variable with the smallest ratio of the RHS to the positive constraint coefficient of the entering variable (denominator). If denominator 0, ignore the corresponding variable. Break ties at random. 1

Artificial variables technique (the Big M method) For problems with and = constraints, the slack variables cannot provide a starting feasible solution. Use the Big-M method as follows. Add nonnegative artificial variables to the left hand side of each of the equations corresponding to constraints of the and = type. Choose a starting BF solution with these artificial variables as basic variables. To drive the artificial variables out of the basis add a very large unit penalty to these variables in the objective function. (-M for max problems and +M for min problems). Apply simplex iterations. If the LP has a solution, this will lead aa real (non-artificial) optimal solution. Big-M example min Z 2x s.t. 3 x x 3 4x 3x 6 i x x 2x 3 x 0 nin Z 2x x MR MR ST 3 x x R 3 1 4x 3 x S R 6 2 2 x 2 x S 3 3 x, S, R 0 i i i An initialization step is requires to put the tableau in the right form. I.e., to have the identity matrix in the artificial variable columns. Then, the simplex method proceeds as usual. 2

Initialization step, Set l 0 = l 0 + Ml 1 + Ml 2 x 1 x 2 S 2 R 1 R 2 S 3 RHS ratio Z -2-1 0 -M -M 0 0 -- R 1 3 1 0 1 0 0 3 -- R 2 4 3-1 0 1 0 6 -- S 3 0 0 0 1 3 -- x 1 x 2 S 2 R 1 R 2 S 3 RHS ratio Z 7M-2 4M-1 -M 0 0 0 9M -- R 1 3 1 0 1 0 0 3 1 R 2 4 3-1 0 1 0 6 3/2 S 3 0 0 0 1 3 3 x 1 x 2 S 2 R 1 R 2 S 3 RHS Degeneracy Z 0 (5M-1)/3 -M (-7M+2)/3 0 0 2M+2 -- x 1 1 1/3 0 1/3 0 0 1 3 R 2 0 5/3-1 -4/3 1 0 2 6/5 S 3 0 5/3 0-1/3 0 6/5 x 1 x 2 S 2 R 1 R 2 S 3 RHS Z 0 0-1/5 2/5-M 1/5-M 0 12/5 x 1 1 0 1/5 3/5-1/5 0 3/5 x 2 0 1-3/5-4/5 3/5 0 6/5 S 3 0 0 1 1-1 1 0 2 3 The optimal solution is x 1 * = 3/5, x 2 * = 6/5 and Z* = 12/5. 2 3/2 ( 3 5, 6 5) Simplex Path 1 3/2 3 x1 3

Variants of the Simplex Method Degeneracy. A BF solution is said to be degenerate if m or more constraints are binding at it, where m is the number of decision variables. The point B above represents a degenerate solution. Degeneracy can be detected from the simplex tableau when two nonnegative ratios are equal. At a degenerate solution at least one basic variable equal to zero. E.g., In the optimal tableau above (corresponding to B), S 3 = 0, although S 3 is a basic variable. In some rare cases, degeneracy leads to cycling, where the simplex algorithm gets stuck at a degenerate corner point for ever (the simplex cycles indefinitely between bases corresponding to this point). See the cycling example in this set. In other equally rare cases, degeneracy can lead to stalling where the simplex method spends a long time moving between degenerate bases at a point before moving to another point. Unboundedness. An LP feasible region is said to be unbounded if one decision variable can be increased indefinitely without violating the constraints. If, in addition, the objective function increases (decreases) indefinitely with the decision variable increase, then the optimal solution is unbounded. In the simplex tableau, if all the constraint coefficients corresponding to a nonbasic variable are 0, then the feasible region is unbounded. If, in addition, the coefficient of the nonbasic variable in the Z-row is negative (for a max problem) or positive (for a min problem), then the optimal solution is unbounded. E.g., 4

Unbounded Solution max Z 2x x s.t. x x 10 max Z 2x x 2x x 40 x, x 0 s.t. x x S 10 1 2 x x S 40 2 x, x, S, S 0 x 1 x 2 S 1 S 2 RHS ratio Z -2-1 0 0 0 -- S 1 1-1 1 0 10 S 2 2-1 0 1 40 x2 Z c 10 20 x1 Alternate Optima. This happens when the objective function is parallel to one of the constraints which are binding at an optimal solution. In this case, there exist infinitely many optima all having the same (optimal) objective value. 5

It means that the objective can be achieved in several ways. In the simplex tableau, an alternate optimal situation is detected when one of the coefficients corresponding to a nonbasic var iable in the Z-row is zero. E.g., max Z 2x 4x s.t. x 2x 5 x x x, x 0 4 x 1 x 2 S 1 S 2 RHS ratio Z -2-4 0 0 0 -- S 1 1 0 5 5/2 S 2 1 1 0 1 4 4 Alternate Optima x 1 x 2 S 1 S 2 RHS ratio Z 0 0 2 0 10 -- x 2 1/2 1 1/2 0 5/2 5 S 2 1/2 0-1/2 1 3/2 3 x 1 x 2 S 1 S 2 RHS Z 0 0 2 0 10 x 2 0 1 1-1 1 x 1 1 0-3 Alternate Optima We conclude that the segment joining the two points (0, 5/2) and (3, 1) defines the set of alternate optima with a Z* = 10. 6

x2 4 Z 5/2 (3, 1) 5 4 x1 Infeasible Solution. This means the constraints of the LP cannot be satisfied by any solution (i.e., the constraints are conflicting). With nonnegative decision variables, infeasible solutions are encountered with = or constraints. In this case, the Big-M method terminates with an artificial variable being basic (see text example 3.5-4, p. 121, text). max Z 3x 2x s.t. 2x x 2 3 x 4x 12 x, x 0 7

x2 3 2 1 4 x1 8