1 Chapter 4 The Simplex Algorithm PART 2 Prof. Dr. M. Arslan ÖRNEK.

Slides:



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

Artificial Variables, 2-Phase and Big M Methods
Unrestricted-in-Sign Variables
Operation Research Chapter 3 Simplex Method.
L17 LP part3 Homework Review Multiple Solutions Degeneracy Unbounded problems Summary 1.
Linear Programming – Simplex Method
Variables that are unrestricted in sign LI Xiao-lei.
SIMPLEX METHOD FOR LP LP Model.
LECTURE 14 Minimization Two Phase method by Dr. Arshad zaheer
Dr. Sana’a Wafa Al-Sayegh
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.
Computational Methods for Management and Economics Carla Gomes Module 6b Simplex Pitfalls (Textbook – Hillier and Lieberman)
The Simplex Method: Standard Maximization Problems
Operation Research Chapter 3 Simplex Method.
Design and Analysis of Algorithms
Solving Linear Programs: The Simplex Method
Linear Programming (LP)
The Simplex Method.
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.
LINEAR PROGRAMMING SIMPLEX METHOD.
Presentation: H. Sarper
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 6 Sensitivity Analysis & Duality
Duality Theory LI Xiaolei.
Chapter 3. Pitfalls Initialization Ambiguity in an iteration
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.
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.
The big M method LI Xiao-lei.
1© 2003 by Prentice Hall, Inc. Upper Saddle River, NJ Linear Programming: The Simplex Method.
The Simplex Algorithm The Simplex Algorithm LI Xiao-lei.
Business Mathematics MTH-367 Lecture 15. Chapter 11 The Simplex and Computer Solutions Methods continued.
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 4 The Simplex Algorithm( 單體法 ) and Goal Programming Copyright (c) 2004 Brooks/Cole, a division of Thomson Learning, Inc.
Chapter 6 Linear Programming: The Simplex Method Section 4 Maximization and Minimization with Problem Constraints.
Sensitivity analysis LI Xiao-lei. A graphical introduction to sensitivity analysis Sensitivity analysis is concerned with how changes in an LP’s parameters.
Chapter 3 Linear Programming Methods
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.
An-Najah N. University Faculty of Engineering and Information Technology Department of Management Information systems Operations Research and Applications.
Chapter 10 Advanced Topics in Linear Programming
Simplex Method Simplex: a linear-programming algorithm that can solve problems having more than two decision variables. The simplex technique involves.
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.
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
Perturbation method, lexicographic method
Chapter 4 The Simplex Algorithm and Goal Programming
The Two-Phase Simplex Method
Chapter 4 Linear Programming: The Simplex Method
Chapter 5. Sensitivity Analysis
Starting Solutions and Convergence
Chapter 8. General LP Problems
ISyE 4231: Engineering Optimization
Chapter 8. General LP Problems
Chapter 4 The Simplex Algorithm
Chapter 8. General LP Problems
Presentation transcript:

1 Chapter 4 The Simplex Algorithm PART 2 Prof. Dr. M. Arslan ÖRNEK

2

3 ISE203/IE251

4

5

6

7

8

9

10 ISE203/IE251

11 ISE203/IE251

12 ISE203/IE251

13 ISE203/IE251

14 ISE203/IE251

15 ISE203/IE251

16 ISE203/IE251

17 ISE203/IE251

18 ISE203/IE251

– The Simplex Algorithm (min LPs) Two different ways the simplex method can be used to solve minimization problems. min z = 2x 1 – 3x 2 s.t. x 1 + x 2 ≤ 4 x 1 – x 2 ≤ 6 x 1, x 2 ≥ 0 max -z = -2x 1 + 3x 2 s.t. x 1 + x 2 ≤ 4 x 1 – x 2 ≤ 6 x 1, x 2 ≥ 0 Method 1

– The Simplex Algorithm (min LPs) Use –z as the basic variable in row 0.

– The Simplex Algorithm (min LPs) The optimal solution (to the max problem) is -z = 12, x 2 = 4, s 2 = 10, x 1 = s 1 = 0. Then the optimal solution to the min problem is z = -12, x 2 =4, s 2 = 10, x 1 = s 2 = 0.  z = 2x 1 -3x 2 =2(0) – 3 (4) = -12. In summary, multiply the objective function for the min problem by -1 and solve the problem as a maximization problem with the objective function –z. (optimal z-value for the min problem) = - (optimal z-value for the max problem).

– The Simplex Algorithm (min LPs) Method 2 A simple modification of the simplex algorithm can be used to solve min problems directly. Modify Step 3 of the simplex algorithm as follows: If all nonbasic variables (NBV) in row 0 have nonpositive coefficients, the current bfs is optimal. If any nonbasic variable has a positive coefficient, choose the variable with the “most positive” coefficient in row 0 as the entering variable.

– Alternative Optimal solutions If an LP has more than one optimal solution, it has multiple optimal solutions. If all nonbasic variables (NBV) have nonzero coefficients in row 0 of the optimal tableau, the LP has a unique optimal solution. Otherwise, the LP may have alternative optimal solutions.

24 ISE203/IE251

25

– Unbounded LPs An unbounded LP occurs in a max problem if l There is a nonbasic variable with a negative coefficient in row 0 and l There is no constraint that limits how large we can make this NBV. An unbounded LP for a max problem occurs when a variable with a negative coefficient in row 0 has a nonpositive coefficient in each constraint.

27 ISE203/IE251

28 Example 3: Breadco Bakeries-An Unbounded LP

29 Solution:

30

31

Degeneracy and the Convergence of the Simplex Algorithm l Theoretically, the simplex algorithm can fail to find an optimal solution to an LP. l The following are facts (for Max LP): –If (value of entering variable in new bfs) > 0, then (z-value for new bfs) > (z-value for current bfs). –If (value of entering variable in new bfs) = 0, then (z-value for new bfs) = (z-value for current bfs). l Up to now, we have seen that in each of the LP’s BFS, all basic variables are positive.

33 l An LP with this property is a nondegenerate LP. l An LP is degenerate if it has at least one bfs in which a basic variable is equal to zero. l Any bfs that has at least one basic variable equal to zero is a degenerate bfs. l When the same bfs is encountered twice it is called cycling (looping). –If cycling occurs, then we will loop, or cycle, forever among a set of basic feasible solutions and never get to an optimal solution.

34 ISE203/IE251

The Big M Method l The simplex algorithm requires a starting (initial) bfs. l 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 cannot be found easily. l In such a case, the Big M method is used to obtain a starting bfs and solve the problem.

36 Example 4: Bevco (A Blending Problem) l Bevco manufactures an orange-flavored soft drink called Oranj by combining orange soda and orange juice. –Each oz of orange soda contains 0.5 oz of sugar and 1 mg of vitamin C. –Each oz 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 20 mg of vitamin C and at most 4 oz of sugar. l Use linear programming to determine how Bevco can meet the marketing department’s requirements at minimum cost.

37 Letting x 1 = number of ounces of orange soda in a bottle of Oranj x 2 = number of ounces of orange juice in a bottle of Oranj The LP is: min z = 2x 1 + 3x 2 st 0.5x x 2 ≤ 4(sugar constraint) x 1 + 3x 2 ≥ 20(Vitamin C constraint) x 1 + x 2 = 10(10 oz in 1 bottle of Oranj) x 1, x 2, ≥ 0 Example 4: Bevco

– The Big M Method Row 0:z - 2x 1 - 3x 2 = 0 Row 1: 0.5x x 2 + s 1 = 4 Row 2: x 1 + 3x 2 - e 2 = 20 Row 3: x 1 + x 2 = 10 What will be the BV in row 2? Row 3? Row 2 would violate sign restrictions Row 3 no readily apparent basic variable. To find a bfs, we create artificial variables. The variables will be labeled according to the row in which they are used. Row 1:z - 2x 1 - 3x 2 = 0 Row 2: 0.5x x 2 + s 1 = 4 Row 3: x 1 + 3x 2 - e 2 + a 2 = 20 Row 4: x 1 + x 2 + a 3 = 10

– The Big M Method In the optimal solution, all artificial variables must be equal to zero. To accomplish this, in a min LP, a term +Ma i is added to the objective function for each a i. For a max LP, the term –Ma i is added to the objective function for each a i. M represents some very large number. The modified Bevco LP in standard form then becomes: Row 0:z - 2x 1 - 3x 2 -Ma 2 - Ma 3 = 0 Row 1: 0.5x x 2 + s 1 = 4 Row 2: x 1 + 3x 2 - e 2 + a 2 = 20 Row 3: x 1 + x 2 + a 3 = 10 Modifying the objective function this way makes it extremely costly for an artificial variable to be positive. The optimal solution should force a 2 = a 3 =0.

– The Big M Method Description of the Big M Method: 1.Modify the constraints so that the rhs of each constraint is nonnegative. 2.Convert each inequality constraint to standard form (add a slack variable for ≤ constraints, add an excess variable for ≥ constraints). 3.For each ≥ or = constraint, add artificial variables. Add sign restriction a i ≥ 0. 4.Let M denote a very large positive number. Add (for each artificial variable) Ma i to min problem objective functions or -Ma i to max problem objective function. 5.Since each artificial variable will be in the starting basis, all artificial variables must be eliminated from row 0 before beginning the simplex.

– The Big M Method If all artificial variables in the optimal solution equal zero, the solution is optimal. If any artificial variables are positive in the optimal solution, the problem is infeasible. The Bevco example continued: Initial Tableau

– The Big M Method

– The Big M Method

44 Wyndor Problem - modified ISE203/IE251

45 Nonzero coefficient of x 5 in the objective function row. We should make it zero. ISE203/IE251

46 ISE203/IE251

47 ISE203/IE251

48 ISE203/IE251

49 ISE203/IE251

50 ISE203/IE251

51 ISE203/IE251

52 ISE203/IE251

53 ISE203/IE251

Unrestricted-in-Sign Variables l If some variables are allowed to be unrestricted in sign (urs), the ratio test and therefore the simplex algorithm are no longer valid. l An LP with an unrestricted-in-sign variable can be transformed into an LP in which all variables are non- negative. –For each urs variable x i, define two new variables x + i and x - i. –Then substitute ( x + i - x - i ) for x i in each constraint and in the objective function. –Also add the sign restrictions.

55 l So we express x i as the difference of the two nonnegative variables x + i and x - i. l No basic feasible solution can have both x + i ≥ 0 and x - i ≥ 0. l x + i and x - i will never be both basic variables. –The column of one is equal to the negative column of the other l For any basic feasible solution, each urs variable x i must fall into one of the following three cases. 1.x + i > 0 and x - i = 0 2.x + i = 0 and x - i > 0 3.x + i = x - i = 0

56 Example 8 (Using urs Variables):

57 Solution:

58

59