D1 Discrete Mathematics

Slides:



Advertisements
Similar presentations
Chapter 5: Linear Programming: The Simplex Method
Advertisements

SIMPLEX METHOD FOR LP LP Model.
Assignment (6) Simplex Method for solving LP problems with two variables.
Nonstandard Problmes Produced by E. Gretchen Gascon.
Transportation Problem (TP) and Assignment Problem (AP)
Chapter 6 Linear Programming: The Simplex Method
Dr. Sana’a Wafa Al-Sayegh
Copyright (c) 2003 Brooks/Cole, a division of Thomson Learning, Inc
Sections 4.1 and 4.2 The Simplex Method: Solving Maximization and Minimization Problems.
LINEAR PROGRAMMING SIMPLEX METHOD
1. The Simplex Method for Problems in Standard Form 1.
Chapter 6 Linear Programming: The Simplex Method Section 3 The Dual Problem: Minimization with Problem Constraints of the Form ≥
Linear Inequalities and Linear Programming Chapter 5
The Simplex Method: Standard Maximization Problems
The Simplex Algorithm An Algorithm for solving Linear Programming Problems.
Operation Research Chapter 3 Simplex Method.
1 Linear programming simplex method This presentation will help you to solve linear programming problems using the Simplex tableau.
Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 1 of 99 Chapter 4 The Simplex Method.
The Simplex Method.
Chapter 4 The Simplex Method
Stevenson and Ozgur First Edition Introduction to Management Science with Spreadsheets McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies,
LINEAR PROGRAMMING SIMPLEX METHOD.
1. The Simplex Method.
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.
8. Linear Programming (Simplex Method) Objectives: 1.Simplex Method- Standard Maximum problem 2. (i) Greedy Rule (ii) Ratio Test (iii) Pivot Operation.
THE SIMPLEX METHOD.
Chapter 6 Linear Programming: The Simplex Method Section 2 The Simplex Method: Maximization with Problem Constraints of the Form ≤
This presentation shows how the tableau method is used to solve a simple linear programming problem in two variables: Maximising subject to two  constraints.
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.
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.
Setting Up the Initial Simplex Tableau and Finding the Pivot Element Example 4.2 # 17 Produced by E. Gretchen Gascon.
The Simplex Method Updated 15 February Main Steps of the Simplex Method 1.Put the problem in Row-Zero Form. 2.Construct the Simplex tableau. 3.Obtain.
1 1 © 2003 Thomson  /South-Western Slide Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
4  The Simplex Method: Standard Maximization Problems  The Simplex Method: Standard Minimization Problems  The Simplex Method: Nonstandard Problems.
Chapter 6 Linear Programming: The Simplex Method Section 3 The Dual Problem: Minimization with Problem Constraints of the Form ≥
This presentation shows how the tableau method is used to solve a simple linear programming problem in two variables: Maximising subject to three  constraints.
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.
THE SIMPLEX ALGORITHM Step 1 The objective row is scanned and the column containing the most negative term is selected (pivotal column) - indicate with.
Barnett/Ziegler/Byleen Finite Mathematics 11e1 Learning Objectives for Section 6.3 The student will be able to formulate the dual problem. The student.
Linear Inequalities and Linear Programming Chapter 5 Dr.Hayk Melikyan/ Department of Mathematics and CS/ 5.5 Dual problem: minimization.
Simplex Method for solving LP problems with two variables.
10/9 More optimization Test 2 is scheduled for next Monday, October pm Come to this room, FB 200, to take the test. This is a room change from what.
Copyright © 2006 Brooks/Cole, a division of Thomson Learning, Inc. Linear Programming: An Algebraic Approach 4 The Simplex Method with Standard Maximization.
GOOD MORNING CLASS! In Operation Research Class, WE MEET AGAIN WITH A TOPIC OF :
The Simplex Method. and Maximize Subject to From a geometric viewpoint : CPF solutions (Corner-Point Feasible) : Corner-point infeasible solutions 0.
5.5 Dual problem: minimization with problem constraints of the form Associated with each minimization problem with constraints is a maximization problem.
Linear Programming Many problems take the form of maximizing or minimizing an objective, given limited resources and competing constraints. specify the.
Solving Linear Program by Simplex Method The Concept
Chap 10. Sensitivity Analysis
Linear programming Simplex method.
The Two-Phase Simplex Method
Linear Programming.
Chapter 4 Linear Programming: The Simplex Method
The Simplex Method: Standard Minimization Problems
Chapter 3 The Simplex Method and Sensitivity Analysis
Lial/Hungerford/Holcomb/Mullins: Mathematics with Applications 11e Finite Mathematics with Applications 11e Copyright ©2015 Pearson Education, Inc. All.
The Simplex Method: Nonstandard Problems
Part 3. Linear Programming
The Simplex Method The geometric method of solving linear programming problems presented before. The graphical method is useful only for problems involving.
Linear programming Simplex method.
LINEAR PROGRAMMING Example 1 Maximise I = x + 0.8y
Simplex method (algebraic interpretation)
Lesson Graphing & Solving Inequalities
Simplex Tableau Method
THE SIMPLEX ALGORITHM Step 1
Presentation transcript:

D1 Discrete Mathematics Maximisation problems The Simplex Algorithm

The basic idea in maximisation problems we are trying to maximise some function (P, say – the objective function) of two or more variables, x and y but there will be some constraints such as x + y ≤ 7 now, if x + y ≤ 7 then: x + y + ‘something’ = 7 the ‘something’ (or slack variable) must be zero or greater so, in the simplex algorithm, we change the inequalities to equations then we use simultaneous equation techniques to get: an equation which involves P, the slack variables and, at most, one of x or y equations involving only one of x or y plus the slack variables our solution can then be found ideally the maximum value of P will occur when the slack variables are zero the simplex algorithm is a way of achieving this, that can easily be programmed into a computer let’s see how it works:

The simplex algorithm formulate the maximising problem as a tableau using slack variables as necessary ensure that all elements in the last column (except possibly the top one) are non-negative select any column (except the last one) whose top element is negative (it may help to choose the lowest negative number e.g. -7 instead of -4; this may get the top row all non-negative more quickly) for each row, divide the number in the last column by the number in the chosen column in the selected column choose the positive number which gave you the smallest result; this is called the pivot divide the pivot row by the pivot to give a new row combine appropriate multiples of the new row with all the other rows in order to reduce to zero all other elements in the pivot column if all the top elements (except possibly the last one) are non-negative then the maximum has been reached; otherwise return to step 3 the last column contains the values of the objective function and the non-zero variables note: this is essentially the method of elimination as applied to simultaneous equations

Example: Maximise 7x + 11y subject to 2x + 4y ≤ 60, 3x + 3y ≤ 60 and x, y ≥ 0 P = 7x + 11y 2x + 4y ≤ 60 3x + 3y ≤ 60 formulate the maximising problem (using slack variables as necessary) P - 7x - 11y = 0 2x + 4y + s = 60 3x + 3y + t = 60 P x y s t l ensure that all elements in the last column (except possibly the top one) are non-negative

Example: Maximise 7x + 11y subject to 2x + 4y ≤ 60, 3x + 3y ≤ 60 and x, y ≥ 0 P = 7x + 11y 2x + 4y ≤ 60 3x + 3y ≤ 60 formulate the maximising problem (using slack variables as necessary) ensure that all elements in the last column (except possibly the top one) are non-negative P - 7x - 11y = 0 2x + 4y + s = 60 3x + 3y + t = 60 P x y s t l 1 -7 -11 

Example: Maximise 7x + 11y subject to 2x+4y ≤ 60, 3x + 3y ≤ 60 and x, y ≥ 0 formulate the maximising problem (using slack variables as necessary) ensure that all elements in the last column (except possibly the top one) are non-negative P = 7x + 11y 2x + 4y ≤ 60 3x + 3y ≤ 60 P - 7x - 11y = 0 2x + 4y + s = 60 3x + 3y + t = 60 P x y s t l 1 -7 -11  2 4 60 

Example: Maximise 7x + 11y subject to 2x+4y ≤ 60, 3x + 3y ≤ 60 and x, y ≥ 0 formulate the maximising problem (using slack variables as necessary) ensure that all elements in the last column (except possibly the top one) are non-negative P = 7x + 11y 2x + 4y ≤ 60 3x + 3y ≤ 60 P - 7x - 11y = 0 2x + 4y + s = 60 3x + 3y + t = 60 P x y s t l 1 -7 -11  2 4 60  3 

select any column (except the last one) whose top element is negative for each row, divide the number in the last column by the number in the chosen column in the selected, column choose the positive number which gave you the smallest result; this is called the pivot P x y s t l 1 -7 -11  2 4 60  3  0 ÷ -7 = 0 60 ÷ 2 = 30 60 ÷ 3 = 20

divide the pivot row by the pivot x y s t l 1 -7 -11  2 4 60  3 

divide the pivot row by the pivot x y s t l 1 -7 -11  2 4 60  3   =  ÷ 3

divide the pivot row by the pivot x y s t l 1 -7 -11  2 4 60  3  1/3 20  =  ÷ 3

combine appropriate multiples of the new row with all the other rows in order to reduce to zero all other elements in the pivot column P x y s t l 1 -7 -11  2 4 60  3  1/3 20  =  ÷ 3

combine appropriate multiples of the new row with all the other rows in order to reduce to zero all other elements in the pivot column P x y s t l 1 -7 -11  2 4 60  3   =  + 7 x  1/3 20  =  ÷ 3

combine appropriate multiples of the new row with all the other rows in order to reduce to zero all other elements in the pivot column P x y s t l 1 -7 -11  2 4 60  3  -4 7/3 140  =  + 7 x  1/3 20  =  ÷ 3

combine appropriate multiples of the new row with all the other rows in order to reduce to zero all other elements in the pivot column P x y s t l 1 -7 -11  2 4 60  3  -4 7/3 140  =  + 7 x   =  – 2 x  1/3 20  =  ÷ 3

combine appropriate multiples of the new row with all the other rows in order to reduce to zero all other elements in the pivot column P x y s t l 1 -7 -11  2 4 60  3  -4 7/3 140  =  + 7 x  - 2/3 20  =  – 2 x  1/3  =  ÷ 3

if all the top elements (except possibly the last one) are non-negative then the maximum has been reached; otherwise return to step 3 P x y s t l 1 -7 -11  2 4 60  3  -4 7/3 140  =  + 7 x  - 2/3 20  =  – 2 x  1/3  =  ÷ 3

select any column (except the last one) whose top element is negative for each row, divide the number in the last column by the number in the chosen column in the selected, column choose the number which gave you the smallest result; this is called the pivot P x y s t l 1 -7 -11  2 4 60  3  -4 7/3 140  =  + 7 x  - 2/3 20  =  – 2 x  1/3  =  ÷ 3

divide the pivot row by the pivot x y s t l 1 -7 -11  2 4 60  3  -4 7/3 140  =  + 7 x  - 2/3 20  =  – 2 x  1/3  =  ÷ 3

divide the pivot row by the pivot x y s t l 1 -7 -11  2 4 60  3  -4 7/3 140  =  + 7 x  - 2/3 20  =  – 2 x  1/3  =  ÷ 3  =  ÷ 2

combine appropriate multiples of the new row with all the other rows in order to reduce to zero all other elements in the pivot column P x y s t l 1 -7 -11  2 4 60  3  -4 7/3 140  =  + 7 x  - 2/3 20  =  – 2 x  1/3  =  ÷ 3 ½ -1/3 10  =  ÷ 2

combine appropriate multiples of the new row with all the other rows in order to reduce to zero all other elements in the pivot column P x y s t l 1 -7 -11  2 4 60  3  -4 7/3 140  =  + 7 x  - 2/3 20  =  – 2 x  1/3  =  ÷ 3 ½ -1/3 10  =  ÷ 2

    =  + 7 x   =  – 2 x   =  ÷ 3  =  + 4 x  ½  =  ÷ 2 combine appropriate multiples of the new row with all the other rows in order to reduce to zero all other elements in the pivot column P x y s t l 1 -7 -11  2 4 60  3  -4 7/3 140  =  + 7 x  - 2/3 20  =  – 2 x  1/3  =  ÷ 3  =  + 4 x  ½ -1/3 10  =  ÷ 2

combine appropriate multiples of the new row with all the other rows in order to reduce to zero all other elements in the pivot column P x y s t l 1 -7 -11  2 4 60  3  -4 7/3 140  =  + 7 x  - 2/3 20  =  – 2 x  1/3  =  ÷ 3 180  =  + 4 x  ½ -1/3 10  =  ÷ 2

combine appropriate multiples of the new row with all the other rows in order to reduce to zero all other elements in the pivot column P x y s t l 1 -7 -11  2 4 60  3  -4 7/3 140  =  + 7 x  - 2/3 20  =  – 2 x  1/3  =  ÷ 3 180  =  + 4 x  ½ -1/3 10  =  ÷ 2  =  - 

combine appropriate multiples of the new row with all the other rows in order to reduce to zero all other elements in the pivot column P x y s t l 1 -7 -11  2 4 60  3  -4 7/3 140  =  + 7 x  - 2/3 20  =  – 2 x  1/3  =  ÷ 3 180  =  + 4 x  ½ -1/3 10  =  ÷ 2 -½ 2/3  =  - 

if all the top elements (except possibly the last one) are non-negative then the maximum has been reached; otherwise return to step 3 the last column contains the values of the objective function and the non-zero variables P x y s t l 1 -7 -11  2 4 60  3  -4 7/3 140  =  + 7 x  - 2/3 20  =  – 2 x  1/3  =  ÷ 3 180  =  + 4 x  ½ -1/3 10  =  ÷ 2 -½ 2/3  =  - 

the last column contains the values of the objective function and the non-zero variables now: convert the tableau back to equation form P x y s t l 1 2 180 ½ -1/3 10 -½ 2/3

the last column contains the values of the objective function and the non-zero variables now: convert the tableau back to equation form P x y s t l 1 2 180 P + 2s + t = 180 ½ -1/3 10 -½ 2/3

the last column contains the values of the objective function and the non-zero variables now: convert the tableau back to equation form P x y s t l 1 2 180 P + 2s + t = 180 ½ -1/3 10 y + ½s - 1/3t = 10 -½ 2/3

the last column contains the values of the objective function and the non-zero variables now: convert the tableau back to equation form P x y s t l 1 2 180 P + 2s + t = 180 ½ -1/3 10 y + ½s - 1/3t = 10 -½ 2/3 x - ½s + 2/3t = 10

The last column contains the values of the objective function and the non-zero variables The maximum will be reached when the slack variables are zero since P = 180 – 2s – t Which is why we needed those elements on the top row to be non-negative P x y s t l 1 2 180 P + 2s + t = 180 ½ -1/3 10 y + ½s - 1/3t = 10 -½ 2/3 x - ½s + 2/3t = 10

½ y + ½s - 1/3t = 10 -½ x - ½s + 2/3t = 10 P x y s t l 1 2 180 the last column contains the values of the objective function and the non-zero variables P x y s t l 1 2 180 P + 2s + t = 180 P = 180 ½ -1/3 10 y + ½s - 1/3t = 10 -½ 2/3 x - ½s + 2/3t = 10

the last column contains the values of the objective function and the non-zero variables P x y s t l 1 2 180 P + 2s + t = 180 P = 180 ½ -1/3 10 y + ½s - 1/3t = 10 y = 10 -½ 2/3 x - ½s + 2/3t = 10

the last column contains the values of the objective function and the non-zero variables P x y s t l 1 2 180 P + 2s + t = 180 P = 180 ½ -1/3 10 y + ½s - 1/3t = 10 y = 10 -½ 2/3 x - ½s + 2/3t = 10 x = 10

There's a lot to do to apply the simplex algorithm, but keep your head, use the fraction button on your calculator, take your time and you should be ok!

That’s all folks!