QTB Report
QTB Report
QTB Report
LINEAR
PROGRAMMING
Simplex Maximization
Steps in Solving Maximization Problems
1.Set up the objective function and the constraints of the problem.
2.Convert the objective function and the explicit constraints to equation form (standard form).
Follow the following rules in converting the LP model to standard form:
<
>
The artificial variables in the optimum or final solution should be zero provided a feasible
solution exists. The reasonable way to do this is to penalize these variables in the objective
function by using a very small number coefficient, -M, (M for million), or -100 if the numerical
coefficient found in the constraints and objective function are all less than or equal to 10, let it
equal to -1000 if the numerical coefficients are all less than or equal to 100, let it equal to
-10000, if the numerical coefficients are all less than or equal to 1000,and so on.
The number of columns = no. decision variable + no. of slacks/surplus variables + no. of
artificial variables + 4
3.1. Fill up the first and second rows of the initial tableau.
a) The variable row (second row) contains the variable of the objective function. List
the variables in order, beginning with the decision, followed be the slack variables
then
the artificial variables (the subscripts follow the constraint number)
b) The Cj row (first row) takes the numerical coefficients of the variables in the
variable row.
3.2. Put the entries in the first three columns of the initial tableau.
a) The second column is the solution column (also called basis or variable column).
b) the first column is the contribution to profit column (Ci), which takes the
coefficients of the variables in the solution column.
c) The third column is the quantity column or the constant column, which takes the
constant terms or the right-hand values of the constraints.
4. Select the optimum column, the column with the most positive value in the Ci Zi
row of the initial table
5. Select the pivot in the pivotal row.
6. Use the pivot to clear the optimum column in the normal manner. This gives the next tableau.
7. Repeat steps 4-6 until there are no more negative numbers in the bottom row (with the
possible expectation of the Answer column.)
Solution:
2x+3y+S1=80
3x+4y+S2=100
Objective function
Max Z=
5x+12y+0S1+0S2
implicit constraint
Table 1
Cj
Cj
Solution Quantity
90
x
110
y
0
S1
Qi
S2
S1
60
S2
180
10
Zj
90
110
Cj - Zj
Iteration 1
i. Determine the optimum column and the pivotal row, and then highlight them.
ii. The intersection of these column and row is the pivot element.
iii. Determine the Qi column.
60 2 = 30
180 10 = 18
Table 2
Iteration 2
i. Pivotal row: second constraint coefficient row
Change the outgoing variable by the entering variable (reflect corresponding
coefficients in the Ci Col.) Pivot element in the replacing pivot row should be
equal to one (1), thus divide each entry in this row by the pivot element (10)
Table 3
Table 4
Table 5
The solution is not yet final at this point since there is still positive entry in the Cj Zj row
Table 6
Simplex Minimization
Steps in solving Minimization Problems
The steps in solving minimization problems by simplex method are the same as
in maximization except for steps 2, 4, and 7.
2. Convert the objective function and the explicit constraints to equation form
(standard form).
Follow the following rules in converting the LP model to standard form:
Symbols in the constraint
4. Select the optimum column, column with the most negative value in the
Cj-Zj row of the initial table.
7. Repeat steps 4-6 until there are no more positive numbers in the bottom
row (with the possible exception of the Answer column.
Iteration 1
Cj
Qi
Ci
Solution
Quantity
A1
S2
S3
A3
A1
10
S2
A3
18
-1
19
28M
4M
4M
-M
Zj
Cj - Zj
6 4M 4 4M
Iteration 2
Cj
Qi
Ci
Solution
Quantity
A1
S2
S3
A3
A1
-2
---
A3
10
-2
-1
3.33
16 + 12M
4M
4 4M
-M
6 4M
-4 + 4M
Zj
Cj - Zj
Final tableau
Cj
Ci
Solution
Quantity
A1
S2
S3
A3
-1/2
-1/2
1/2
3/4
1/4
-1/4
S2
-3/4
-1/4
1/4
36
-2
M-2
Zj
Cj - Zj
From the last table, The Cj Zj has zeros and positive entries, thus it gives the optimum
Solution. The solution are x = 4,y = 3and the minimum value of Z = 36.