Professional Documents
Culture Documents
Step-1
Step 4 Step-5
Write the Linear Step 2
Are there Select
programming Are there
model in the any Y Step-3
any positive
elements in Y the pivot
negative Select element
standard form, the pivot
indicators and
introduce slack the column
in the perform
variables to form pivot above the
objective
the initial system, column- obj. the pivot
function
and write the func.line? oper-
row?
initial tableau. ation
N N
STOP STOP
The optimal solution has been found. The linear programming problem has no
optimal solution
To solve a linear programming model in the standard form ,
by the simplex method use the following steps.
Non-negativity conditions x1 , x2 0
The first step of the simplex method requires that each inequality
be converted into an equation. ”less than or equal to”
inequalities are converted to equations by including slack
variables.
Suppose s1 hours in dept. L and s2 hours in dept. M remain
unused in a week. The constraints become;
Maxinise P
4 x1 3x2 s1 0s2 240
2 x1 x2 0s1 s2 100
P 70 x1 50 x2 0s1 0s2 0
0
STEP 2
Right
Basic
x1 x2 S1 S2 P Hand
Variables
Side
S1 4 3 1 0 0 240
S2 2 1 0 1 0 100
P -70 -50 0 0 1 0
x1 0, x2 0, s1 240, s2 100, P 0
The slack variables S1 and S2 form the initial solution mix. The initial
solution assumes that all avaliable hours are unused. i.e. The slack variables
take the largest possible values.
Variables in the solution mix are called basic variables. Each basic
variables has a column consisting of all 0’s except for a single 1.
all variables not in the solution mix take the value 0.
Right
Basic
x1 x2 S1 S2 P hand
Variables
side
S1 4 3 1 0 0 240
S2 2 1 0 1 0 100
P -70 -50 0 0 1 0
Pivot column
x1 should enter into the solution mix because each unit of x1 (product A)
contributes a profit of $70 compared with only $50 for each unit of x2
(product B)
Step 4
Since there are positive elements in the pivot
column above the objective function line.
We can go on step 5
STEP 5
Select the pivot row (determine which variable to replace in the solution mix).
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.
Enter
Right
Basic
x1 x2 S1 S2 P hand
Variables
side
S1 4 3 1 0 0 240 240/ 4 60
Exit S2 2 1 0 1 0 100 100/ 2 50
P -70 -50 0 0 1 0
Pivot column
Pivot Pivot row
number
Now calculate new values for the pivot row. Divide every number in the row
by the pivot number.
Right
Basic
x1 x2 S1 S2 P hand
Variables
side
S1 4 3 1 0 0 240
R2
x1 1 1/2 0 1/2 0 50 2
P -70 -50 0 0 1 0
Use row operations to make all numbers in the pivot column equal to 0 except
for the pivot number which remains as 1.
Right
Basic
x1 x2 S1 S2 P hand
Variables
side
S1 0 1 1 -2 0 40 4.R2 R1
x1 1 1/2 0 1/2 0 50
P 0 -15 0 35 1 3500 70.R2 R3
In this case, x1 50, x2 0, s1 40, s2 0, P 3500
Now repeat the steps until there are no negative numbers in the last row.
Select the new pivot column. x2 should enter into the solution mix.
Select the new pivot row. S1 should be replaced by x2 in the solution mix.
Enter
Right
Basic
x1 x2 S1 S2 P hand
Variables
side
Exit S1 0 1 1 -2 0 40 40/1 40
x1 1 1/2 0 1/2 0 50 50/ 0,5 100
P 0 -15 0 35 1 3500
New pivot row
New pivot
column
Calculate new values for the pivot row. As the pivot number is already 1,
there is no need to calculate new values for the pivot row.
Use row operations to make all numbers in the pivot column equal to
except for the pivot number.
Right
Basic
x1 x2 S1 S2 P hand
Variables
side
x2 0 1 1 -2 0 40
1
x1 1 0 -1/2 3/2 0 30 .R1 R2
2
P 0 0 15 5 1 4100 15.R1 R3
As the last row(obj. function)row contains no negative
numbers, this solution gives the maximum value of P.
Result
This simplex table represents the optimal
solution to the LP problem and is interpreted
as: x1 30, x2 40, s1 0, s2 0