1. 2 Computing the Adjoint matrix: 3 Assignment #3 is available. Due: Monday Nov. 5, beginning of class.

Slides:



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

1. Set up the phase 1 dictionary for this problem and make the first pivot: Maximize X 1 + X X 3 + X 4 subject to -X 1 + X X 4 ≤ -3 -X 1 +
Chapter 5: Linear Programming: The Simplex Method
Operation Research Chapter 3 Simplex Method.
Assignment (6) Simplex Method for solving LP problems with two variables.
Chapter 6 Linear Programming: The Simplex Method
The Simplex Method The geometric method of solving linear programming problems presented before. The graphical method is useful only for problems involving.
Dr. Sana’a Wafa Al-Sayegh
Copyright (c) 2003 Brooks/Cole, a division of Thomson Learning, Inc
OR Simplex method (algebraic interpretation) Add slack variables( 여유변수 ) to each constraint to convert them to equations. (We may refer it as.
Linear Inequalities and Linear Programming Chapter 5
Computational Methods for Management and Economics Carla Gomes Module 6b Simplex Pitfalls (Textbook – Hillier and Lieberman)
Daniel Kroening and Ofer Strichman Decision Procedures An Algorithmic Point of View Gaussian Elimination and Simplex.
The Simplex Method: Standard Maximization Problems
5.4 Simplex method: maximization with problem constraints of the form
The Simplex Algorithm An Algorithm for solving Linear Programming Problems.
Operation Research Chapter 3 Simplex Method.
Optimization Mechanics of the Simplex Method
MIT and James Orlin © Chapter 3. The simplex algorithm Putting Linear Programs into standard form Introduction to Simplex Algorithm.
Learning Objectives for Section 6.2
The Simplex algorithm.
Chapter 3 Linear Programming Methods 高等作業研究 高等作業研究 ( 一 ) Chapter 3 Linear Programming Methods (II)
1. The Simplex Method.
Chapter 6 Linear Programming: The Simplex Method
8. Linear Programming (Simplex Method) Objectives: 1.Simplex Method- Standard Maximum problem 2. (i) Greedy Rule (ii) Ratio Test (iii) Pivot Operation.
Simplex method (algebraic interpretation)
Simplex Algorithm.Big M Method
Chapter 6 Linear Programming: The Simplex Method Section 2 The Simplex Method: Maximization with Problem Constraints of the Form ≤
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 © 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.
Simplex Method Adapting to Other Forms.  Until now, we have dealt with the standard form of the Simplex method  What if the model has a non-standard.
After one pivot: HNT= [4 2 3]
Linear Programming Revised Simplex Method, Duality of LP problems and Sensitivity analysis D Nagesh Kumar, IISc Optimization Methods: M3L5.
Mechanical Engineering Department 1 سورة النحل (78)
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.
Gomory Cuts Updated 25 March Example ILP Example taken from “Operations Research: An Introduction” by Hamdy A. Taha (8 th Edition)“Operations Research:
1 THE REVISED SIMPLEX METHOD CONTENTS Linear Program in the Matrix Notation Basic Feasible Solution in Matrix Notation Revised Simplex Method in Matrix.
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.
OR Chapter 7. The Revised Simplex Method  Recall Theorem 3.1, same basis  same dictionary Entire dictionary can be constructed as long as we.
Introduction to Operations Research
CSC 445/545 is done at 4:30 so I did NOT fill in the box for 4:30 for our class. Please put your name here. Please put your as well. 1.
OR  Now, we look for other basic feasible solutions which gives better objective values than the current solution. Such solutions can be examined.
Copyright © 2006 Brooks/Cole, a division of Thomson Learning, Inc. Linear Programming: An Algebraic Approach 4 The Simplex Method with Standard Maximization.
Simplex Method Review. Canonical Form A is m x n Theorem 7.5: If an LP has an optimal solution, then at least one such solution exists at a basic feasible.
Foundations-1 The Theory of the Simplex Method. Foundations-2 The Essence Simplex method is an algebraic procedure However, its underlying concepts are.
Decision Support Systems INF421 & IS Simplex: a linear-programming algorithm that can solve problems having more than two decision variables.
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.
1 Two-Phase Simplex Method file Simplex3_AMII_05b_gr Rev. 1.4 by M. Miccio on December 17, 2014 from a presentation at the Fuqua School of Business MIT.
Solving Linear Program by Simplex Method The Concept
Simplex Algorithm.Big M Method
Linear Programming Revised Simplex Method, Duality of LP problems and Sensitivity analysis D Nagesh Kumar, IISc Optimization Methods: M3L5.
Chap 10. Sensitivity Analysis
The minimum cost flow problem
Perturbation method, lexicographic method
Chapter 4 Linear Programming: The Simplex Method
The Simplex Method: Nonstandard Problems
The Theory of the Simplex Method Asst. Prof. Dr. Nergiz Kasımbeyli
Well, just how many basic
The Simplex Method The geometric method of solving linear programming problems presented before. The graphical method is useful only for problems involving.
Simplex method (algebraic interpretation)
Presentation transcript:

1

2 Computing the Adjoint matrix:

3 Assignment #3 is available. Due: Monday Nov. 5, beginning of class

Initial dictionary: X4 =5 -1 X1 -1 X2 +1 X3 X5 =3 -1 X1 +0 X2 -2 X3 X6 =4 +0 X1 -1 X2 -6 X z = 0 +1 X1 +3 X2 +6 X3 Final dictionary: X2 =4 -6 X3 +0 X4 -1 X6 X1 =1 +7 X3 -1 X4 +1 X6 X5 =2 -9 X3 +1 X4 -1 X z =13 -5 X3 -1 X4 -2 X6 What are B and B -1 for the final dictionary? 4

The initial matrix A: X1 X2 X3 X4 X5 X6 [ ] [ ] [ ] The final matrix: X1 X2 X3 X4 X5 X6 [ ] [ ] [ ] 5

The initial matrix A: X1 X2 X3 X4 X5 X6 [ ] [ ] [ ] The final matrix: X1 X2 X3 X4 X5 X6 [ ] [ ] [ ] B = X2 X1 X5 [ ] [ ] [ ] B -1 = X4 X5 X6 [ ] [ ] [ ] 6

Initial dictionary: X4 =5 -1 X1 -1 X2 +1 X3 X5 =3 -1 X1 +0 X2 -2 X3 X6 =4 +0 X1 -1 X2 -6 X z = 0 +1 X1 +3 X2 +6 X3 What of this information do we really need to know to decide where to pivot? 7

Initial dictionary: X4 =5 -1 X1 -1 X2 +1 X3 X5 =3 -1 X1 +0 X2 -2 X3 X6 =4 +0 X1 -1 X2 -6 X z = 0 +1 X1 +3 X2 +6 X3 1.Look at z row to choose the pivot column. With smallest subscript rule, we would choose X1 to enter. 8

Initial dictionary: X4 =5 -1 X1 -1 X2 +1 X3 X5 =3 -1 X1 +0 X2 -2 X3 X6 =4 +0 X1 -1 X2 -6 X z = 0 +1 X1 +3 X2 +6 X3 2. Look at entering column and b column to find tightest constraint (pivot row). 9

After 1 pivot: X4 = 2- 1 X2 + 3 X3 + 1 X5 X1 = 3+ 0 X2 - 2 X3 - 1 X5 X6 = 4- 1 X2 - 6 X3 + 0 X z = 3+ 3 X2 + 4 X3 - 1 X5 Idea behind the revised Simplex method: just keep track of what we need to know instead of the entire tableau. 10

11

In the Simplex Method, what information is needed to find the next basic feasible solution? 1. Coefficients of non-basic variables in the z row to determine the pivot column. 2. The pivot column and the current solution to determine the pivot row. The new solution is then determined from the pivot column and the old solution. 12

H B T = indices of basic columns. H N T = indices of non-basic columns. Split the matrix A into two parts: A B = columns corresponding to H B T. A N = columns corresponding to H N T. Create c B, c N, and x B, x N the same way. What are these for this initial dictionary? X4 =5 -1 X1 -1 X2 +1 X3 X5 =3 -1 X1 +0 X2 -2 X3 X6 =4 +0 X1 -1 X2 -6 X z = 0 +1 X1 +3 X2 +6 X3 13

H B T = indices of basic columns H N T = indices of non-basic columns Split the matrix A into two parts: A B = columns corresponding to H B T A N = columns corresponding to H N T Create c B, c N, and x B, x N the same way. What are these for this final dictionary? X2 =4 -6 X3 +0 X4 -1 X6 X1 =1 +7 X3 -1 X4 +1 X6 X5 =2 -9 X3 +1 X4 -1 X z =13 -5 X3 -1 X4 -2 X6 14

Another problem: X4 = X1 - 3 X2 - 1 X3 X5 = X1 - 1 X2 - 2 X3 X6 = X1 - 4 X2 - 2 X z = X1 + 4 X2 + 3 X3 X1 enters. X4 leaves. X1 = X X X4 X5 = X +0.0 X X4 X6 = X X X z = X X X4 15

For this problem we have: Maximize c T x c T = [ ] x=[x 1 x 2 x 3 x 4 x 5 x 6 ] T subject to A x = b A = [ ] [ 5] [ ] b= [11] [ ] [ 8] Initially, the basis corresponds to the slack variables x 4, x 5, x 6 : H B T = [ 4 5 6] // subscripts for basis The non-basic variables are x 1, x 2, and x 3 : H N T = [1 2 3] // subscripts of non-basic variables. 16

Split the matrix A into two parts: A B = columns corresponding to H B T A N = columns corresponding to H N T H B T = [4 5 6] A B = [1 0 0] [0 1 0] [0 0 1] Create c B, c N, and x B, x N the same way: c B = [0 0 0] T c N = [5 4 3] T x B = [x 4 x 5 x 6 ] T x N = [x 1 x 2 x 3 ] T H N T = [1 2 3] A N = [2 3 1] [4 1 2] [3 4 2] 17

The system of equations can then be expressed as: (a) A x = b ⟹ A B x B + A N x N = b (b) z= c B T x B + c N T x N From (a), x B = A B -1 b - A B -1 A N x N = A B -1 [b - A N x N ] Plugging this into the formula for z: z= c B T A B -1 [ b - A N x N ] + c N T x N So the dictionary with basis AB reads: xB = AB -1 * [ b - AN * xN ] z= cBT * AB -1 * [ b - AN * xN ] + cNT * xN 18

From the previous slide: x B = A B -1 [b - A N x N ] z= c B T A B -1 [ b - A N x N ] + c N T x N So the dictionary with basis A B reads: x B = A B -1 [ b – A N x N ] z = c B T A B -1 [ b - A N x N ] + c N T x N 19

20

21

Step 1: Find coefficients of non-basic variables in the z row. z = c B T A B -1 [ b - A N x N ] + c N T x N Let y T = c B T * A B -1 Find y T by solving y T A B = c B T or equivalently A B T y = c B. Set z= y T b + [c N T - y T A N ] x N 22

23

Step 2: Determine the leaving variable. Solve for entering column d in current dictionary: d= A B -1 a where a is the entering column taken from the initial problem. Or equivalently, solve for d: A B d = a If tightest constraint corresponds to x leaving = v – t * x entering then the new value of x entering will be s= v/t. 24

25

Which equation imposes the tightest constraint? 5 - 2x 1 ≥ 0 ⟹ x 1 ≤ 5/2 (*) x 1 ≥ 0 ⟹ x 1 ≤ 11/ x 1 ≥ 0 ⟹ x 1 ≤ 8/3 The first basis variable x 4 leaves because the first equation is the tightest. The value of the entering variable is 5/2 because this is the tightest constraint. Plug in the value of the entering variable: x 4 = 5 - 2(5/2) = 0  x 1 = 5/2 x 5 = (5/2) = 1 x 6 = 8 - 3(5/2) = 1/2 26

Updating all the variables: H B T = [1 5 6] A B = [2 0 0] [4 1 0] [3 0 1] c B = [5 0 0] T c N = [0 4 3] T x B = [x 1 x 5 x 6 ] T x N = [x 4 x 2 x 3 ] T Current solution: [5/2 1 1/2] H N T = [4 2 3] A N = [1 3 1] [0 1 2] [0 4 2] Z is: (previous value of Z) + (coeff. of entering var. in Z row) * (new value of entering variable) = 0 + 5*(5/2) = 25/2 27

The Revised Simplex Method uses more work to determine the z row coefficients, the column that should enter, and the pivot row number (exiting variable) but then it takes less work to pivot. 28

Summary of the steps of the Revised Simplex Method: Maintain for each step: 1. H B - the current basis header. 2. H N - the header for the non-basic variables (optional). 3. the current solution. 4. A B - the columns from A which correspond to the basis in the same order as in H B. [Actually, most programs maintain some factorization of this matrix]. 29

5. A N - the columns from A which correspond to the basis in the same order as in H N. [Actually, you can get these columns from A when you need them so you don't really have to store this.] 6. c B - the costs of the basic variables in the same order as H B. 7. c N - the costs of the non-basic variables in the same order as H N. 8. z- the current value of the objective function. 30

The Revised Simplex Algorithm Step 1: Determine pivot column. Solve A B T y = c B for y. compute [c N T - y T A N ] * x N to get coefficients of non-basic variables. Look for a positive coefficient, say r corresponding to non-basic x j. 31

Step 2: Determine the leaving variable. Solve for entering column d in current dictionary: d= A B -1 a where a is the entering column taken from the initial problem. Or equivalently, solve for d: A B d = a If tightest constraint corresponds to x leaving = v – t * x entering then the new value of x entering will be s= v/t. 32

Step 3: Update variables (x j enters, x k leaves). Update basic variables headers H B by replacing k with j. Update H N by replacing j with k. Set x j = s in the new solution. Plug this value for x j into the other equations to update the values of the other basic variables. The leaving variable will be 0. Recall r = the coefficient of x j in the z row: Set z = z + r s. Update A B, A N, c B, c N, x B, x N to match basis headers. 33