OR-1 20101 Chapter 8. General LP Problems Converting other forms to general LP problem : min c’x  - max (-c)’x   = by adding a nonnegative slack variable.

Slides:



Advertisements
Similar presentations
February 14, 2002 Putting Linear Programs into standard form
Advertisements

The simplex algorithm The simplex algorithm is the classical method for solving linear programs. Its running time is not polynomial in the worst case.
Chapter 5: Linear Programming: The Simplex Method
Operation Research Chapter 3 Simplex Method.
Linear Programming – Simplex Method
SIMPLEX METHOD FOR LP LP Model.
Dr. Sana’a Wafa Al-Sayegh
Dragan Jovicic Harvinder Singh
3.4 Artificial starting solution Page103
OR Simplex method (algebraic interpretation) Add slack variables( 여유변수 ) to each constraint to convert them to equations. (We may refer it as.
Optimization of thermal processes2007/2008 Optimization of thermal processes Maciej Marek Czestochowa University of Technology Institute of Thermal Machinery.
Computational Methods for Management and Economics Carla Gomes Module 8b The transportation simplex method.
Linear Inequalities and Linear Programming Chapter 5
The Simplex Method: Standard Maximization Problems
Operation Research Chapter 3 Simplex Method.
Solving Linear Programs: The Simplex Method
Linear Programming (LP)
MIT and James Orlin © Chapter 3. The simplex algorithm Putting Linear Programs into standard form Introduction to Simplex Algorithm.
Water Resources Development and Management Optimization (Linear Programming) CVEN 5393 Feb 25, 2013.
LINEAR PROGRAMMING SIMPLEX METHOD.
Chapter 3 Linear Programming Methods 高等作業研究 高等作業研究 ( 一 ) Chapter 3 Linear Programming Methods (II)
Chapter 6 Linear Programming: The Simplex Method
The Two-Phase Simplex Method LI Xiao-lei. Preview When a basic feasible solution is not readily available, the two-phase simplex method may be used as.
Simplex method (algebraic interpretation)
Chapter 3. Pitfalls Initialization Ambiguity in an iteration
Topic III The Simplex Method Setting up the Method Tabular Form Chapter(s): 4.
1 1 Slide © 2000 South-Western College Publishing/ITP Slides Prepared by JOHN LOUCKS.
Kerimcan OzcanMNGT 379 Operations Research1 Linear Programming: The Simplex Method Chapter 5.
1 1 © 2003 Thomson  /South-Western Slide Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
1 1 © 2003 Thomson  /South-Western Slide Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
3.3 Implementation (1) naive implementation (2) revised simplex method
Linear Programming Erasmus Mobility Program (24Apr2012) Pollack Mihály Engineering Faculty (PMMK) University of Pécs João Miranda
 Minimization Problem  First Approach  Introduce the basis variable  To solve minimization problem we simple reverse the rule that is we select the.
1 1 Slide © 2005 Thomson/South-Western Linear Programming: The Simplex Method n An Overview of the Simplex Method n Standard Form n Tableau Form n Setting.
Chapter 4 Linear Programming: The Simplex Method
Linear Programming Implementation. Linear Programming
Chapter 6 Linear Programming: The Simplex Method Section 4 Maximization and Minimization with Problem Constraints.
1 Chapter 4 The Simplex Algorithm PART 2 Prof. Dr. M. Arslan ÖRNEK.
1 THE REVISED SIMPLEX METHOD CONTENTS Linear Program in the Matrix Notation Basic Feasible Solution in Matrix Notation Revised Simplex Method in Matrix.
University of Colorado at Boulder Yicheng Wang, Phone: , Optimization Techniques for Civil and Environmental Engineering.
OR Simplex method (algebraic interpretation) Add slack variables( 여유변수 ) to each constraint to convert them to equations. (We may refer it as.
OR Chapter 7. The Revised Simplex Method  Recall Theorem 3.1, same basis  same dictionary Entire dictionary can be constructed as long as we.
An-Najah N. University Faculty of Engineering and Information Technology Department of Management Information systems Operations Research and Applications.
Simplex Method Simplex: a linear-programming algorithm that can solve problems having more than two decision variables. The simplex technique involves.
OR  Now, we look for other basic feasible solutions which gives better objective values than the current solution. Such solutions can be examined.
Simplex Method Review. Canonical Form A is m x n Theorem 7.5: If an LP has an optimal solution, then at least one such solution exists at a basic feasible.
Linear Programming Chap 2. The Geometry of LP  In the text, polyhedron is defined as P = { x  R n : Ax  b }. So some of our earlier results should.
Foundations-1 The Theory of the Simplex Method. Foundations-2 The Essence Simplex method is an algebraic procedure However, its underlying concepts are.
1 Simplex algorithm. 2 The Aim of Linear Programming A Linear Programming model seeks to maximize or minimize a linear function, subject to a set of linear.
Chapter 4 The Simplex Algorithm and Goal Programming
The Simplex Method. and Maximize Subject to From a geometric viewpoint : CPF solutions (Corner-Point Feasible) : Corner-point infeasible solutions 0.
EMGT 6412/MATH 6665 Mathematical Programming Spring 2016
Chap 10. Sensitivity Analysis
The minimum cost flow problem
Perturbation method, lexicographic method
The Two-Phase Simplex Method
Chapter 4 Linear Programming: The Simplex Method
Chap 9. General LP problems: Duality and Infeasibility
Chap 3. The simplex method
Chapter 3 The Simplex Method and Sensitivity Analysis
Solving Linear Programming Problems: Asst. Prof. Dr. Nergiz Kasımbeyli
Chapter 8. General LP Problems
Flow Feasibility Problems
Chapter 8. General LP Problems
Chapter 2. Simplex method
Simplex method (algebraic interpretation)
Chapter 8. General LP Problems
Chapter 2. Simplex method
Chapter 3. Pitfalls Initialization Ambiguity in an iteration
Presentation transcript:

OR Chapter 8. General LP Problems Converting other forms to general LP problem : min c’x  - max (-c)’x   = by adding a nonnegative slack variable   = by subtracting a nonnegative surplus variable

OR  Note that the standard problem, augmented with slack variables, is a special case of the general LP with lower bounds 0 and upper bounds + .  Def: Basic solution x * : Partition the components of x * into m basic and n-m nonbasic variables such that 1) m columns of A corresponding to basic variables are linearly independent 2) ( For free variable, no restriction. But usually 0 is used in the algorithm) (Note that the choice of basic variables does not determine a basic solution as the standard LP case. Upper and lower bound for nonbasic bounded variables must be determined too.)  Def: A basic solution x* is called feasible if l  x*  u.

OR  Modification of the simplex method to handle the general LP directly : Given a b.f.s., choose an entering nonbasic variable. Then change (increase or decrease depending on the status of the entering nonbasic variable) the value of the entering nonbasic variable while other nonbasic variables are fixed at current values. Then the value of the basic variables must be changed to satisfy the equations Ax = b.  Change the value of the entering variable while the value of the basic variables satisfy the bound constraints. If one of the basic variables attains lower or upper bound values, let it become the nonbasic variable. The entering variable becomes basic. Update the dictionary (tableau).  Here, we searches only the extreme points of the polyhedron if we do not have a free nonbasic variable.

OR  Suppose we have a b.f.s. x * = (x B *, x N * ) and corresponding dictionary (dictionary form not affected by the bound constr) Note that x B * may not be equal to B -1 b and the objective value of the current solution may not be equal to y’b. Candidates for entering nonbasic variable : 2 cases

OR  Suppose x j is selected as the entering nonbasic variable. Let while other nonbasic variables are fixed at the current values. Then the values of basic variables must change to and so that the new solution satisfy the equations. Let t* be the largest t such that New solution obtained :

OR ( continued ) If the bound on the entering nonbasic variable becomes tight first when we change the value of the entering variable  the entering nonbasic variable changes the bound status (at lower bound  at upper bound) but still remains nonbasic. Otherwise, at least one of the basic variables takes on value of upper or lower bound. The variable becomes nonbasic and the entering nonbasic variable becomes basic as in the ordinary simplex method. A degenerate solution is defined as the b.f.s. such that at least one of the basic variables has the value equal to the bound. ( in that case, t* may be zero, in which case only basis change occurs. But solution does not change. )

OR c = [ 2, 1, -2, -2, 3, 2, 3, -4, 0, -2, -3, 3 ] T l = [ -5, - , -4, -2, 2, 0, 0, 3, - , - , - , -  ] T u = [ + , 3, -2, 3, 5, 1, + , + , 0, 5, + , +  ] T Example  Maximize c’x, subject to Ax = b, l  x  u.  Let x 1, x 2 be basic variables. Then the following x * is a basic feasible solution. x* = [ ]

OR  We first find y vector from y’B = c B ’  Next, check whether any nonbasic variable satisfies the following conditions.  Satisfying (8.6)  x 5, x 7, x 11 Satisfying (8.7)  x 4, x 10, x 12 Suppose we choose x 5 as the entering nonbasic variable.

OR  Find d vector from Bd = A j  Find t in x j (t) = x j * + t For entering variable x 5, 2  2 + t  5 For basic variable x 1, -5  1 – 8 t For basic variable x 2, 15 t  3  t  0.2 and x 2 reaches its upper bound, hence leaves basis. New basic solution is x * = [ ] x 1 and x 5 are basic variables. ( compare, x* = [ ] )

OR  Current dictionary when x 1, x 2 basic: z = x 3 - 3x 4 + 2x 5 - x 6 + 2x 7 - x 8 + x 9 - x x 11 - x 12 x 1 = x 3 - 5x 4 - 8x 5 - x 6 - 2x 7 - 7x 8 - 8x 9 - 7x x 11 - x 12 x 2 = x 3 +9x x 5 - x 6 + 3x x x x x x 12 l = [ -5, - , -4, -2, 2, 0, 0, 3, - , - , - , -  ] T u = [ + , 3, -2, 3, 5, 1, + , + , 0, 5, + , +  ] T x 1 * = 1, x 2 * = 0 (x 5 entering nonbasic, increasing) x 1 *  1 – 8t, x 2 *  t, x 5 *  2 + t, - 5  1 – 8t  + , -   t  3, 2  2 + t  5  t  0.2

OR Remarks  Note that a free nonbasic variable can always be a candidate for entering variable as long as (Although, we may let it enter the basis without changing the objective value) Moreover, a free basic variable never become nonbasic in subsequent iterations. (There are no bounds for free variables) Hence we may let all free variables become basic in early iterations and let them remain basic in subsequent iterations.  In commercial software, simplex algorithm for general LP is used. (also called bounded variable simplex method) Convenient to use when we want to solve the problem again with a little bit of data change (e.g. fix the values of the variables, change the bounds, etc. )

OR Two-phase simplex method  Need initial b.f.s. to apply the simplex method for general LP Use idea similar to the one we used earlier for standard LP (8.9) Introduce artificial variables x n+1, x n+2, … x n+m For the above problem, we can find an initial b.f.s. easily and (8.9) has a feasible solution if and only if (8.10) has a solution with all artificial variables 0. (8.10)

OR  Let Set Now set the bounds for artificial variables Above solution is a b.f.s. to (8.10). Also let and consider minimize

OR  For all feasible solutions to (8.10), we have  If the optimal value of the auxiliary problem is > 0, the problem is infeasible. If the optimal value is equal to 0, all x n+i = 0, i =1,…, m, hence the solution x j, j = 1, …, n is feasible to (8.9). We restore the original objective function and solve the following problem after resetting the bounds on the artificial variables to 0. Note that the solution we have at the end of phase one is a b.f.s.

OR Remarks  At the end of phase one, the artificial variables which are nonbasic (hence have value 0) can be dropped before phase two is applied. Artificial variables which are basic cannot be dropped since we need m basic variables to denote a basic solution. However, the procedure given in p130 replaces each artificial basic variable in the basis by an original variable which is nonbasic. If the procedure fails to replace an artificial basic variable, it indicates that the constraint to which the artificial variable is attached is a redundant equation, hence the equation can be removed from the formulation and the feasible solution set is not changed. (Also the artificial variable can be dropped from the basis and eliminated from the formulation)