Presentation is loading. Please wait.

Presentation is loading. Please wait.

Well, just how many basic

Similar presentations


Presentation on theme: "Well, just how many basic"— Presentation transcript:

1

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

3 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)

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

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

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

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

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

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

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

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

12 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 x 2 x 3 x

13 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 x 2 x 3 x

14 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 x 2 x 3 x

15 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 x 2 x 3 x

16 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 - 2x x = 6 Basic Eq Var z x1 x2 x3 x4 x5 RHS 0 z 1 x 2 x 3 x pivot point

17 Step 3a: Use row operations to find the new basic solution.
Eq Var z x1 x2 x3 x4 x5 RHS 0 z 1 x 2 x 3 x Basic Eq Var z x1 x2 x3 x4 x5 RHS 0 z 1 x3 2 x1 3 x5

18 Step 3b: Use row operations to find the new basic solution.
Eq Var z x1 x2 x3 x4 x5 RHS 0 z 1 x 2 x 3 x Basic Eq Var z x1 x2 x3 x4 x5 RHS 0 z 1 x3 2 x1 3 x5

19 Step 3c: Use row operations to find the new basic solution.
Eq Var z x1 x2 x3 x4 x5 RHS 0 z 1 x 2 x 3 x Basic Eq Var z x1 x2 x3 x4 x5 RHS 0 z 1 x3 2 x1 3 x5

20 Step 3d: Use row operations to find the new basic solution.
Eq Var z x1 x2 x3 x4 x5 RHS 0 z 1 x 2 x 3 x Basic Eq Var z x1 x2 x3 x4 x5 RHS 0 z 1 x3 2 x1 3 x5

21 Step 3e: Use row operations to find the new basic solution.
Eq Var z x1 x2 x3 x4 x5 RHS 0 z 1 x 2 x 3 x Basic Eq Var z x1 x2 x3 x4 x5 RHS 0 z 1 x3 2 x1 3 x5

22 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

23 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 x 2 x 3 x

24 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 x 2 x 3 x

25 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 x 2 x 3 x

26 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 x 2 x 3 x Pivot point

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

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

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

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

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

32 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 /3 2/3 0 68 /3 -1/3 0 2 /3 1/3 0 10 /3 1/3 1 6

33 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

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

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

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


Download ppt "Well, just how many basic"

Similar presentations


Ads by Google