Unit 2
Unit 2
M1 2 3 2 440
M2 4 - 3 470
M3 2 5 - 430
Example 3.
A toy manufacturer makes three versions of a toy robot.
The first version requires 10 minutes for fabrication and 2
pound of plastic, the second version requires 12 minutes for
fabrication and 3 pounds of plastic, and the 3rd version
requires 15 minutes for fabrication and 4 pounds of plastic.
There are 8 hours of fabrication time available and 200
pounds of plastic available for the next production cycle.
The unit profits are Birr 12 for each version 1, Birr 60 for
each version 2, and Birr 72 for each version 3. A minimum
of 10 units of each robot must be made to fill backorder.
Formulate an LP model that will determine the optimal
production quantities for profit maximization.
Example 4.
The agriculture research institute suggested to a farmer
to spread out at least 4800kg of a special phosphate
fertilizer and not less than 7200kg of a special nitrogen
fertilizer to raise productivity of crops in his field. There
are two sources for obtaining these- mixtures A and B.
both of these are available in bags weighing 100kg
each and they cost birr 40 and birr 24 respectively.
Mixture A contains phosphate and nitrogen equivalent
of 20kg and 80kg respectively, while mixture B
contains these ingredients equivalent of 50kg each.
Formulate an LP model.
Example 5
The orient manufacturing company produces three
type of typewriters Tik-Tik, Mik-Mik, Pik-Pik. All the
three types are required first to be machined and
then to be assembled. The total available machine
time and assembly times are, respectively, 4000
and 1240 hours per month. The time requirements
for the various types and the data regarding selling
price and costs for the three are on the next slide.
Formulate the mathematical LP model that may help us
to determine the optimal production quantities for profit
maximization.
Cont…
Subject to:
6X+2Y > 18
8X+10Y > 40
Y>1
Where; X, Y > 0
Find the values of X and Y which makes the
objective function minimum.
Cont…
Solution:
The coordinates of corner point’s feasible region are:
A = (0, 9), B = (2.27, 2.18), C = (3.75, 1)
Compute objective function value at each corner point
of the feasible region.
Corner point coordinates(x1, x2) Z = 0.1x1+0.07x2
A (0, 9) (0.1x 0) + (0.07 x 9) =0.63
B (2.27, 2.18) (0.1 x 2.27) + (0.07 x2.18) =0.38
C (3.75, 1) (0.1 x 3.75) + (0.07 x 1) = 0.445
Exercise
A company owns two flour mills (A and B) which have different
production capacities for HIGH, MEDIUM and LOW grade
flour. This company has entered contract supply flour to a firm
every week with 12, 8, and 24 quintals of HIGH, MEDIUM and
LOW grade respectively. It costs the Co. $1000 and $800 per
day to run mill A and mill B respectively. On a day, Mill A
produces 6, 2, and 4 quintals of HIGH, MEDIUM and LOW
grade flour respectively. Mill B produces 2, 2 and 12 quintals
of HIGH, MEDIUM and LOW grade flour respectively.
Required:
How many days per week should each mill be operated in
order to meet the contract order most economically? Solve
graphically.
Exercise - Mix of Constraints
Example:
Max Z = 10X1 + 20X2
Subject to 2X1 + 4X2 > 16
X1 + 5X2 > 15
X1, X2 > 0
The reason for it may be concluded to be wrong
formulation of the problem such as incorrectly
maximizing instead of minimizing and/or errors in the
given problem.
Checking equalities or rethinking the problem statement
will resolve the problem.
Cont…
Example:
Max Z = 8X1+16X2
Subject to: X1 + X2 < 200 ……. C1
3X1 + 6X2 < 900 ……. C2
X2 < 125 ……. C3
X1, X2 > 0
Cont..
Slack:
Slack is the amount of a scarce resource that is unused
by a given solution. Slack can potentially exist in a <
constraint. Slack variables are considered in the
objective function by using a coefficient of zero for
each of them. When all the constraints are written as
equalities after adding a slack variable to each of
them, the linear program is said to be in standard form.
For example, in the Assembly constraint 4X1 +10X2 <
100 hrs, the slack value is 100 – [4(9) +10(4)] = 24.
Cont…
Surplus: on the other hand is the amount by which
the optimal solution causes a > constraint to exceed
the required minimum amount. It can be determined
in the same way that slack can, i.e., substitute the
optimal values of the decision variables into the left
side of the constraint and solve. The difference
between the resulting value and the original right
hand side amount is the amount of surplus. Surplus
should also be accounted for in the objective
function by using coefficients of zero like wise.
2.4 THE SIMPLEX SOLUTION METHOD
Steps in Simplex Method
1. Write the Problem in Standard Form
Characteristics:
All constraints are expressed in the form of equalities or
equations.
All right hand sides are non-negative
All variables are non-negative
Standardization/Tableau Form/:
Types of constraint Standard form
≤ Add a slack variable
= Add an artificial variable
≥ Subtract a surplus variable
and add an artificial variable
Cont…
2. Develop an Initial Simplex Tableau
Steps in developing initial simplex tableau:
I. List the variables in the model across the top of the
tableau
II. Next fill-in the parameters of the model in the
appropriate rows and columns
III. Add two columns to the left side of the tableau.
The first column is a list of variables called Basis.
IV. The C at the top column indicates that the values in
that column and the values in that row are
objective function coefficients.
Cont…
V. The last column at the right is called the quantity
column. It refers to the right hand side values (RHS)
of the constraints.
VI. There are two more rows at the bottom of the
tableau. The first raw is a Z-row. For each column
the Z – value is obtained by multiplying each of the
number of the column by their respective row
coefficient in column C.
VII. The last raw is Cj-Z row. The values in this row are
also calculated column by column. For each Column,
the value in row Z is subtracted form the C value in
the top row.
Cont…
3. Determining the Entering Variable:
For a maximization problem; the entering variable is identified
as the one which has the largest positive value in Cj-Z row.
This column corresponding to the entering variable is called
pivot column.
In a minimization problem, the entering variable is the one
which has the largest negative Cj-Z row value in the simplex
tableau.
4. Determining the Leaving Variable:
The leaving variable is identified as the one with the smallest
non-negativity ratio for quantity divided by respective positive
pivot columnar entries.
The row of the leaving variable is pivot row.
Cont...
Basic V. Cj 7 9 0 0 M M
Quantity
X1 X2 S1 S2 A1 A2
M A1 3 6 -1 0 1 0 36
M A2 8 4 0 -1 0 1 64
Zj 11M 10M -M -M M M
100M
Cj-Zj 7-11M 9-10M M M 0 0
Step 3: Determine the Entering and
Leaving Variables
The entering variable is identified as the one
which has the largest negative Cj-Z row value in
the simplex tableau
The leaving variable is the smallest positive ratio
in quantity column
The artificial variables in a minimization problem
will be expressed in the objective function with a
large positive coefficient so that they are quickly
eliminated as we proceed with the solution
Step 4: Develop Second Tableau
Cj 7 9 0 0 M
Basic V. X1 X2 S1 S2 A1 Quantity
A1 M 0 9/2 -1 3/8 1 12
X1 7 1 ½ 0 -1/8 0 8
Zj 7 7/2+9/2M -M 3/8M-7/8 M 56+12M
Cj-Zj 0 11/2-9/2M M 7/8-3/8M 0
Step 5: Develop Third Tableau
Cj 7 9 0 0
Basic V. X1 X2 S1 S2 Quantity
X2 9 0 1 -2/9 1/12 8/3
X1 7 1 0 1/9 -1/6 20/3
Zj 7 9 -11/9 -5/12 212/3
Cj-Zj 0 0 11/9 5/12
Step 6: Check of Optimality
The third tableau represents a final tableau since
it is the optimal solution with entirely zeros and
non-negative values in the Cj-Zj row