Artificial Variables, 2-Phase and Big M Methods

Slides:



Advertisements
Similar presentations
TWO STEP EQUATIONS 1. SOLVE FOR X 2. DO THE ADDITION STEP FIRST
Advertisements

1 Chapter 14 Making the most of things: Linear Programming.
By D. Fisher Geometric Transformations. Reflection, Rotation, or Translation 1.
and 6.855J Cycle Canceling Algorithm. 2 A minimum cost flow problem , $4 20, $1 20, $2 25, $2 25, $5 20, $6 30, $
February 21, 2002 Simplex Method Continued
Thursday, March 7 Duality 2 – The dual problem, in general – illustrating duality with 2-person 0-sum game theory Handouts: Lecture Notes.
Tuesday, March 5 Duality – The art of obtaining bounds – weak and strong duality Handouts: Lecture Notes.
February 14, 2002 Putting Linear Programs into standard form
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
0 - 0.
DIVIDING INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
ADDING INTEGERS 1. POS. + POS. = POS. 2. NEG. + NEG. = NEG. 3. POS. + NEG. OR NEG. + POS. SUBTRACT TAKE SIGN OF BIGGER ABSOLUTE VALUE.
SUBTRACTING INTEGERS 1. CHANGE THE SUBTRACTION SIGN TO ADDITION
MULT. INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
Addition Facts
DMOR Linear Programming 2. Solving LPs – general case Till now we talked about the standard form – Maximization – Constraints of the form – RHS of the.
1 Outline relationship among topics secrets LP with upper bounds by Simplex method basic feasible solution (BFS) by Simplex method for bounded variables.
Outline Minimum Spanning Tree Maximal Flow Algorithm LP formulation 1.
8.6 Linear Programming. Linear Program: a mathematical model representing restrictions on resources using linear inequalities combined with a function.
Squares and Square Root WALK. Solve each problem REVIEW:
The simplex algorithm The simplex algorithm is the classical method for solving linear programs. Its running time is not polynomial in the worst case.
30S Applied Math Mr. Knight – Killarney School Slide 1 Unit: Linear Programming Lesson 5: Problem Solving Problem Solving with Linear Programming Learning.
Simplex Method MSci331—Week 3~4.
Addition 1’s to 20.
25 seconds left…...
Test B, 100 Subtraction Facts
Week 1.
We will resume in: 25 Minutes.
©Brooks/Cole, 2001 Chapter 12 Derived Types-- Enumerated, Structure and Union.
Dantzig-Wolfe Decomposition
9.2 Absolute Value Equations and Inequalities
IEOR 4004 Midterm Review (part I)
1 Sections 5.1 & 5.2 Inequalities in Two Variables After today’s lesson, you will be able to graph linear inequalities in two variables. solve systems.
EMIS 8374 LP Review: The Ratio Test. 1 Main Steps of the Simplex Method 1.Put the problem in row-0 form. 2.Construct the simplex tableau. 3.Obtain an.
Operation Research Chapter 3 Simplex Method.
LECTURE 14 Minimization Two Phase method by Dr. Arshad zaheer
Degeneracy and the Convergence of the Simplex Algorithm LI Xiao-lei.
Copyright (c) 2003 Brooks/Cole, a division of Thomson Learning, Inc. 1 Chapter 4 The Simplex Algorithm and Goal Programming to accompany Introduction to.
The Simplex Method: Standard Maximization Problems
Minimization by Dr. Arshad zaheer
5.6 Maximization and Minimization with Mixed Problem Constraints
D Nagesh Kumar, IIScOptimization Methods: M3L4 1 Linear Programming Simplex method - II.
Chapter 4 The Simplex Algorithm and Goal Programming
MIT and James Orlin © Chapter 3. The simplex algorithm Putting Linear Programs into standard form Introduction to Simplex Algorithm.
The Dual Problem: Minimization with problem constraints of the form ≥
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.
Operations Research Assistant Professor Dr. Sana’a Wafa Al-Sayegh 2 nd Semester ITGD4207 University of Palestine.
Simplex Algorithm.Big M Method
ECE 556 Linear Programming Ting-Yuan Wang Electrical and Computer Engineering University of Wisconsin-Madison March
Barnett/Ziegler/Byleen Finite Mathematics 11e1 Learning Objectives for Section 6.4 The student will be able to set up and solve linear programming problems.
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.
The big M method LI Xiao-lei.
Solving Linear Programming Problems: The Simplex Method
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
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.
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.
Simplex Method Meeting 5 Course: D Deterministic Optimization Year: 2009.
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.
Perturbation method, lexicographic method
The Two-Phase Simplex Method
Chapter 4 Linear Programming: The Simplex Method
Presentation transcript:

Artificial Variables, 2-Phase and Big M Methods For the example, go to p. 16.

Artificial Variables, 2-Phase and Big M Methods Facts: To start, we need a canonical form If we have a  constraint with a nonnegative right-hand side, it will contain an obvious basic variable (which?) after introducing a slack var. If we have an equality constraint, it contains no obvious basic variable If we have a  constraint with a nonnegative right-hand side, it contains no obvious basic variable even after introducing a surplus var. © 2008 MGS

Compare! 2x + 3y  5  2x + 3y + s = 5, s  0 (s basic) 2x + 3y = 5  ??????? Infeasible if x=y=0! 2x + 3y  5  2x + 3y - s = 5, s  0 (??????) Infeasible if x=y=0! ?????????????????? © 2008 MGS

One Equality??? 2x + 3y = 5  2x + 3y + a = 5, a = 0 (E) (a is basic, but it should be 0!) How do we force a = 0? This is of course not feasible if x=y=0, as 0+0+0 5! © 2008 MGS

One Equality??? 2x + 3y = 5  2x + 3y + a = 5, a = 0 (E) (a basic, but it should be 0!) How do we force a = 0? This is of course not feasible if x=y=0, as 0+0+0 5 Idea: ! solve a first problem with Min {a | constraint (E) + (a  0) + other constraints }! © 2008 MGS

Artificial Variables Notice: In an equality constraint, the extra variable is called an artificial variable. For instance, in 2x + 3y + a = 5, a = 0 (E) a is an artificial variable. © 2008 MGS

One Inequality  ??? 2x + 3y  5  2x + 3y - s = 5, s  0 (I) s could be the basic variable, but it should be  0 and for x=y=0, it is -5 ! How do we force s  0? ? © 2008 MGS

how? One Inequality  ??? 2x + 3y  5  2x + 3y - s = 5, s  0 (I) s could be the basic variable, but it should be  0 and it is -5 for x=y=0! How do we force s  0? By making it 0! how? © 2008 MGS

One Inequality  ??? 2x + 3y  5  2x + 3y - s = 5, s  0 (E) s could be basic, but it should be  0 and it is -5 for x=y=0! How do we force s  0? By making it 0! But we have to start with a canonical form… so treat is as an equality constraint! 2x + 3y - s + a = 5, s  0, a  0 and Min a © 2008 MGS

Artificial Variables Notice: In a  inequality constraint, the extra variable a is called an artificial variable. For instance, in 2x + 3y – s + a = 5, s  0, a  0 (E) a is an artificial variable. In a sense, we allow temporarily a small amount of cheating, but in the end we cannot allow it! © 2008 MGS

What if we have many such = and  constraints? 7x - 3y – s1 + a1 = 6, s1,a1  0 (I) 2x + 3y + a2 = 5, a2  0 (II) a1 and a2 are artificial variables, s1 is a surplus variable. One minimizes their sum: Min {a1+a2 | a1, a2  0, (I), (II), other constraints} i.e., one minimizes the total amount of cheating! © 2008 MGS

Then What? We have two objectives: Get a “feasible” canonical form Maximize our original problem Two methods: 2-phase method (phase 1, then phase 2) big M method © 2008 MGS

2-Phase Method Phase I: find a BFS Minimize the sum of the artificial variables If min = 0, we have found a BFS If min > 0, then we cannot find a solution with no “cheating”… the original problem is infeasible Phase 2: solve original LP Start from the phase 1 BFS, and maximize the original objective function. © 2008 MGS

Big-M Method Combine both objectives : (1) Min i ai (2) Max j cj xj into a single one: (3) Max – M i ai + j cj xj where M is a large number, larger than anything subtracted from it. If one minimizes j cj xj then the combined objective function is Min M i ai + j cj xj © 2008 MGS

The simplex method algorithm requires a starting bfs. The Big M Method The simplex method algorithm requires a starting bfs. Previous problems have found starting bfs by using the slack variables as our basic variables. If an LP have ≥ or = constraints, however, a starting bfs may not be readily apparent. In such a case, the Big M method may be used to solve the problem. Consider the following problem. © 2003 Brooks/Cole

Example Bevco manufactures an orange-flavored soft drink called Oranj by combining orange soda and orange juice. Each orange soda contains 0.5 oz of sugar and 1 mg of vitamin C. Each ounce of orange juice contains 0.25 oz of sugar and 3 mg of vitamin C. It costs Bevco 2¢ to produce an ounce of orange soda and 3¢ to produce an ounce of orange juice. Bevco’s marketing department has decided that each 10-oz bottle of Oranj must contain at least 30 mg of vitamin C and at most 4 oz of sugar. Use linear programming to determine how Bevco can meet the marketing department’s requirements at minimum cost. © 2003 Brooks/Cole

The Big M Method Let x1 = number of ounces of orange soda in a bottle of Oranj x2 = number of ounces of orange juice in a bottle of Oranj x1 x2

The Big M Method Letting x1 = number of ounces of orange soda in a bottle of Oranj x2 = number of ounces of orange juice in a bottle of Oranj The LP is: min z = 2x1 + 3x2 st 0.5x1 + 0.25x2 ≤ 4 (sugar constraint) x1 + 3x2 ≥ 20 (Vitamin C constraint) x1 + x2 = 10 (10 oz in 1 bottle) x1, x2  0 The LP in standard form is shown on the next slide. © 2003 Brooks/Cole

The Big M Method Row 1:-z + 2x1 + 3x2 = 0 Row 2: 0.5x1 + 0.25x2 + s1 = 4 Row 3: x1 + 3x2 - s2 = 20 Row 4: x1 + x2 = 10 The LP in standard form has z and s1 which could be used for BVs but row 2 would violate sign restrictions and row 3 no readily apparent basic variable. In order to use the simplex method, a bfs is needed. To remedy the predicament, artificial variables are created. The variables will be labeled according to the row in which they are used as seen below. The basic variables are in red: Row 1:-z + 2x1 + 3x2 = 0 Row 2: 0.5x1 + 0.25x2 + s1 = 4 Row 3: x1 + 3x2 - s2 + a2 = 20 Row 4: x1 + x2 + a3 = 10 © 2003 Brooks/Cole

The Big M Method If all artificial variables in the optimal solution equal zero, the solution is optimal. If some artificial variables are positive in the optimal solution, the problem is infeasible. The Bevco example continued: Initial Tableau © 2003 Brooks/Cole

4.10 – The Big M Method

The Big M Method