L5 Solving LP Maximization Problem Simplex Method
L5 Solving LP Maximization Problem Simplex Method
Step-1
Write the Step 4
Step 2 Are there Step-5
standard
Are there any positive Select the
maximization any Step-3 elements in pivot
problem in negative Select the pivot element
standard form, indicators the column and
introduce slack in the pivot above the perform
variables to form bottom column dashed the pivot
the initial system, row? line?
operation
and write the
initial tableau.
STOP
STOP The linear programming problem has
The optimal solution has been found. no optimal solution
• Pivot Column:
– The column of the table contains the variable to be
entered into the solution mix.
• Pivot Row:
– The row of the table contains the variable to be
replaced in the solution mix.
• Pivot Number:
– The element in both the pivot column and the pivot
row.(intersection}
Simplex Table
or
• As unused hours or slack result in no profit, the slack
variables are included in the objective function with zero
coefficients:
Basic Right
x1 x2 S1 S2 P
Variables Hand Side
S1 4 3 1 0 0 240
S2 2 1 0 1 0 100
P -70 -50 0 0 1 0
STEP 2
Pivot column
• Note that there are 2 negative values in the last row and the
most negative is -70, thus, the pivot column is column X₁
STEP 3 con’t
– Next choose the pivot row.
• divide the last element in each row by the corresponding
element in the pivot column.
• the pivot row is the row with the smallest non-negative result.
Pivot row
Pivot column
STEP 3 con’t
• The entering variable now is x₁ and the leaving variable is s₂
• The pivot number is 2
Enter x₁
Pivot number
STEP 4
Use elementary row operations to
– make all numbers in the pivot column equal to 0 except for the
pivot number which must be equal to 1, that is,
Basic Right
x1 x2 S1 S2 P hand side
Variables
S1 4 3 1 0 0 240
S2 2 1 0 1 0 100
P -70 -50 0 0 1 0
Step 4 con’t
• To change the pivot 2 to 1, we perform the row operation
(1/2)R₂ .
Right
Basic
x1 x2 S1 S2 P hand
Variables
side
S1 4 3 1 0 0 240
x1 2 1 0 1 0 100
P -70 -50 0 0 1 0
•½ (2 1 0 1 0 100) = 1 ½ 0 ½ 0 50
Right
Basic
x1 x2 S1 S2 P hand
Variables
side
Exit S1 0 1 1 -2 0 40
x1 1 1/2 0 1/2 0 50
P 0 -15 0 35 1 3500