Termination, Cycling, and Degeneracy

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

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

CO350 Linear Programming Chapter 8: Degeneracy and Finite Termination

AM 121: Intro to Optimization

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

CO350 Linear Programming Chapter 8: Degeneracy and Finite Termination

Simplex method(s) for solving LPs in standard form

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

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

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

Farkas Lemma, Dual Simplex and Sensitivity Analysis

IE 400: Principles of Engineering Management. Simplex Method Continued

A primal-simplex based Tardos algorithm

The simplex algorithm

Simplex Algorithm Using Canonical Tableaus

Optimization (168) Lecture 7-8-9

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

Introduction to Linear and Combinatorial Optimization (ADM I)

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

MATH 4211/6211 Optimization Linear Programming

The Simplex Algorithm: Technicalities 1

Notes on Simplex Algorithm

1 Review Session. 1.1 Lecture 2

Advanced Mathematical Programming IE417. Lecture 24. Dr. Ted Ralphs

IE 5531: Engineering Optimization I

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

February 17, Simplex Method Continued

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

Yinyu Ye, MS&E, Stanford MS&E310 Lecture Note #06. 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

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

ORF 522. Linear Programming and Convex Analysis

Chapter 1 Linear Programming. Paragraph 5 Duality

Simplex Method: More Details

Summary of the simplex method

Linear Programming. Murti V. Salapaka Electrical Engineering Department University Of Minnesota, Twin Cities

Summary of the simplex method

Special cases of linear programming

Review Solutions, Exam 2, Operations Research

1 Implementation (continued)

2.098/6.255/ Optimization Methods Practice True/False Questions

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

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

9.1 Linear Programs in canonical form

"SYMMETRIC" PRIMAL-DUAL PAIR

The Dual Simplex Algorithm

III. Linear Programming

New Artificial-Free Phase 1 Simplex Method

3 The Simplex Method. 3.1 Basic Solutions

Week 2. The Simplex method was developed by Dantzig in the late 40-ties.

Operations Research Lecture 2: Linear Programming Simplex Method

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

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

Lecture 2: The Simplex method

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

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

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

Lecture slides by Kevin Wayne

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

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)

Example Bases and Basic Feasible Solutions 63 Let q = >: ; > and M = >: ;2 > and consider the LCP (q M). The class of ; ;2 complementary cones

IE 5531: Engineering Optimization I

The dual simplex method with bounds

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

In Chapters 3 and 4 we introduced linear programming

3 Does the Simplex Algorithm Work?

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

Contents. 4.5 The(Primal)SimplexMethod NumericalExamplesoftheSimplexMethod

Math Models of OR: Sensitivity Analysis

15-780: LinearProgramming

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

Discrete Optimization. Guyslain Naves

Part 1. The Review of Linear Programming

A Review of Linear Programming

Introduction to Operations Research

AM 121: Intro to Optimization Models and Methods Fall 2018

Linear programs Optimization Geoff Gordon Ryan Tibshirani

DM545 Linear and Integer Programming. Lecture 7 Revised Simplex Method. Marco Chiarandini

Lecture: Algorithms for LP, SOCP and SDP

The Simplex Algorithm

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

MATH 445/545 Test 1 Spring 2016

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

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

Motivating examples Introduction to algorithms Simplex algorithm. On a particular example General algorithm. Duality An application to game theory

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

Lecture Simplex Issues: Number of Pivots. ORIE 6300 Mathematical Programming I October 9, 2014

Systems Analysis in Construction

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

OPERATIONS RESEARCH. Linear Programming Problem

Linear Programming Duality

OPRE 6201 : 3. Special Cases

::::: OFTECHY. .0D 0 ::: ::_ I;. :.!:: t;0i f::t l. :- - :.. :?:: : ;. :--- :-.-i. .. r : : a o er -,:I :,--:-':: : :.:

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

Linear Programming The Simplex Algorithm: Part II Chapter 5

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

ORF 522. Linear Programming and Convex Analysis

Math Models of OR: Some Definitions

The Simplex Algorithm and Goal Programming

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

Transcription:

Chapter 4 Termination, Cycling, and Degeneracy We now deal first with the question, whether the simplex method terminates. The quick answer is no, if it is implemented in a careless way. Notice that we have left it open to choose the entering variable (there could be several columns whose reduced cost are less than zero) and we also did not specify how to choose the exiting variable (there could be several basis elements i with u( i ) > 0 and x ( i )/u( i ) minimal to choose from. Pivoting rules specify the alternative to choose from and there are pivoting rules, which prevent the simplex algorithm from cycling. The following is an example of cycling, see also [1, p. 104]. -3/4 20-1/2 6 0 0 0 3 1/4-8 -1 9 1 0 0 0 1/2-12 -1/2 3 0 1 0 0 0-4 -7/2 33 3 0 0 3 1-32 -4 36 4 0 0 0 0 4 3/2-15 -2 1 0 0 0 0-2 18 1 1 0 3 1 0 8-84 -12 8 0 0 0 1 3/8-15/4-1/2 1/4 0 0 1/4 0 0-3 -2 3 0 3-3/64 1 0 3/16 1/16-1/8 0 0 1/8 0 1-21/2-3/2 1 0 0-1/8 0 0 21/2 3/2-1 1 1 35

36-1/2 16 0 0-1 1 0 3-5/2 56 1 0 2-6 0 0-1/4 16/3 0 1 1/3-2/3 0 0 5/2-56 0 0-2 6 1 1-7/4 44 1/2 0 0-2 0 3 1/6-4 -1/6 1 0 1/3 0 0-5/4 28 1/2 0 1-3 0 0-3/4 20-1/2 6 0 0 0 3 1/4-8 -1 9 1 0 0 0 1/2-12 -1/2 3 0 1 0 0 In fact we have not made any progress in the objective function value during all these pivots. Inspecting the pivot steps, we see that the problem lies in the fact that we have basic feasible solutions which are zero at some of the basic components. If this is never the case, then the simplex method terminates, as we show now. Recall that a basis with reduced costs c 0 is optimal, see Lemma 3.5. There is a weak converse to this lemma. efore we state it, we define the notion of degeneracy. Definition 4.1 (Degenerate basic solution). A basic solution x associated to the basis is degenerate, if there exists an index i with x (i )=0. If x (i ) 0 for all i, then x is called non-degenerate. Lemma 4.1. Let x be a non-degenerate basic feasible solution associated to the basis = { 1,..., m }. If there exists an index i {1,...,n} with c(i )< 0, then x is not optimal. Proof. Suppose that the reduced cost of variable j is negative, c(j ) < 0 and inspect the tableau of c T c T A 1 A ct x A x. Let u(1),...,u(m) be the components of the j -th column of the system matrix of the tableau. If u(i ) 0 for all i, then the linear program is unbounded and the assertion follows. Otherwise let K = {i : u(i )>0} and let i K be an index where the minimum min{x ( i )/u(i ): i K } is attained. The new objective function value after the pivot step is c T x + c(j )x ( i )/u(i ) (35) and since c(j )<0, this is smaller than c T x. This Lemma also shows that the simplex method terminates if the basic feasible solutions are all non-degenerate.

Theorem 4.1. If all basic feasible solutions are non-degenerate, then the simplex method terminates, regardless of the choice among the alternatives among entering and leaving variables. Proof. The proof of the previous lemma, in particular equation (35) shows that the objective function value strictly improves each iteration of the simplex method. Each tableau is uniquely defined by a basis. We never re-visit a tableau, since the ( objective function is strictly increasing. The number of bases is bounded by n ) m. The assertion follows. 37 Perturbation The termination argument for the simplex algorithm for linear programs, who do not have degenerate basic feasible solutions, is very simple and nice and in fact one can twist it into a pivot-rule for the simplex-algorithm which makes the simplex algorithm terminate. We start with the linear program min{c T x : x R n, Ax= b, x 0} (36) and assume that S {1,...,n} is a feasible basis with A S = I m. This assumption can be made, since we can replace Ax= b with S Ax=A 1 S b. The idea is to transform (36) into into a linear program such that the following conditions hold. min{c T x : x R n, Ax= b, x 0} (37) i) The LP (37) does not have degenerate basic solutions. ii) If is an infeasible basis of (36), then is also an infeasible basis of (37). iii) The LP (37) is feasible. Lemma 4.2. The simplex algorithm terminates on the linear program (37). If it asserts that the linear program (37) is unbounded, then the linear program (36) is also unbounded. If it outputs an optimal basis of (37) then this basis is also optimal for (36). Proof. It follows from Theorem 4.1 and the property i) that the simplex method terminates on the linear program (37). If it asserts that (37) is unmounded, then there exists a d 0 with Ad = 0 and c T d < 0. This means that the linear program (36) is also unbounded. Suppose therefore that the simplex method on (37) terminates by outputting a basis. This basis is a feasible basis of (36) by property ii). The reduced costs of this basis are the same for the linear programs (36) and (37) which implies that is also an optimal basis of (37).

38 Now we describe the construction of (37), more precisely the construction of b, which is b 2 = b+ (38). for some small>0. Since>0 the basic solution x associated to S with m xs = b+. and x = 0 m S is a basic feasible solution of (37) and thus iii) follows. We show that we can choose an > 0 such that ii) holds. Suppose that is an infeasible basis. This means that there exists an entry i of such that ( b)(i ) < 0. Clearly, we can choose > 0 small enough such that b+. m (i )<0 (39) and the basis is still infeasible for the linear program (37). The most interesting property to infer is property i). Let be any basis and consider the vector b+. m (40) which determines the components of x of the basic solution. If we treat as a variable, then the i -th component of this vector (40) is a polynomial in which we denote by p i (). Each of the polynomials p i () is unequal to the zero polynomial, see exercise 2 which implies that there are only a finite (at most m) real-roots of p i. Consequently, there exists an i > 0 for each p i such that p i () 0 for each ]0, i [. Thus if we choose>0 such that it is smaller than all and all i from above, then the perturbed problem with satisfies the properties i-iii) from above. b = b+. m

39 Symbolic computation with The good news is that we do not have to calculate with a concrete>0 at all. Let us understand which variable would leave the basis if we would calculate with a very small. Recall that we consider the index set K = {i : u(i ) > 0}, where u is the pivot column of the tableau c T c T A 1 A ct x A x. The leaving variable is i, where i K minimizes the expression x ( i )/u(i ), i K. We have x ( i )/u(i )=[( b)(i )+(A 1. )(i )]/u(i ). m Definition 4.2 (Lexicographic order). Let u, v R n be vectors. We have u < lex v, if u=v or if the first nonzero component of u v is strictly negative. Since>0 is arbitrarily small we see that we need to find i such that the vector [( b)(i ) (A 1 ) i ]/u(i ) is lexicographically minimal. This is the lexicographic pivoting rule: 1. If c 0, then output optimal basis 2. Otherwise, let j be an index with c(j )<0 and let u = A j be the j -th column of the system matrix of the tableau. If u 0, then output, the linear program is unbounded. 3. Otherwise compute the vectors [( b)(i ) (A 1 ) i ]/u(i ) for all i = 1,...,m with u(i )>0. Let i be an index for which this vector is lexicographically smallest. The index i leaves the basis and j enters the basis, i.e., the new basis is = \ { i } {j }. 4. Update the tableau to c T c T A c T x A x. Theorem 4.2. The simplex method terminates, if the leaving variable is chosen according to the lexicographic pivot rule above. land s rule The following is an alternative pivoting rule which avoids cycling, see, e.g. [2]. During an iteration of the simplex method (Chapter 3), find a smallest j such that c( j ) is less than 0. Let this j enter the basis. Out of all the indices i that may leave the basis, choose the smallest one.

40 Exercises 1. Provide an example of a degenerate basic feasible solution x and an associated basis which is optimal but whose reduced cost vector c T = c T c T A 1 A does not satisfy c 0. 2. Show that p i () 0 holds for each i {1,...,m} and each basis. 3. Provide an example of a valid perturbation, as described above, such that a basis which is feasible for the original LP (36) is infeasible for the problem (37). References 1. D. ertsimas and J. N. Tsitsiklis. Introduction to linear optimization. Athena Scientfic, elmont, Mass., 1997. 2. V. Chvátal. Linear programming. W. H. Freeman and Company, 1983.