The Simplex Method
and Maximize Subject to
From a geometric viewpoint : CPF solutions (Corner-Point Feasible) : Corner-point infeasible solutions Feasible region
Optimality test: There is at least one optimal solution. If a CPF solution has no adjacent CPF solutions that are better (as measured by Z) than itself, then it must be an optimal solution.
Initialization Iteration Optimal Solution? No Yes Stop
Feasible region 12 0
The Key Solution Concepts Solution concept 1: The simplex method focuses solely on CPF solutions. For any problem with at least one optimal solution, finding one requires only finding a best CPF solution.
Solution concept 2: The simplex method is an iterative algorithm ( a systematic solution procedure that keeps repeating a fixed series of steps, called an iteration). Solution concept 3: The initialization of the simplex method chooses the origin to be the initial CPF solution.
Solution concept 4: Given a CPF solution, it is much quicker computationally to gather information about its adjacent CPF solutions than other CPF solutions. Therefore, each time the simplex method performs an iteration to move from the current CPF solution to a better one, it always chooses a CPF solution that is adjacent to the current one.
Solution concept 5: After the current CPF solution is identified, the simplex method identifies the rate of improvement in Z that would be obtained by moving along edge. Solution concept 6: The optimality test consists simply of checking whether any of the edges give a positive rate of improvement in Z. If no improvement is identified, then the current CPF solution is optimal.
Simplex Method To convert the functional inequality constraints to equivalent equality constraints, we need to incorporate slack variables.
and Max s.t. for Original Form of Model Augmented Form of the Model Slack variables and Max s.t.
A basic solution is an augmented corner-point solution. A Basic Feasible (BF) solution is an augmented CPF solution. Properties of BF Solution 1. Each variable is designated as either a nonbasic variable or a basic variable. 2. # of basic variables = # of functional constraints.
3. The nonbasic variables are set equal to zero. 4. The values of the basic variables are obtained from the simultaneous equations. 5. If the basic variables satisfy the nonnegativity constraints, the basic solution is a BF solution.
Simplex in Tabular Form (0) (1) (2) (3) (0) (1) (2) (3) (a) Algebraic Form (b) Tabular Form Coefficient of: Right Side Basic Variable Z Eq
(0) (1) (2) (3) (b) Tabular Form Coefficient of: Right Side BV Z Eq minimum The most negative coefficient
(0) (1) (2) (3) (b) Tabular Form Coefficient of: Right Side BV Z Eq minimum The most negative coefficient Iteration
(0) (1) (2) (3) (b) Tabular Form Coefficient of: Right Side BV Z Eq minimum The most negative coefficient Iteration 1 4 6
(0) (1) (2) (3) (b) Tabular Form Coefficient of: Right Side BV Z Eq None of the coefficient is negative. Iteration 2 The optimal solution
(a) Optimality Test: The current BF solution is optimal if and only if every coefficient in row 0 is nonnegative. Pivot Column: A column with the most negative coefficient (a) Optimality Test (b) Minimum Ratio Test:
1. Pick out each coefficient in the pivot column that is strictly positive (>0). 2. Divide each of these coefficients into the right side entry for the same row. 3. Identify the row that has the smallest of these ratios. 4. The basic variable for that row is the leaving basic variable, so replace that variable by the entering basic variable in the basic variable column of the next simplex tableau.
Breaking in Simplex Method (a) Tie for Entering Basic Variable Several nonbasic variable have largest and same negative coefficients. (b) Degeneracy Multiple Optimal Solutions occur if a nonbasic variable has zero as its coefficient at row 0 in the final tableau.
(0) (1) (2) (3) Coefficient of: Right Side BV Z Eq Solution Optimal? No (0) (1) (2) (3) Algebraic Form
(0) (1) (2) (3) Coefficient of: Right Side BV Z Eq Solution Optimal? No
(0) (1) (2) (3) Coefficient of: Right Side BV Z Eq Solution Optimal? Yes
(0) (1) (2) (3) Coefficient of: Right Side BV Z Eq Extra 0 Solution Optimal? Yes
(c) Unbounded Solution If An entering variable has zero in these coefficients in its pivoting column, then its solution can be increased indefinitely. (0) (1) Coefficient of: Right side Ratio Basic Variable Z Eq. None
Other Model Forms (a) Big M Method (b) Variables - Allowed to be Negative
(M: a large positive number.) (a) Big M Method and Max s.t. and Max s.t. for Original ProblemArtificial Problem : Artificial Variable : Slack Variables
(3) (0) (4) Max: or Max: Max: s.t. Eq (3) can be changed to Put (4) into (0), then
(0) (1) (2) (3) Coefficient of: Right Side BV Z Eq M M M Max s.t. (1) (2) (3)
(0) (1) (2) (3) Coefficient of: Right Side BV Z Eq M M M
(0) (1) (2) (3) Coefficient of: Right Side BV Z Eq
(0) (1) (2) (3) Coefficient of: Right Side BV Z Eq Extra
(b) Variables with a Negative Value Min s.t. Min s.t.