The Simplex algorithm.

Slides:



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

Linear Programming (LP) (Chap.29)
Operation Research Chapter 3 Simplex Method.
Linear Programming – Simplex Method
SIMPLEX METHOD FOR LP LP Model.
LECTURE 14 Minimization Two Phase method by Dr. Arshad zaheer
Transportation Problem (TP) and Assignment Problem (AP)
Chapter 6 Linear Programming: The Simplex Method
Copyright (c) 2003 Brooks/Cole, a division of Thomson Learning, Inc
Lecture 15 Special cases by Dr. Arshad Zaheer
Computational Methods for Management and Economics Carla Gomes Module 8b The transportation simplex method.
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
Computational Methods for Management and Economics Carla Gomes Module 6b Simplex Pitfalls (Textbook – Hillier and Lieberman)
The Simplex Method: Standard Maximization Problems
The Simplex Algorithm An Algorithm for solving Linear Programming Problems.
Operation Research Chapter 3 Simplex Method.
Design and Analysis of Algorithms
Solving Linear Programs: The Simplex Method
Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 1 of 99 Chapter 4 The Simplex Method.
Optimization Linear Programming and Simplex Method
Linear Programming (LP)
5.2 Iteration  We are at an extreme point of the feasible region  We want to move to an adjacent extreme point.  We want to move to a better extreme.
D Nagesh Kumar, IIScOptimization Methods: M3L4 1 Linear Programming Simplex method - II.
MIT and James Orlin © Chapter 3. The simplex algorithm Putting Linear Programs into standard form Introduction to Simplex Algorithm.
LINEAR PROGRAMMING SIMPLEX METHOD.
1. The Simplex Method.
Chapter 6 Linear Programming: The Simplex Method
EE/Econ 458 The Simplex Method using the Tableau 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.
Chapter 3. Pitfalls Initialization Ambiguity in an iteration
Topic III The Simplex Method Setting up the Method Tabular Form Chapter(s): 4.
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.
Solving Linear Programming Problems: The Simplex Method
Business Mathematics MTH-367 Lecture 15. Chapter 11 The Simplex and Computer Solutions Methods continued.
In the name of Allah 1.
Chapter 6 Linear Programming: The Simplex Method Section 3 The Dual Problem: Minimization with Problem Constraints of the Form ≥
Mechanical Engineering Department 1 سورة النحل (78)
 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
Barnett/Ziegler/Byleen Finite Mathematics 11e1 Learning Objectives for Section 6.3 The student will be able to formulate the dual problem. The student.
1 Network Models Transportation Problem (TP) Distributing any commodity from any group of supply centers, called sources, to any group of receiving.
University of Colorado at Boulder Yicheng Wang, Phone: , Optimization Techniques for Civil and Environmental Engineering.
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.
1. 2 We studying these special cases to: 1- Present a theoretical explanation of these situations. 2- Provide a practical interpretation of what these.
Copyright © 2006 Brooks/Cole, a division of Thomson Learning, Inc. Linear Programming: An Algebraic Approach 4 The Simplex Method with Standard Maximization.
1 Optimization Linear Programming and Simplex Method.
MTH374: Optimization For Master of Mathematics By Dr. M. Fazeel Anwar Assistant Professor Department of Mathematics, CIIT Islamabad 1.
Decision Support Systems INF421 & IS Simplex: a linear-programming algorithm that can solve problems having more than two decision variables.
(iii) Simplex method - I D Nagesh Kumar, IISc Water Resources Planning and Management: M3L3 Linear Programming and Applications.
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
Solving Linear Program by Simplex Method The Concept
Perturbation method, lexicographic method
10CS661 OPERATION RESEARCH Engineered for Tomorrow.
SOLVING LINEAR PROGRAMMING PROBLEMS: The Simplex Method
Chapter 4 Linear Programming: The Simplex Method
ENGM 631 Optimization Ch. 4: Solving Linear Programs: The Simplex Method.
Dual simplex method for solving the primal
Presentation transcript:

The Simplex algorithm

Abstract: In this lecture we discuss the computational aspects of the Simplex algorithm. We shall see how a LPP is put into a simplex tableau. Starting from a BFS, we explain how to proceed step by step till we reach the optimal solution. The Mathematics behind the method (algorithm) will be seen only later. We illustrate the Simplex method by examples.

Example Consider the LPP Maximize Subject to the constraints

(*) Introducing slack variables, the LPP is same as Maximize subject to the constraints (*)

We see that if we take x1, x2 as nonbasic variables, a BFS can be got immediately as (0,0, 50,80,70). Remember the first two components refer to x1, x2 and the last three components refer to s1, s2, s3. This is possible because in the LHS of the constraint equations (*) the coefficients of the basic variables s1, s2, s3 form an Identity matrix (of size 3 x 3).

This is the first thing to be had to start the simplex method: the coefficients of the starting basic variables in the constraint equations form an identity matrix so that we can read out the starting BFS. Next we put the objective function and the constraint equations in a table (usually referred to as a Simplex tableau). For this we write the objective function also as an equation:

Simplex tableau (Starting tableau) Basic z x1 x2 s1 s2 s3 Solution 1 -8 -9 2 3 50 6 80 70

We note that the z-row is the objective function row We note that the z-row is the objective function row. The remaining 3 rows are the basic variable rows. Each row corresponds to a basic variable; the leftmost variable denotes the basic variable corresponding to that row. Except for the legends (the topmost row and the leftmost column), all the other 4 rows are the objective function row and the constraint equations. Notice that in the objective function row,

the coefficients of the basic variables are zero the coefficients of the basic variables are zero. This is the second requirement to start the simplex algorithm. Also we note that in each column corresponding to a basic variable, only that basic variable has a non-zero coefficient, namely 1, and all the other basic variables have zero coefficients. We see at present, the objective function, z, has value zero. We now seek to make one of the nonbasic variables as basic (and so) one

of the basic variables will become nonbasic (that is will drop down to zero) and the nonbasic variable that will become basic is chosen such that the objective function will “improve”: i.e. in a maximization problem it will increase and in a minimization problem it will decrease. The nonbasic variable that will become basic is referred to as “entering” variable and the basic variable that will become nonbasic is referred to as “leaving” variable.

Criterion for “entering” variable: (Optimality Condition) Choose that variable as the “entering” variable which has the most –ve coefficient in the z-row in case it is a maximization problem (as the variable which has the most +ve coefficient in the z-row in case it is a minimization problem). (Break the ties arbitrarily.)

Criterion for “leaving” variable (Feasibilty Condition) Let bi be the RHS of the ith row. Let aij be the coefficient of the entering variable xj in the ith row. The following “minimum ratio test” decides the leaving variable: Choose xk as the leaving variable where k is given as that row index i for which the ratio is least. (Break the ties arbitrarily.)

The entering variable column is called the pivot column The entering variable column is called the pivot column. The leaving variable row is called the pivot row. The coefficient in the intersection of the two is referred to as the pivot element. Now we apply elementary row operations to modify the simplex tableau so that the pivot column has 1 at the pivot element and zero in all other places. We say one iteration is over and the new basic feasible solution and the new objective function value can be read from the new tableau. We illustrate by an example.

The elementary Row operations are as follows:  New pivot row = old pivot row  pivot element  New z row = old z row – (coefficient of the entering variable in old z row * New pivot row)  Any other new row = corresponding old row – (old coefficient of the entering variable in that row * New pivot row)  We shall also change the legend of the new pivot row only as the entering variable.

Simplex tableau (Starting tableau) Enters Basic z x1 x2 s1 s2 s3 Solution 1 -8 -9 2 3 50 6 80 70 Leaves Pivot element

Performing the elementary Row operations, we get the new Simplex tableau below  Enters Basic z x1 x2 s1 s2 s3 Solution 1 -5 3/2 120 -1/2 10 1/3 1/6 40/3 2 30 Pivot element Leaves

Performing the elementary Row operations, we get the new Simplex tableau below  Enters Basic z x1 x2 s1 s2 s3 Solution 1 5 -1 170 -1/2 10 -1/3 1/3 -2 1/2 Pivot element Leaves

This is optimal as all entries in z row are  0. Performing the elementary Row operations, we get the new Simplex tableau below. This is optimal as all entries in z row are  0. Basic z x1 x2 s1 s2 s3 Solution 1 5 190 -1 20 10/3 -4 2 Optimum value = 190 at x1=20, x2=10/3

Graphical Solution of the problem (10,10) (0,40/3) Direction of increasing z Optimal at (20,10/3) (0,0) (70/3,0)

Problem 2(a) Problem set 3.3B Page 89 Example Consider the LPP Maximize Subject to the constraints

Introducing slack variables, the LPP becomes Maximize Subject to the constraints

Basic z x1 x2 x3 x4 s1 s2 s3 Sol. z 1 -2 -1 3 -5 0 0 0 0 s1 0 1 2 -2 4 1 0 0 40 s2 0 2 -1 1 2 0 1 0 8 s3 0 4 -2 1 -1 0 0 1 10 2 z 1 3 -7/2 11/2 0 0 5/2 0 20 s1 0 -3 4 -4 0 1 -2 0 24 4 x4 0 1 -1/2 1/2 1 0 1/2 0 4 s3 0 5 -5/2 3/2 0 0 1/2 1 14 z 1 3/8 0 2 0 7/8 3/4 0 41 x2 0 -3/4 1 -1 0 1/4 -1/2 0 6 x4 0 5/8 0 0 1 1/8 1/4 0 7 s3 0 25/8 0 -1 0 5/8 -3/4 1 29

The last tableau is the optimal tableau as all entries in the objective function row are ≥ 0 and the LPP is a maximization problem. Optimal Solution is x1 = 0, x2 = 6, x3 = 0, x4 = 7 And the Optimal z (= Maximum z) = 41

Solve the following LPP: Maximize Subject to the constraints

Introducing slack variables, the LPP becomes Maximize Subject to the constraints

Basic z x1 x2 x3 s1 s2 s3 Sol. z 1 -1 -2 -4 0 0 0 0 s1 0 3 1 5 1 0 0 10 s2 0 1 4 1 0 1 0 8 s3 0 2 0 2 0 0 1 7 z 1 7/5 -6/5 0 4/5 0 0 8 x3 0 3/5 1/5 1 1/5 0 0 2 s2 0 2/5 19/5 0 -1/5 1 0 6 s3 0 4/5 -2/5 0 -2/5 0 1 3 z 1 29/19 0 0 14/19 6/19 0 188/19 x3 0 11/19 0 1 4/19 -1/19 0 32/19 x2 0 2/19 1 0 -1/19 5/19 0 30/19 s3 0 16/19 0 0 -8/19 2/19 1 69/19

The last tableau is the optimal tableau as all entries in the objective function row are ≥ 0 and the LPP is a maximization problem. Optimal Solution is x1 = 0, x2 = 30/19, x3 = 32/19 And the Optimal z (= Maximum z) = 188/19

Exceptional cases Identified from the Simplex tableau * Tie for leaving variable - Degeneracy If in a Simplex iteration, there is a tie for leaving variable, then the resulting BFS will be degenerate, in the sense that one of the basic variables will also be zero. This may result in getting a new BFS without improving z. And in some cases this may lead to “cycling.”

* Multiple (Alternative) Optimal Solutions Suppose in the optimal tableau, some nonbasic variable has zero coefficient in the objective function row. Then that variable can become basic and we would get another BFS. Since the coefficient of the entering variable in the objective function row. The objective function does not improve. Hence the new BFS we get is an alternative Optimal Solution. Usually you are supposed to give all Optimal Solutions.

* No leaving variable – unbounded Solution Suppose in a Simplex iteration, some variable can enter but no variable can leave. This will happen when all the entries in the entering variable column are either zero or negative, This means the entering variable (which is right now having the zero value) can be increased indefinitely without violating any of the constraints and thus z can be increased indefinitely or the problem has unbounded solution.

Problem 5 Problem Set 2.5A Page 61 Shale Oil, located on the island of Aruba, has a capacity of 600,000 barrels of crude oil per day. The final products from the refinery include two types of unleaded gasoline: regular and premium. The refining process encompasses three stages: (1) a distillation tower that produces feedstock, (2) a cracker unit that produces gasoline stock by using a portion of the feedstock produced from the distillation tower, and (3) a blender unit that blends the gasoline stock from the cracker unit and the feedstock from the distillation tower. Both

Both regular and premium gasoline can be blended from either the the feedstock or the gasoline stock at different production costs. The company estimates that the net profit per barrel of regular gasoline is $7.70 and $5.20, depending on whether it is blended from feedstock or from gasoline stock. The corresponding profit values for the premium grade are $10.40 and $12.30. Design specifications require 5 barrels of crude oil to produce 1 barrel of feedstock. The capacity of the cracker unit is 40,000 barrels of feedstock a day. All remaining feedstock is directly used in the blender unit to produce end-product gasoline. The demand

The demand limits for regular and premium gasoline are 80,000 and 50,000 barrels per day. Develop a model for determining the optimum production schedule for the refinery. Distillation Tower Cracker Unit Blender Unit

Let x1 units from feedstock be used to blend (=make) regular gasoline Let x2 units from feedstock be used to blend (=make) premium gasoline Let x3 units from gasoline stock be used to blend (=make) regular gasoline Let x4 units from gasoline stock be used to blend (=make) premium gasoline

Thus we have to maximize the profit Subject to the constraints

Optimum Solution Maximum z = 1135000