The Big M Method. Modify the LP

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

Chapter 4 The Simplex Algorithm Part II

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

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

Systems Analysis in Construction

The Simplex Algorithm

Week_4: simplex method II

Review Solutions, Exam 2, Operations Research

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

Linear Programming, Lecture 4

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

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

Simplex Method for LP (II)

9.5 THE SIMPLEX METHOD: MIXED CONSTRAINTS

Theory of Linear Programming

Variants of Simplex Method

Lesson 27 Linear Programming; The Simplex Method

Summary of the simplex method

Introduction to the Simplex Algorithm Active Learning Module 3

Using IOR Tutorial; Artificial Variables and Initial Basic Feasible Solutions

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

OPERATIONS RESEARCH. Michał Kulej. Business Information Systems

Math 354 Summer 2004 Solutions to review problems for Midterm #1

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

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

Summary of the simplex method

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

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

Linear Programming. Xi Chen. Department of Management Science and Engineering International Business School Beijing Foreign Studies University

Linear Programming. Dr. Xiaosong DING

OPERATIONS RESEARCH. Linear Programming Problem

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

Non-Standard Constraints. Setting up Phase 1 Phase 2

Linear Programming and the Simplex method

Section 4.1 Solving Systems of Linear Inequalities

IP Cut Homework from J and B Chapter 9: 14, 15, 16, 23, 24, You wish to solve the IP below with a cutting plane technique.

Algebraic Simplex Active Learning Module 4

OPRE 6201 : 3. Special Cases

Chap6 Duality Theory and Sensitivity Analysis

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

The Simplex Method of Linear Programming

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

OPTIMISATION 3: NOTES ON THE SIMPLEX ALGORITHM

Worked Examples for Chapter 5

TIM 206 Lecture 3: The Simplex Method

4.3 Minimizing & Mixed Constraints

MATH 445/545 Test 1 Spring 2016

February 17, Simplex Method Continued

...(iii), x 2 Example 7: Geetha Perfume Company produces both perfumes and body spray from two flower extracts F 1. The following data is provided:

AM 121: Intro to Optimization Models and Methods

IE 400: Principles of Engineering Management. Simplex Method Continued

Math 210 Finite Mathematics Chapter 4.2 Linear Programming Problems Minimization - The Dual Problem

Professor Alan H. Stein October 31, 2007

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

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

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

Gomory Cuts. Chapter 5. Linear Arithmetic. Decision Procedures. An Algorithmic Point of View. Revision 1.0

Linear Programming: Simplex Method CHAPTER The Simplex Tableau; Pivoting

4.4 The Simplex Method and the Standard Minimization Problem

1 Review Session. 1.1 Lecture 2

Special cases of linear programming

Chapter 4 The Simplex Algorithm Part I

Lecture 2: The Simplex method

Simplex Algorithm Using Canonical Tableaus

6-3 Solving Systems by Elimination

Brief summary of linear programming and duality: Consider the linear program in standard form. (P ) min z = cx. x 0. (D) max yb. z = c B x B + c N x N

THE STEPS OF THE SIMPLEX ALGORITHM

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

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

ECE 307 Techniques for Engineering Decisions

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

MATH2070 Optimisation

AM 121: Intro to Optimization

SEN301 OPERATIONS RESEARCH I LECTURE NOTES

Contents. 4.5 The(Primal)SimplexMethod NumericalExamplesoftheSimplexMethod

56:270 Final Exam - May

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

MATH 4211/6211 Optimization Linear Programming

Lecture 11 Linear programming : The Revised Simplex Method

1 Simplex and Matrices

6.2: The Simplex Method: Maximization (with problem constraints of the form )

Signature: Name (PRINT CLEARLY) and ID number:

Linear Programming Inverse Projection Theory Chapter 3

Example Problem. Linear Program (standard form) CSCI5654 (Linear Programming, Fall 2013) Lecture-7. Duality

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

Slide 1 Math 1520, Lecture 10

IE 5531: Engineering Optimization I

Practice Final Exam Answers

CSCI 1951-G Optimization Methods in Finance Part 01: Linear Programming

Sensitivity Analysis

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

In Chapters 3 and 4 we introduced linear programming

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

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

Introduction. Very efficient solution procedure: simplex method.

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

Generating Gomory's Cuts for linear integer programming problems: the HOW and WHY


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

CO350 Linear Programming Chapter 6: The Simplex Method

Transcription:

The Big M Method Modify the LP 1. If any functional constraints have negative constants on the right side, multiply both sides by 1 to obtain a constraint with a positive constant. Big M Simplex: 1

The Big M Method Modify the LP 1. If any functional constraints have negative constants on the right side, multiply both sides by 1 to obtain a constraint with a positive constant. 2. Introduce a slack variable s i 0 for each constraint. Big M Simplex: 1

The Big M Method Modify the LP 1. If any functional constraints have negative constants on the right side, multiply both sides by 1 to obtain a constraint with a positive constant. 2. Introduce a slack variable s i 0 for each constraint. 3. Introduce a surplus variable s j 0 and an artificial variable x i 0 for each constraint. Big M Simplex: 1

The Big M Method Modify the LP 1. If any functional constraints have negative constants on the right side, multiply both sides by 1 to obtain a constraint with a positive constant. 2. Introduce a slack variable s i 0 for each constraint. 3. Introduce a surplus variable s j 0 and an artificial variable x i 0 for each constraint. 4. Introduce an artificial variable x j 0 in each = constraint. Big M Simplex: 1

The Big M Method Modify the LP 1. If any functional constraints have negative constants on the right side, multiply both sides by 1 to obtain a constraint with a positive constant. 2. Introduce a slack variable s i 0 for each constraint. 3. Introduce a surplus variable s j 0 and an artificial variable x i 0 for each constraint. 4. Introduce an artificial variable x j 0 in each = constraint. 5. For each artificial variable x i, add a penalty term M x i to the objective function. Use the same constant M for all the artificial variables. (In numerical software, use a very large number for M.) Big M Simplex: 1

The Big M Method: Example Example (Big M in Action) Maximize P = 2x 1 + x 2 subject to x 1 + x 2 10 x 1 + x 2 2 with x 1, x 2 0. Big M Simplex: 2

The Big M Method: Example Example (Big M in Action) Maximize P = 2x 1 + x 2 subject to x 1 + x 2 10 x 1 + x 2 2 with x 1, x 2 0. The Big M Simplex Tableau Eq Z x 1 x 2 s 1 s 2 x 1 b (0) 1 2 1 0 0 M 0 (1) 0 1 1 1 0 0 10 (2) 0 1 1 0 1 1 2 Use Maple Big M Simplex: 2

Exercise (O-Jay) The Big M Method: Exercise O-Jay is a mixture of orange juice and orange soda. We need to restrict the amount of sugar to 4gm/bottle and maintain at least 20mg/bottle of vitamin C. What is the least cost mixture? Let: x 1 = number of ounces of orange soda in a bottle of O-Jay x 2 = number of ounces of orange juice in a bottle of O-Jay The LP is: Minimize z = 2x 1 + 3x 2 subject to 0.5x 1 + 0.25x 2 4 (sugar constraint) with x 1, x 2 0 x 1 + 3x 2 20 x 1 + x 2 = 10 (Vitamin C constraint) (10 oz in per bottle) Big M Simplex: 3

The Big M Method: Summary Summary Big M Simplex: 4

Summary The Big M Method: Summary 1. If the problem is minimize Z, change to maximize (-Z). Big M Simplex: 4

The Big M Method: Summary Summary 1. If the problem is minimize Z, change to maximize (-Z). 2. Add a slack variable s i to change to =. Big M Simplex: 4

Summary The Big M Method: Summary 1. If the problem is minimize Z, change to maximize (-Z). 2. Add a slack variable s i to change to =. 3. Subtract a surplus variable s j and add an artificial variable x j to change to =. Big M Simplex: 4

Summary The Big M Method: Summary 1. If the problem is minimize Z, change to maximize (-Z). 2. Add a slack variable s i to change to =. 3. Subtract a surplus variable s j and add an artificial variable x j to change to =. 4. Add an artificial variable x k to each = constraint. Big M Simplex: 4

Summary The Big M Method: Summary 1. If the problem is minimize Z, change to maximize (-Z). 2. Add a slack variable s i to change to =. 3. Subtract a surplus variable s j and add an artificial variable x j to change to =. 4. Add an artificial variable x k to each = constraint. 5. Add M x j to the objective function for each artificial variable x j. Big M Simplex: 4

Summary The Big M Method: Summary 1. If the problem is minimize Z, change to maximize (-Z). 2. Add a slack variable s i to change to =. 3. Subtract a surplus variable s j and add an artificial variable x j to change to =. 4. Add an artificial variable x k to each = constraint. 5. Add M x j to the objective function for each artificial variable x j. 6. Use a row operation with each artificial variable row to eliminate M from the objective function in x j columns. 1 1 Just operate on Row (0), the objective function, to reduce arithmetic. Big M Simplex: 4

Summary The Big M Method: Summary 1. If the problem is minimize Z, change to maximize (-Z). 2. Add a slack variable s i to change to =. 3. Subtract a surplus variable s j and add an artificial variable x j to change to =. 4. Add an artificial variable x k to each = constraint. 5. Add M x j to the objective function for each artificial variable x j. 6. Use a row operation with each artificial variable row to eliminate M from the objective function in x j columns. 1 7. Run the simplex algorithm. 1 Just operate on Row (0), the objective function, to reduce arithmetic. Big M Simplex: 4

The Big M Method: Big Example Example (Big Big M ) Maximize Z = 2x 1 + 5x 2 + 3x 3 subject to x 1 + 2x 2 x 3 7 with x 1, x 2, x 3 0. x 1 + x 2 2x 3 5 x 1 + 4x 2 + 3x 3 1 2x 1 x 2 + 4x 3 = 6 Big M Simplex: 5

The Big M Method: Big Example Example (Big Big M ) Maximize Z = 2x 1 + 5x 2 + 3x 3 subject to x 1 + 2x 2 x 3 7 with x 1, x 2, x 3 0. x 1 + x 2 2x 3 5 x 1 + 4x 2 + 3x 3 1 2x 1 x 2 + 4x 3 = 6 Variables There are: Big M Simplex: 5

The Big M Method: Big Example Example (Big Big M ) Maximize Z = 2x 1 + 5x 2 + 3x 3 subject to x 1 + 2x 2 x 3 7 with x 1, x 2, x 3 0. x 1 + x 2 2x 3 5 x 1 + 4x 2 + 3x 3 1 2x 1 x 2 + 4x 3 = 6 Variables There are: 3 decision variables x i Big M Simplex: 5

The Big M Method: Big Example Example (Big Big M ) Maximize Z = 2x 1 + 5x 2 + 3x 3 subject to x 1 + 2x 2 x 3 7 with x 1, x 2, x 3 0. x 1 + x 2 2x 3 5 x 1 + 4x 2 + 3x 3 1 2x 1 x 2 + 4x 3 = 6 Variables There are: 3 decision variables x i 1 slack variable s 1 Big M Simplex: 5

The Big M Method: Big Example Example (Big Big M ) Maximize Z = 2x 1 + 5x 2 + 3x 3 subject to x 1 + 2x 2 x 3 7 with x 1, x 2, x 3 0. x 1 + x 2 2x 3 5 x 1 + 4x 2 + 3x 3 1 2x 1 x 2 + 4x 3 = 6 Variables There are: 3 decision variables x i 2 surplus variables s j 1 slack variable s 1 Big M Simplex: 5

The Big M Method: Big Example Example (Big Big M ) Maximize Z = 2x 1 + 5x 2 + 3x 3 subject to x 1 + 2x 2 x 3 7 with x 1, x 2, x 3 0. x 1 + x 2 2x 3 5 x 1 + 4x 2 + 3x 3 1 2x 1 x 2 + 4x 3 = 6 Variables There are: 3 decision variables x i 1 slack variable s 1 2 surplus variables s j 3 artifical variables x j Big M Simplex: 5

The Big M Method: Big Example Initial Artificial Problem Tableau BV Eq Z x 1 x 2 x 3 s 1 s 2 s 3 x 1 x 2 x 3 b (0) 1 2 5 3 0 0 0 M M M 0 s 1 (1) 0 1 2 1 1 0 0 0 0 0 7 x 1 (2) 0 1 1 2 0 1 0 1 0 0 5 x 2 (3) 0 1 4 3 0 0 1 0 1 0 1 x 3 (4) 0 2 1 4 0 0 0 0 0 1 6 Big M Simplex: 6

The Big M Method: Big Example Initial Artificial Problem Tableau BV Eq Z x 1 x 2 x 3 s 1 s 2 s 3 x 1 x 2 x 3 b (0) 1 2 5 3 0 0 0 M M M 0 s 1 (1) 0 1 2 1 1 0 0 0 0 0 7 x 1 (2) 0 1 1 2 0 1 0 1 0 0 5 x 2 (3) 0 1 4 3 0 0 1 0 1 0 1 x 3 (4) 0 2 1 4 0 0 0 0 0 1 6 Beginning Simplex Tableau Eq x 1 x 2 x 3 s 1 s 2 s 3 x 1 x 2 x 3 b (0) 2 4M 5 2M 3 9M 0 M M 0 0 0 12M (1) 1 2 1 1 0 0 0 0 0 7 (2) 1 1 2 0 1 0 1 0 0 5 (3) 1 4 3 0 0 1 0 1 0 1 (4) 2 1 4 0 0 0 0 0 1 6 Use Maple Big M Simplex: 6