Prelude to the Simplex Algorithm. The Algebraic Approach The search for extreme point solutions.

Similar documents
Standard Form An LP is in standard form when: All variables are non-negativenegative All constraints are equalities Putting an LP formulation into sta

Introduction to the Simplex Algorithm Active Learning Module 3

AM 121: Intro to Optimization

AM 121: Intro to Optimization Models and Methods

Math Models of OR: Some Definitions

Systems Analysis in Construction

The Simplex Method. Standard form (max) z c T x = 0 such that Ax = b.

Dr. Maddah ENMG 500 Engineering Management I 10/21/07

21. Solve the LP given in Exercise 19 using the big-m method discussed in Exercise 20.

The augmented form of this LP is the following linear system of equations:

Summary of the simplex method

TIM 206 Lecture 3: The Simplex Method

MATH 445/545 Test 1 Spring 2016

Simplex Algorithm Using Canonical Tableaus

Metode Kuantitatif Bisnis. Week 4 Linear Programming Simplex Method - Minimize

Review Solutions, Exam 2, Operations Research

1 Review Session. 1.1 Lecture 2

9.1 Linear Programs in canonical form

Chap6 Duality Theory and Sensitivity Analysis

Linear programs Optimization Geoff Gordon Ryan Tibshirani

Lecture 5 Simplex Method. September 2, 2009

MATH 445/545 Homework 2: Due March 3rd, 2016

Lecture 11 Linear programming : The Revised Simplex Method

Algebraic Simplex Active Learning Module 4

Slack Variable. Max Z= 3x 1 + 4x 2 + 5X 3. Subject to: X 1 + X 2 + X x 1 + 4x 2 + X X 1 + X 2 + 4X 3 10 X 1 0, X 2 0, X 3 0

Lecture 2: The Simplex method. 1. Repetition of the geometrical simplex method. 2. Linear programming problems on standard form.

CPS 616 ITERATIVE IMPROVEMENTS 10-1

February 17, Simplex Method Continued

Chapter 4 The Simplex Algorithm Part I

Slide 1 Math 1520, Lecture 10

(P ) Minimize 4x 1 + 6x 2 + 5x 3 s.t. 2x 1 3x 3 3 3x 2 2x 3 6

3 The Simplex Method. 3.1 Basic Solutions

Gauss-Jordan Elimination for Solving Linear Equations Example: 1. Solve the following equations: (3)

Special cases of linear programming

CO350 Linear Programming Chapter 8: Degeneracy and Finite Termination

min 4x 1 5x 2 + 3x 3 s.t. x 1 + 2x 2 + x 3 = 10 x 1 x 2 6 x 1 + 3x 2 + x 3 14

Section Notes 9. IP: Cutting Planes. Applied Math 121. Week of April 12, 2010

END3033 Operations Research I Sensitivity Analysis & Duality. to accompany Operations Research: Applications and Algorithms Fatih Cavdur

Lecture 11: Post-Optimal Analysis. September 23, 2009

CSC Design and Analysis of Algorithms. LP Shader Electronics Example

Math Models of OR: Handling Upper Bounds in Simplex

Linear Programming and the Simplex method

Dual Basic Solutions. Observation 5.7. Consider LP in standard form with A 2 R m n,rank(a) =m, and dual LP:

Sensitivity Analysis

Part 1. The Review of Linear Programming

Today s class. Constrained optimization Linear programming. Prof. Jinbo Bi CSE, UConn. Numerical Methods, Fall 2011 Lecture 12

Ω R n is called the constraint set or feasible set. x 1

LINEAR PROGRAMMING 2. In many business and policy making situations the following type of problem is encountered:

MATH2070 Optimisation

IE 400: Principles of Engineering Management. Simplex Method Continued

1. (7pts) Find the points of intersection, if any, of the following planes. 3x + 9y + 6z = 3 2x 6y 4z = 2 x + 3y + 2z = 1

Simplex Method for LP (II)

Part 1. The Review of Linear Programming

Math Models of OR: Sensitivity Analysis

The Simplex Method. Formulate Constrained Maximization or Minimization Problem. Convert to Standard Form. Convert to Canonical Form

Week 3: Simplex Method I

AM 121: Intro to Optimization Models and Methods Fall 2018

The Graphical Method & Algebraic Technique for Solving LP s. Métodos Cuantitativos M. En C. Eduardo Bustos Farías 1

4. Duality and Sensitivity

Chapter 5 Linear Programming (LP)

Linear Programming: Chapter 5 Duality

Linear Programming, Lecture 4

THE STEPS OF THE SIMPLEX ALGORITHM

The Simplex Algorithm and Goal Programming

Optimization (168) Lecture 7-8-9

Simplex method(s) for solving LPs in standard form

ORF 307: Lecture 2. Linear Programming: Chapter 2 Simplex Methods

Yinyu Ye, MS&E, Stanford MS&E310 Lecture Note #06. The Simplex Method

Lecture 2: The Simplex method

In Chapters 3 and 4 we introduced linear programming

Linear programming: algebra

The Simplex Method of Linear Programming

Ann-Brith Strömberg. Lecture 4 Linear and Integer Optimization with Applications 1/10

IE 5531: Engineering Optimization I

The Simplex Method for Solving a Linear Program Prof. Stephen Graves

IP Cut Homework from J and B Chapter 9: 14, 15, 16, 23, 24, You wish to solve the IP below with a cutting plane technique.

IE 400 Principles of Engineering Management. The Simplex Algorithm-I: Set 3

Non-Standard Constraints. Setting up Phase 1 Phase 2

Lesson 27 Linear Programming; The Simplex Method

The Primal-Dual Algorithm P&S Chapter 5 Last Revised October 30, 2006

4.4 The Simplex Method and the Standard Minimization Problem

Notes on Simplex Algorithm

The Simplex Method. Lecture 5 Standard and Canonical Forms and Setting up the Tableau. Lecture 5 Slide 1. FOMGT 353 Introduction to Management Science

Lecture 4: Algebra, Geometry, and Complexity of the Simplex Method. Reading: Sections 2.6.4, 3.5,

DEPARTMENT OF STATISTICS AND OPERATIONS RESEARCH OPERATIONS RESEARCH DETERMINISTIC QUALIFYING EXAMINATION. Part I: Short Questions

Understanding the Simplex algorithm. Standard Optimization Problems.

Optimization Methods in Management Science

Math 354 Summer 2004 Solutions to review problems for Midterm #1

Dr. S. Bourazza Math-473 Jazan University Department of Mathematics

3. Duality: What is duality? Why does it matter? Sensitivity through duality.

OPERATIONS RESEARCH. Linear Programming Problem

MA 162: Finite Mathematics - Section 3.3/4.1

2018 년전기입시기출문제 2017/8/21~22

Math 273a: Optimization The Simplex method

Professor Alan H. Stein October 31, 2007

Summary of the simplex method

4.3 Minimizing & Mixed Constraints

c) Place the Coefficients from all Equations into a Simplex Tableau, labeled above with variables indicating their respective columns

AM 121 Introduction to Optimization: Models and Methods Example Questions for Midterm 1

Introduction to Operations Research Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology, Madras

Transcription:

Prelude to the Simplex Algorithm The Algebraic Approach The search for extreme point solutions. 1

Linear Programming-1 x 2 12 8 (4,8) Max z = 6x 1 + 4x 2 Subj. to: x 1 + x 2 <= 12 x 1-2x 2 <= 6 x 2 <= 8 (10,2) 6 12 x 1-3 2

Linear Programming-2 x 2 12 8 z (4,8) Max z = 6x 1 + 4x 2 Subj. to: x 1 + x 2 <= 12 x 1-2x 2 <= 6 x 2 <= 8 z (10,2) 6 12 x 1-3 3

LP Terminology Feasible solution - solution in which all the constraints are satisfied. Optimal solution - feasible solution having the most favorable objective function value Boundary equation - the resulting equation after dropping the < or > on a constraint Corner point solution - a feasible solution that does not lie on any line segment connecting two other feasible solutions (extreme point). The intersection of two or more boundary equations. 4

Properties of Corner Point Solutions If there is exactly one optimal solution, then it must be a corner point solution. If there are multiple solutions then at least two must be adjacent corner point solutions. There are only a finite (although often large) number of corner point solutions. If a corner point solution is better than all of its adjacent corner point solutions, then it is better than all other feasible corner points. That is - it is optimal! 5

Convert Inequalities to Equations Max z = 6x 1 + 4x 2 Subj. to: x 1 + x 2 <= 12 x 1-2x 2 <= 6 x 2 <= 8 x 1 >= 0; x 2 >= 0 6

Convert Inequalities to Equations Max z = 6x 1 + 4x 2 Subj. to: x 1 + x 2 + x 3 = 12 x 1-2x 2 + x 4 = 6 x 2 + x 5 = 8 x 1 >= 0; x 2 >= 0 x 3 >= 0, x 4 >=0, x 5 >= 0 7

Convert Inequalities to Equations Max z = 6x 1 + 4x 2 Subj. to: slack variables x 1 + x 2 + x 3 = 12 x 1-2x 2 + x 4 = 6 x 2 + x 5 = 8 x 1 >= 0; x 2 >= 0 x 3 >= 0, x 4 >=0, x 5 >= 0 must be non-negative 8

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

Solutions-1 Non- Var z Corner Pt Comments x 1, x 2 x 3 =12, x 4 =6, x 5 =8 0 (0,0) origin Start at the origin! x 1 = x 2 = 0 Max z = 6x 1 + 4x 2 Subj. to: x 1 + x 2 + x 3 = 12 x 1-2x 2 + x 4 = 6 x 2 + x 5 = 8 + x 3 = 12 + x 4 = 6 + x 5 = 8 10

Graph-1 x 2 12 8 (4,8) Max z = 6x 1 + 4x 2 Subj. to: x 1 + x 2 <= 12 x 1-2x 2 <= 6 x 2 <= 8 x 1 = x 2 = 0 (10,2) 6 12 x 1-3 11

Solutions-2 Non- Var z Corner Pt Comments x 1, x 2 x 3 =12, x 4 =6, x 5 =8 0 (0,0) origin x 2, x 3 x 1 =12, x 4 = -6, x 5 = 8 - (12,0) infeasible Max z = 6x 1 + 4x 2 Go to another corner point! x 2 = x 3 = 0 Subj. to: x 1 + x 2 + x 3 = 12 x 1-2x 2 + x 4 = 6 x 2 + x 5 = 8 x 1 = 12 x 1 +x 4 = 6 x 5 = 8 12

Graph-2 x 2 12 8 (4,8) Max z = 6x 1 + 4x 2 Subj. to: x 1 + x 2 <= 12 x 1-2x 2 <= 6 x 2 <= 8 (10,2) x 1 = 12 x 2 = 0-3 6 infeasible 12 x 1 13

Solutions-3 Non- Var z Corner Pt Comments x 1, x 2 x 3 =12, x 4 =6, x 5 =8 0 (0,0) origin x 2, x 3 x 1 =12, x 4 =-6, x 5 = 8 - (12,0) infeasible x 2, x 4 x 1 =6, x 3 =6, x 5 =8 36 (6,0) Go to another adjacent corner point! x 2 = x 4 = 0 Max z = 6x 1 + 4x 2 Subj. to: x 1 + x 2 + x 3 = 12 x 1-2x 2 + x 4 = 6 x 2 + x 5 = 8 x 1 + x 3 = 12 x 1 = 6 x 5 = 8 14

Graph-3 x 2 12 8 (4,8) Max z = 6x 1 + 4x 2 Subj. to: x 1 + x 2 <= 12 x 1-2x 2 <= 6 x 2 <= 8 x 1 = 6 x 2 = 0 z = 36 (10,2) 6 12 x 1-3 15

Solutions-4 Non- Var z Corner Pt Comments x 1, x 2 x 3 =12, x 4 =6, x 5 =8 0 (0,0) origin x 2, x 3 x 1 =12, x 4 =-6, x 5 = 8 - (12,0) infeasible x 2, x 4 x 1 =6, x 3 =6, x 5 =8 36 (6,0) x 2, x 5 x 1, x 3, x 4 - infeasible Max z = 6x 1 + 4x 2 Subj. to: x 1 + x 2 + x 3 = 12 x 1-2x 2 + x 4 = 6 x 2 + x 5 = 8 x 1 + x 3 = 12 x 1 + x 4 = 6 0 = 8 16

Graph-4 x 2 12 8 (4,8) Max z = 6x 1 + 4x 2 Subj. to: x 1 + x 2 <= 12 x 1-2x 2 <= 6 x 2 <= 8 (10,2) 6 12 x 1-3 17

Solutions-5 Non- Var z Corner Pt Comments x 1, x 2 x 3 =12, x 4 =6, x 5 =8 0 (0,0) origin x 2, x 3 x 1 =12, x 4 =-6, x 5 = 8 - (12,0) infeasible x 2, x 4 x 1 =6, x 3 =6, x 5 =8 36 (6,0) x 2, x 5 x 1, x 3, x 4 - infeasible x 1, x 3 x 2 =12, x 4 =30, x 5 =-4 - (0,12) infeasible Max z = 6x 1 + 4x 2 Subj. to: x 1 + x 2 + x 3 = 12 x 1-2x 2 + x 4 = 6 x 2 + x 5 = 8 x 2 = 12-2x 2 + x 4 = 6 x 2 + x 5 = 8 18

8 (4,8) Graph-5 x 2 12 x 1 = 0 x 2 = 12 infeasible Max z = 6x 1 + 4x 2 Subj. to: x 1 + x 2 <= 12 x 1-2x 2 <= 6 x 2 <= 8 (10,2) 6 12 x 1-3 19

Solutions-6 Non- Var z Corner Pt Comments x 1, x 2 x 3 =12, x 4 =6, x 5 =8 0 (0,0) origin x 2, x 3 x 1 =12, x 4 =-6, x 5 = 8 - (12,0) infeasible x 2, x 4 x 1 =6, x 3 =6, x 5 =8 36 (6,0) x 2, x 5 x 1, x 3, x 4 - infeasible x 1, x 3 x 2 =12, x 4 =30, x 5 =-4 - (0,12) infeasible x 1, x 4 x 2 =-3, x 3 =15, x 5 =11 - (0,-3) infeasible Max z = 6x 1 + 4x 2 Subj. to: x 1 + x 2 + x 3 = 12 x 1-2x 2 + x 4 = 6 x 2 + x 5 = 8 x 2 + x 3 = 12-2x 2 = 6 x 2 + x 5 = 8 20

Graph-6 infeasible x 2 12 8 (4,8) Max z = 6x 1 + 4x 2 Subj. to: x 1 + x 2 <= 12 x 1-2x 2 <= 6 x 2 <= 8 x 1 = 0 x 2 = -3 (10,2) 6 12 x 1-3 21

Solutions-7 Non- Var z Corner Pt Comments x 1, x 2 x 3 =12, x 4 =6, x 5 =8 0 (0,0) origin x 2, x 3 x 1 =12, x 4 =-6, x 5 = 8 - (12,0) infeasible x 2, x 4 x 1 =6, x 3 =6, x 5 =8 36 (6,0) x 2, x 5 x 1, x 3, x 4 - infeasible x 1, x 3 x 2 =12, x 4 =30, x 5 =-4 - (0,12) infeasible x 1, x 4 x 2 =-3, x 3 =15, x 5 =11 - (0,-3) infeasible x 1, x 5 x 2 =8, x 3 =4, x 4 = 22 32 (0,8) x 2 + x 3 = 12-2x 2 +x 4 = 6 x 2 = 8 22

Graph-7 x 2 12 8 (4,8) Max z = 6x 1 + 4x 2 Subj. to: x 1 + x 2 <= 12 x 1-2x 2 <= 6 x 2 <= 8 x 1 = 0 x 2 = 8 z = 32 (10,2) 6 12 x 1-3 23

Solutions-8 Non- Var z Corner Pt Comments x 1, x 2 x 3 =12, x 4 =6, x 5 =8 0 (0,0) origin x 2, x 3 x 1 =12, x 4 =-6, x 5 = 8 - (12,0) infeasible x 2, x 4 x 1 =6, x 3 =6, x 5 =8 36 (6,0) x 2, x 5 x 1, x 3, x 4 - infeasible x 1, x 3 x 2 =12, x 4 =30, x 5 =-4 - (0,12) infeasible x 1, x 4 x 2 =-3, x 3 =15, x 5 =11 - (0,-3) infeasible x 1, x 5 x 2 =8, x 3 =4, x 4 = 22 32 (0,8) x 3, x 4 x 1 =10, x 2 =2, x 5 =6 68 (10,2) optimal x 1 + x 2 = 12 x 1-2x 2 = 6 x 2 + x 5 = 8 24

Graph-8 x 2 12 8 (4,8) Max z = 6x 1 + 4x 2 Subj. to: x 1 + x 2 <= 12 x 1-2x 2 <= 6 x 2 <= 8 x 1 = 10 x 2 = 2 z = 68 (10,2) 6 12 x 1-3 25

Solutions-9 and 10 Non- Var z Corner Pt Comments x 1, x 2 x 3 =12, x 4 =6, x 5 =8 0 (0,0) origin x 2, x 3 x 1 =12, x 4 =-6, x 5 = 8 - (12,0) infeasible x 2, x 4 x 1 =6, x 3 =6, x 5 =8 36 (6,0) x 2, x 5 x 1, x 3, x 4 - infeasible x 1, x 3 x 2 =12, x 4 =30, x 5 =-4 - (0,12) infeasible x 1, x 4 x 2 =-3, x 3 =15, x 5 =11 - (0,-3) infeasible x 1, x 5 x 2 =8, x 3 =4, x 4 = 22 32 (0,8) x 3, x 4 x 1 =10, x 2 =2, x 5 =6 68 (10,2) optimal x 3, x 5 x 1 =4, x 2 =8, x 4 =18 56 (4,8) x 4, x 5 x 1 =22, x 2 =8, x 3 =-18 - (22,8) infeasible 26

x 2 12 Graph-9 and 10 Max z = 6x 1 + 4x 2 Subj. to: x 1 + x 2 <= 12 x 1-2x 2 <= 6 x 2 <= 8 8 (4,8) x 1 =22 x 2 =8 (10,2) 6 12 x 1-3 27

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

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 F HG n+ m n I KJ = ( n+ m)! nm!! 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) 29

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

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! 31

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. 32

The Simplex Tableau-1 Max z - 6x 1-4x 2 = 0 Subj. to: x 1 + x 2 + x 3 = 12 x 1-2x 2 + x 4 = 6 x 2 + x 5 = 8 33

The Simplex Tableau-2 Max z - 6x 1-4x 2 = 0 Subj. to: x 1 + x 2 + x 3 = 12 x 1-2x 2 + x 4 = 6 x 2 + x 5 = 8 0 z 1-6 -4 0 0 0 0 34

The Simplex Tableau-3 Max z - 6x 1-4x 2 = 0 Subj. to: x 1 + x 2 + x 3 = 12 x 1-2x 2 + x 4 = 6 x 2 + x 5 = 8 0 z 1-6 -4 0 0 0 0 1 x 3 0 1 1 1 0 0 12 35

The Simplex Tableau-4 Max z - 6x 1-4x 2 = 0 Subj. to: x 1 + x 2 + x 3 = 12 x 1-2x 2 + x 4 = 6 x 2 + x 5 = 8 0 z 1-6 -4 0 0 0 0 1 x 3 0 1 1 1 0 0 12 2 x 4 0 1-2 0 1 0 6 36

The Simplex Tableau-5 Max z - 6x 1-4x 2 = 0 Subj. to: x 1 + x 2 + x 3 = 12 x 1-2x 2 + x 4 = 6 x 2 + x 5 = 8 0 z 1-6 -4 0 0 0 0 1 x 3 0 1 1 1 0 0 12 2 x 4 0 1-2 0 1 0 6 3 x 5 0 0 1 0 0 1 8 37

The Simplex Algorithm-1 Step 1: Select a new variable to enter the basis. 0 z 1-6 -4 0 0 0 0 1 x 3 0 1 1 1 0 0 12 2 x 4 0 1-2 0 1 0 6 3 x 5 0 0 1 0 0 1 8 38

The Simplex Algorithm-2 z = 6x 1 + 4x 2 Step 1: Select a new variable to enter the basis. Pick the non-basic variable having the greatest negative value. 0 z 1-6 -4 0 0 0 0 1 x 3 0 1 1 1 0 0 12 2 x 4 0 1-2 0 1 0 6 3 x 5 0 0 1 0 0 1 8 39

Step 2a: Select a basic variable to leave the basis. 0 z 1-6 -4 0 0 0 0 1 x 3 0 1 1 1 0 0 12 2 x 4 0 1-2 0 1 0 6 3 x 5 0 0 1 0 0 1 8 40

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 0 z 1-6 -4 0 0 0 0 1 x 3 0 1 1 1 0 0 12 2 x 4 0 1-2 0 1 0 6 12/1 6/1 3 x 5 0 0 1 0 0 1 8 41

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. 1x 1-2x 2 + x 4 = 6 Ratio 0 z 1-6 -4 0 0 0 0 1 x 3 0 1 1 1 0 0 12 2 x 4 0 1-2 0 1 0 6 12/1 6/1 3 x 5 0 0 1 0 0 1 8 pivot point 42

Step 3a: Use row operations to find the new basic solution. 0 z 1-6 -4 0 0 0 0 1 x 3 0 1 1 1 0 0 12 2 x 4 0 1-2 0 1 0 6 3 x 5 0 0 1 0 0 1 8 0 z 1 x 3 2 x 1 3 x 5 43

Step 3b: Use row operations to find the new basic solution. 0 z 1-6 -4 0 0 0 0 1 x 3 0 1 1 1 0 0 12 2 x 4 0 1-2 0 1 0 6 3 x 5 0 0 1 0 0 1 8 0 z 1 x 3 2 x 1 0 1-2 0 1 0 6 3 x 5 44

Step 3c: Use row operations to find the new basic solution. 0 z 1-6 -4 0 0 0 0 1 x 3 0 1 1 1 0 0 12 2 x 4 0 1-2 0 1 0 6 3 x 5 0 0 1 0 0 1 8 0 z 1 x 3 2 x 1 3 x 5 0 1-2 0 1 0 6 0 0 1 0 0 1 8 45

Step 3d: Use row operations to find the new basic solution. 0 z 1-6 -4 0 0 0 0 1 x 3 0 1 1 1 0 0 12 2 x 4 0 1-2 0 1 0 6 3 x 5 0 0 1 0 0 1 8 0 z 1 x 3 0 0 3 1-1 0 6 2 x 1 3 x 5 0 1-2 0 1 0 6 0 0 1 0 0 1 8 46

Step 3e: Use row operations to find the new basic solution. 0 z 1-6 -4 0 0 0 0 1 x 3 0 1 1 1 0 0 12 2 x 4 0 1-2 0 1 0 6 3 x 5 0 0 1 0 0 1 8 0 z 1 x 3 1 0-16 0 6 0 36 0 0 3 1-1 0 6 2 x 1 3 x 5 0 1-2 0 1 0 6 0 0 1 0 0 1 8 47

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

2nd Iteration-1 z = 6x 1 + 4x 2 Now Sally, you want to pick the new variable to enter the basis. 0 z 1 0-16 0 6 0 36 1 x 3 0 0 3 1-1 0 6 2 x 1 0 1-2 0 1 0 6 3 x 5 0 0 1 0 0 1 8 49

2nd Iteration-2 z = 6x 1 + 4x 2 Pick the non-basic variable having the greatest negative value. 0 z 1 0-16 0 6 0 36 1 x 3 0 0 3 1-1 0 6 2 x 1 0 1-2 0 1 0 6 3 x 5 0 0 1 0 0 1 8 50

2nd Iteration-3 z = 6x 1 + 4x 2 Find minimum ratio Ratio 0 z 1 0-16 0 6 0 36 1 x 3 0 0 3 1-1 0 6 6/3 2 x 1 0 1-2 0 1 0 6 3 x 5 0 0 1 0 0 1 8 8/1 51

2nd Iteration-4 z = 6x 1 + 4x 2 Find minimum ratio Ratio 0 z 1 0-16 0 6 0 36 1 x 3 0 0 3 1-1 0 6 6/3 2 x 1 0 1-2 0 1 0 6 3 x 5 0 0 1 0 0 1 8 Pivot point 52 8/1

2nd Iteration-5 0 z 1 0-16 0 6 0 36 1 x 3 0 0 3 1-1 0 6 2 x 1 0 1-2 0 1 0 6 3 x 5 0 0 1 0 0 1 8 0 z 1 x 2 2 x 1 3 x 5 53

2nd Iteration-6 0 z 1 0-16 0 6 0 36 1 x 3 0 0 3 1-1 0 6 2 x 1 0 1-2 0 1 0 6 3 x 5 0 0 1 0 0 1 8 0 z 1 x 2 0 0 1 1/3-1/3 0 2 2 x 1 3 x 5 54

2nd Iteration-7 0 z 1 0-16 0 6 0 36 1 x 3 0 0 3 1-1 0 6 2 x 1 0 1-2 0 1 0 6 3 x 5 0 0 1 0 0 1 8 0 z 1 x 2 2 x 1 0 0 1 1/3-1/3 0 2 0 1 0 2/3 1/3 0 10 3 x 5 55

2nd Iteration-8 0 z 1 0-16 0 6 0 36 1 x 3 0 0 3 1-1 0 6 2 x 1 0 1-2 0 1 0 6 3 x 5 0 0 1 0 0 1 8 0 z 1 x 2 0 0 1 1/3-1/3 0 2 2 x 1 3 x 5 0 1 0 2/3 1/3 0 10 0 0 0-1/3 1/3 1 6 56

2nd Iteration-9 0 z 1 0-16 0 6 0 36 1 x 3 0 0 3 1-1 0 6 2 x 1 0 1-2 0 1 0 6 3 x 5 0 0 1 0 0 1 8 0 z 1 x 2 1 0 0 16/3 2/3 0 68 0 0 1 1/3-1/3 0 2 2 x 1 3 x 5 0 1 0 2/3 1/3 0 10 0 0 0-1/3 1/3 1 6 57

Clearly, this solution must be optimal. 2nd Iteration-10 What does it mean to be optimal? 0 z 1 x 2 1 0 0 16/3 2/3 0 68 0 0 1 1/3-1/3 0 2 2 x 1 3 x 5 0 0 0-1/3 1/3 1 6 0 1 0 2/3 1/3 0 10 58

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

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

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

I think I understand how to find the most negative value and the smallest ratio, but I get dizzy when I pivot. 62