Well, just how many basic

Slides:



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

Chapter 5: Linear Programming: The Simplex Method
Linear Programming – Simplex Method
SIMPLEX METHOD FOR LP LP Model.
Dr. Sana’a Wafa Al-Sayegh
Copyright (c) 2003 Brooks/Cole, a division of Thomson Learning, Inc
Computational Methods for Management and Economics Carla Gomes Module 6a Introduction to Simplex (Textbook – Hillier and Lieberman)
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.
Minimization by Dr. Arshad zaheer
Solving Linear Programs: The Simplex Method
Optimization Mechanics of the Simplex Method
Linear Programming (LP)
The Simplex Method.
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.
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)
This presentation shows how the tableau method is used to solve a simple linear programming problem in two variables: Maximising subject to two  constraints.
ECE 556 Linear Programming Ting-Yuan Wang Electrical and Computer Engineering University of Wisconsin-Madison March
Topic III The Simplex Method Setting up the Method Tabular Form Chapter(s): 4.
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.
Public Policy Modeling Simplex Method Tuesday, October 13, 2015 Hun Myoung Park, Ph.D. Public Management & Policy Analysis Program Graduate School of International.
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.
Solving Linear Programming Problems: The Simplex Method
4  The Simplex Method: Standard Maximization Problems  The Simplex Method: Standard Minimization Problems  The Simplex Method: Nonstandard Problems.
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
1 THE REVISED SIMPLEX METHOD CONTENTS Linear Program in the Matrix Notation Basic Feasible Solution in Matrix Notation Revised Simplex Method in Matrix.
University of Colorado at Boulder Yicheng Wang, Phone: , Optimization Techniques for Civil and Environmental Engineering.
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.
 LP graphical solution is always associated with a corner point of the solution space.  The transition from the geometric corner point solution to the.
Copyright © 2006 Brooks/Cole, a division of Thomson Learning, Inc. Linear Programming: An Algebraic Approach 4 The Simplex Method with Standard Maximization.
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.
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.
EMGT 6412/MATH 6665 Mathematical Programming Spring 2016
Solving Linear Program by Simplex Method The Concept
Chap 10. Sensitivity Analysis
Perturbation method, lexicographic method
10CS661 OPERATION RESEARCH Engineered for Tomorrow.
10CS661 OPERATION RESEARCH Engineered for Tomorrow.
The Two-Phase Simplex Method
Gomory Cuts Updated 25 March 2009.
Chapter 4 Linear Programming: The Simplex Method
The Simplex Method.
ENGM 631 Optimization Ch. 4: Solving Linear Programs: The Simplex Method.
Chapter 3 The Simplex Method and Sensitivity Analysis
Dual simplex method for solving the primal
Part 3. Linear Programming
Solving Linear Programming Problems: Asst. Prof. Dr. Nergiz Kasımbeyli
Starting Solutions and Convergence
ISyE 4231: Engineering Optimization
LINEAR PROGRAMMING Example 1 Maximise I = x + 0.8y
Chapter 4 The Simplex Algorithm
Simplex method (algebraic interpretation)
DUALITY THEORY Reference: Chapter 6 in Bazaraa, Jarvis and Sherali.
Practical Issues Finding an initial feasible solution Cycling
Prepared by Po-Chuan on 2016/05/24
Presentation transcript:

Well, just how many basic solutions are there?!!!

Basic Solutions Let n = the number of variables m = the number of constraints After adding slack variables, there are n + m variables. Since a basic solution requires setting n variables to zero and solving uniquely for the remaining variables, there are ways to select the n variables to set equal to zero or equivalently the m basic variables. If n = 20 and m = 10 (a trivially small problem), then 30!/(20! 10!) = 30,045,015. (not all are feasible)

Basic Solutions Again! Augmented solution - solution to the problem after slack variables have been added. Basic solution - augmented corner point solution obtained by setting n variables to zero and solving for the remaining. Basic feasible solution (BFS) - feasible basic solution. Basic variables - variables that were solved for in the basic solution. Non-basic variables - variables set equal to zero in the basic solution.

Outline of the Simplex Algorithm Start at a basic feasible solution (BFS) (often the origin) Move to a better basic feasible solution the objective function improves Stop when the basic feasible solution is better than all adjacent basic feasible solutions. Solution is optimal I can do this!

Now - Presenting the Simplex Algorithm! Be the first in your neighborhood to master this exciting and wonderful numerical, recursive process for solving linear programs. Two students discussing the high points of the simplex algorithm.

The Simplex Tableau-1 Basic Eq Var z x1 x2 x3 x4 x5 RHS Max z - 6x1 - 4x2 = 0 Subj. to: x1 + x2 + x3 = 12 x1 - 2x2 + x4 = 6 x2 + x5 = 8 The Simplex Tableau-1 Basic Eq Var z x1 x2 x3 x4 x5 RHS

The Simplex Tableau-2 Basic Eq Var z x1 x2 x3 x4 x5 RHS Max z - 6x1 - 4x2 = 0 Subj. to: x1 + x2 + x3 = 12 x1 - 2x2 + x4 = 6 x2 + x5 = 8 The Simplex Tableau-2 Basic Eq Var z x1 x2 x3 x4 x5 RHS 0 z 1 -6 -4 0 0 0 0

The Simplex Tableau-3 Basic Eq Var z x1 x2 x3 x4 x5 RHS Max z - 6x1 - 4x2 = 0 Subj. to: x1 + x2 + x3 = 12 x1 - 2x2 + x4 = 6 x2 + x5 = 8 The Simplex Tableau-3 Basic Eq Var z x1 x2 x3 x4 x5 RHS 0 z 1 -6 -4 0 0 0 0 1 x3 0 1 1 1 0 0 12

The Simplex Tableau-4 Basic Eq Var z x1 x2 x3 x4 x5 RHS Max z - 6x1 - 4x2 = 0 Subj. to: x1 + x2 + x3 = 12 x1 - 2x2 + x4 = 6 x2 + x5 = 8 The Simplex Tableau-4 Basic Eq Var z x1 x2 x3 x4 x5 RHS 0 z 1 -6 -4 0 0 0 0 1 x3 0 1 1 1 0 0 12 2 x4 0 1 -2 0 1 0 6

The Simplex Tableau-5 Basic Eq Var z x1 x2 x3 x4 x5 RHS Max z - 6x1 - 4x2 = 0 Subj. to: x1 + x2 + x3 = 12 x1 - 2x2 + x4 = 6 x2 + x5 = 8 The Simplex Tableau-5 Basic Eq Var z x1 x2 x3 x4 x5 RHS 0 z 1 -6 -4 0 0 0 0 1 x3 0 1 1 1 0 0 12 2 x4 0 1 -2 0 1 0 6 3 x5 0 0 1 0 0 1 8

The Simplex Algorithm-1 Step 1: Select a new variable to enter the basis. Basic Eq Var z x1 x2 x3 x4 x5 RHS 0 z 1 -6 -4 0 0 0 0 1 x3 0 1 1 1 0 0 12 2 x4 0 1 -2 0 1 0 6 3 x5 0 0 1 0 0 1 8

The Simplex Algorithm-2 z = 6x1 + 4x2 Step 1: Select a new variable to enter the basis. Pick the non-basic variable having the greatest negative value. Basic Eq Var z x1 x2 x3 x4 x5 RHS 0 z 1 -6 -4 0 0 0 0 1 x3 0 1 1 1 0 0 12 2 x4 0 1 -2 0 1 0 6 3 x5 0 0 1 0 0 1 8

Basic Eq Var z x1 x2 x3 x4 x5 RHS 0 z 1 -6 -4 0 0 0 0 Step 2a: Select a basic variable to leave the basis. Basic Eq Var z x1 x2 x3 x4 x5 RHS 0 z 1 -6 -4 0 0 0 0 1 x3 0 1 1 1 0 0 12 2 x4 0 1 -2 0 1 0 6 3 x5 0 0 1 0 0 1 8

Basic Eq Var z x1 x2 x3 x4 x5 RHS Ratio 0 z 1 -6 -4 0 0 0 0 Step 2b: Select a basic variable to leave the basis. Pick the basic variable having the smallest ratio of the RHS divided by the corresponding positive coefficient from the incoming variable. Ratio 12/1 6/1 Basic Eq Var z x1 x2 x3 x4 x5 RHS 0 z 1 -6 -4 0 0 0 0 1 x3 0 1 1 1 0 0 12 2 x4 0 1 -2 0 1 0 6 3 x5 0 0 1 0 0 1 8

Basic Eq Var z x1 x2 x3 x4 x5 RHS Ratio 0 z 1 -6 -4 0 0 0 0 Step 2c: Select a basic variable to leave the basis. Pick the basic variable having the smallest ratio of the RHS divided by the corresponding positive coefficient from the incoming variable. Ratio 12/1 6/1 1x1 - 2x2 + x4 = 6 Basic Eq Var z x1 x2 x3 x4 x5 RHS 0 z 1 -6 -4 0 0 0 0 1 x3 0 1 1 1 0 0 12 2 x4 0 1 -2 0 1 0 6 3 x5 0 0 1 0 0 1 8 pivot point

Step 3a: Use row operations to find the new basic solution. Eq Var z x1 x2 x3 x4 x5 RHS 0 z 1 -6 -4 0 0 0 0 1 x3 0 1 1 1 0 0 12 2 x4 0 1 -2 0 1 0 6 3 x5 0 0 1 0 0 1 8 Basic Eq Var z x1 x2 x3 x4 x5 RHS 0 z 1 x3 2 x1 3 x5

Step 3b: Use row operations to find the new basic solution. Eq Var z x1 x2 x3 x4 x5 RHS 0 z 1 -6 -4 0 0 0 0 1 x3 0 1 1 1 0 0 12 2 x4 0 1 -2 0 1 0 6 3 x5 0 0 1 0 0 1 8 Basic Eq Var z x1 x2 x3 x4 x5 RHS 0 z 1 x3 2 x1 3 x5 0 1 -2 0 1 0 6

Step 3c: Use row operations to find the new basic solution. Eq Var z x1 x2 x3 x4 x5 RHS 0 z 1 -6 -4 0 0 0 0 1 x3 0 1 1 1 0 0 12 2 x4 0 1 -2 0 1 0 6 3 x5 0 0 1 0 0 1 8 Basic Eq Var z x1 x2 x3 x4 x5 RHS 0 z 1 x3 2 x1 3 x5 0 1 -2 0 1 0 6 0 0 1 0 0 1 8

Step 3d: Use row operations to find the new basic solution. Eq Var z x1 x2 x3 x4 x5 RHS 0 z 1 -6 -4 0 0 0 0 1 x3 0 1 1 1 0 0 12 2 x4 0 1 -2 0 1 0 6 3 x5 0 0 1 0 0 1 8 Basic Eq Var z x1 x2 x3 x4 x5 RHS 0 z 1 x3 2 x1 3 x5 0 0 3 1 -1 0 6 0 1 -2 0 1 0 6 0 0 1 0 0 1 8

Step 3e: Use row operations to find the new basic solution. Eq Var z x1 x2 x3 x4 x5 RHS 0 z 1 -6 -4 0 0 0 0 1 x3 0 1 1 1 0 0 12 2 x4 0 1 -2 0 1 0 6 3 x5 0 0 1 0 0 1 8 Basic Eq Var z x1 x2 x3 x4 x5 RHS 0 z 1 x3 2 x1 3 x5 1 0 -16 0 6 0 36 0 0 3 1 -1 0 6 0 1 -2 0 1 0 6 0 0 1 0 0 1 8

Max z = 6x1 + 4x2 x1 + x2 <= 12 x1 -2x2 <= 6 x2 <= 8 x2 x1 Subj. to: x1 + x2 <= 12 x1 -2x2 <= 6 x2 <= 8 x2 12 8 (4,8) z z (10,2) x1 6 12 -3

Now Sally, you want to pick the new variable to enter the basis. 2nd Iteration-1 z = 6x1 + 4x2 Now Sally, you want to pick the new variable to enter the basis. Basic Eq Var z x1 x2 x3 x4 x5 RHS 0 z 1 0 -16 0 6 0 36 1 x3 0 0 3 1 -1 0 6 2 x1 0 1 -2 0 1 0 6 3 x5 0 0 1 0 0 1 8

2nd Iteration-2 Basic Eq Var z x1 x2 x3 x4 x5 RHS 0 z 1 0 -16 0 6 0 36 Pick the non-basic variable having the greatest negative value. Basic Eq Var z x1 x2 x3 x4 x5 RHS 0 z 1 0 -16 0 6 0 36 1 x3 0 0 3 1 -1 0 6 2 x1 0 1 -2 0 1 0 6 3 x5 0 0 1 0 0 1 8

2nd Iteration-3 Basic Eq Var z x1 x2 x3 x4 x5 RHS Ratio 6/3 8/1 Find minimum ratio Basic Eq Var z x1 x2 x3 x4 x5 RHS 0 z 1 0 -16 0 6 0 36 1 x3 0 0 3 1 -1 0 6 2 x1 0 1 -2 0 1 0 6 3 x5 0 0 1 0 0 1 8

2nd Iteration-4 Basic Eq Var z x1 x2 x3 x4 x5 RHS Ratio 6/3 8/1 Find minimum ratio Basic Eq Var z x1 x2 x3 x4 x5 RHS 0 z 1 0 -16 0 6 0 36 1 x3 0 0 3 1 -1 0 6 2 x1 0 1 -2 0 1 0 6 3 x5 0 0 1 0 0 1 8 Pivot point

Basic Basic 2nd Iteration-5 Eq Var z x1 x2 x3 x4 x5 RHS

Basic Basic 2nd Iteration-6 Eq Var z x1 x2 x3 x4 x5 RHS 0 0 1 1/3 -1/3 0 2

Basic Basic 2nd Iteration-7 Eq Var z x1 x2 x3 x4 x5 RHS 0 0 1 1/3 -1/3 0 2 0 1 0 2/3 1/3 0 10

Basic Basic 2nd Iteration-8 Eq Var z x1 x2 x3 x4 x5 RHS 0 0 1 1/3 -1/3 0 2 0 1 0 2/3 1/3 0 10 0 0 0 -1/3 1/3 1 6

Basic Basic 2nd Iteration-9 Eq Var z x1 x2 x3 x4 x5 RHS 1 0 0 16/3 2/3 0 68 0 0 1 1/3 -1/3 0 2 0 1 0 2/3 1/3 0 10 0 0 0 -1/3 1/3 1 6

Basic 2nd Iteration-10 Clearly, this solution must be optimal. What does it mean to be optimal? Basic Eq Var z x1 x2 x3 x4 x5 RHS 0 z 1 x2 2 x1 3 x5 1 0 0 16/3 2/3 0 68 0 0 1 1/3 -1/3 0 2 0 1 0 2/3 1/3 0 10 0 0 0 -1/3 1/3 1 6

Max z = 6x1 + 4x2 x1 + x2 <= 12 x1 -2x2 <= 6 x2 <= 8 x2 x1 Subj. to: x1 + x2 <= 12 x1 -2x2 <= 6 x2 <= 8 x2 12 8 (4,8) z z (10,2) x1 6 12 -3

After the Simplex What can go wrong? Minimization rather than maximization Unbounded solutions Alternate solutions No feasible solution

What’s Next? It just doesn’t get any better than this! Wanna bet! Wait until you see sensitivity analysis.

Can we work another of these simplex problems next class Can we work another of these simplex problems next class? I think I understand how to find the most negative value and the smallest ratio, but I get dizzy when I pivot.