Professional Documents
Culture Documents
1
Optimization Linear Programming
2
Optimization Linear Programming/Simplex Method
➢ Simplex Method
3
Optimization Linear Programming/Simplex Method
• Step 0: Using the standard form determine a starting basic feasible solution
by setting n-m non-basic variables to zero.
• Step 2: Select a leaving variable from among the current basic variables that
must now be set to zero (become non-basic) when the entering variable
becomes basic.
• Step 3: Determine the new basic solution by making the entering variable,
basic; and the leaving variable, non-basic, and return to Step 1.
5
Optimization Linear Programming/Simplex Method
Simplex Tableau
The tabular form of the simplex method uses a simplex tableau to
display the system of equations yielding the current basic feasible
solution.
There are different ways to design the tableau a common design is as
follows:
Initial Tableau for the R-M problem (Iteration 0)
S2 2 0 2 1 0 1 0 0 8
Constraints
S3 3 0 -1 1 0 0 1 0 1
S4 4 0 0 1 0 0 0 1 2
7
Optimization Linear Programming/Simplex Method
Pivot
Element
Entering Variable: Select the variable with Leaving Variable: Smallest
the most negative coefficient in the ratio obtained by dividing
objective function the RHS of each row by the
positive coefficients of the
entering variable (Column)
9
Optimization Linear Programming/Simplex Method
Iteration 0 (Step 3)
• To get the new BFS we perform the following steps:
1. Divide the pivot row by the pivot element and call it the “new pivot
row”. Copy the result in the tableau for the next iteration.
2. For every row of the current tableau (excluding the pivot row) subtract
the product of its pivot-column coefficient times the new pivot row.
Copy the result in the corresponding row of the next-iteration tableau.
Make sure to properly identify the new basic variable.
• M-R Example: New pivot 1:
Iter- Basic Eq. Z XE XI S1 S2 S3 S4 RHS
ation Var. (Sol)
z 0 1
S1 1 0
1 XE 2 0 1 1/2 0 1/2 0 0 8/2
S3 3 0
S4 4 0
10
Optimization Linear Programming/Simplex Method
11
Optimization Linear Programming/Simplex Method
We select
Increasing to increase
Increasing the value
XI by unit
4 XE by unit of XE
results in an
results in an
increase of
increase of How much can
Z of 2 units
Z of 3 units we increase
2 X E?
XE =0 The amount of the
XI =0 increase is limited by
S1 =6 the constraints (One
S2 =8 xE
of the slack variables
2 4 6
becomes zero or non-
S3 =1 basic)
S4 =2 12
Optimization Linear Programming/Simplex Method
Iteration 1
13
Optimization Linear Programming/Simplex Method
Iteration 2
Since all the coefficients in the objective function are positive we stop: We have
found the optimal Solution.
14
Optimization Linear Programming/Simplex Method
Example:
Minimize z = x1- 3x2 –2x3 Maximize (-z) = -x1+ 3x2 + 2x3 Max. –z + x1 - 3x2 –2x3 = 0
Subject to: Subject to: Subject to:
3x1 - x2 + 2x3 7 3x1 - x2 + 2x3 7 3x1 - x2 + 2x3 + S1 = 7
-2x1 + 4x2 + 2x3 12 -2x1 + 4x2 + 2x3 12 -2x1 + 4x2 + 2x3+ S2 = 12
-4x1 + 3x2 + 8x3 10 -4x1 + 3x2 + 8x3 10 -4x1 + 3x2 + 8x3 + S3 = 10
x1, x2 0 x1, x2 0 x1, x2, S1 , S2, S3, 0
15
Optimization Linear Programming/Simplex Method
17
Optimization Linear Programming/Simplex Method
Subject to:
x1 + 2x2≤40
4x1 + 3x2 ≤ 120
x1, x2 , s1, s2 ≥ 0
A
• z is parallel to the constraint line
4x1+ 3x2 = 120
• Endpoints B and C, are referred to as B
alternate optimal solutions
18
Optimization Linear Programming/Simplex Method
19
Optimization Linear Programming/Simplex Method
20
Optimization Linear Programming/Simplex Method
➢ Unbounded Problems
21
Optimization Linear Programming/Simplex Method
22
Optimization Linear Programming/Simplex Method
➢ Degeneracy
23
Optimization Linear Programming/Simplex Method
S1 ratio: 12/6 =2
S3 ratio: 10/5 =2
24
Optimization Linear Programming/Simplex Method
Loop in Solutions
• A value of zero
for s1 indicates a degeneracy
condition
• s2 is entering variable and s1
as pivot row.
25
Optimization Linear Programming/Simplex Method
Graphical Analysis
26