CH 3
CH 3
Every organization faces the problem of allocation of resources. The resources include
men, machine, material, capital, information etc. most of these decisions are made subject
to constraints. For example, production from factory is limited due to capacity constraints,
organizations face working capital constraint, technical constraints, demand constraint, and
others. If the decision is to be made after long time, some of these resources can be
expanded; fund can be raised, capacity can be added, additional resources can be acquired.
However, when the decision making is short term the resources cannot be expanded.
Therefore, the decision is to go for what is possible. The best solution cannot be achieved,
but given the constraint (limitation) the decision makers try to optimize (maximize or
minimize) the objective.
The goal in linear programming is to find the best solution given the constraints imposed
by the problem; hence the term constrained optimization.
Components Assumptions
Atypical restriction embodies scarce resources (such as labor supply, raw materials,
production capacity, machine time, storage space), legal or contractual requirements
4. Parameters - are fixed values that specify the impact that one unit of each decision variable
will have on the objective and on any constraint, it pertains to as well as to the numerical
value of each constraint.
➢ The components are the building blocks of an LP model. We can better understand
their meaning by examining a simple LP model as follows.
Example:
Maximize: 4X1 + 7X2 + 5X3 (Profit) ________________ objective function
Subject to:
2X1 + 3X2 + 6X3 300 lab labor hrs
5X1 + X2 + 2X3 200 lb raw material A System constraint
3X1 + 5X2 + 2X3 360 lb raw material B
X1 = 30
X2 40 Individual constraint
Once a problem has been defined, the attention of the analyst shifts to formulating a model.
Just as it is important to carefully define a problem, it is important to carefully formulate
the model that will be used to solve the problem. If the LP model is ill formulated, ill-
structured, it can easily lead to poor decisions.
In order to develop a suitable model of the problem, the manager has met with
Type 1 Type 2
Profit per unit Birr 60 Birr 50
Assembly time per unit 4hrs 10hrs
Inspection time per unit 2hrs 1hr
Storage space per unit 3cubic ft 3cubic ft
The manger also meets with the firm’s marketing manger and learned that demand for the
microcomputers was such that whatever combination of these two types of microcomputer
is produced, all of the output can be sold.
Individual constraint No
Non-negativity constraint X1, X2 0
Section #1 Section #2
Solution:
produced and sold for the next 5 working days so as to maximize the 5
days profit.
2.5X1 + 1.8X2 + 2.0X3 2250 minutes Ass. time station 1 System constraint
X3 20 Model C
In Summary:
In Summary
MinZ: 20X1 + 15X2 + 12X3
St: X1 + X2 + X2 = 500
X1 – 2X3 = 0
X1 250
X2 200
X1, X2, X3 0
22 2X1 + X2 = 22
(0, 13)
3X1 + 3X2 = 39
(0, 10) 10
E
(5, 8) D
4X1 + 10X2 = 100
(9, 4) C
To identify the maximum (minimum) value we use the corner point approach or the
extreme point approach. The corner point/extreme point approach has one theorem: It states
that;
For problems that have optimal solutions, a solution will occur at an extreme, or corner
point. Thus, if a problem has a single optimal solution, it will occur at a corner point. If it
has multiple optimal solutions, at least one will occur at a corner point. Consequently, in
searching for an optimal solution to a problem, we need only consider the extreme points
because one of those must be optimal. Further, by determining the value of the objective
function at each corner point, we could identify the optimal solution by selecting the corner
point that has the best value (i.e., maximum or minimum, depending on the optimization
case) at the objective function.
Substitute the value of the decision variables at each corner point. After all corner points
have been so evaluated, select the one with the highest value to profit or lowest value to
cost depending on the optimization case.
Basic solution
X1 = 9
X2 = 4
Z = Birr 740
After we have got the optimal solution, we have to substitute the value of the decision
variables into the constraints and check whether all the resources available were used or
not. If there is unused resource, we can use it for any other purpose. The amount of unused
resources is known as slack-the amount of the scarce resource that is unused by a given
solution.
The slack can range from zero, for a case in which all of a particular resource is used, to
the original amount of the resource that was available
C (14,0)
(7.25, 0)
If there is a difference between the minimum required amount and the optimal solution, we
call the difference surplus: That is, Surplus 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: 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 can potentially occur in A
constraint.
1. Redundant Constraint
If a constraint when plotted on a graph doesn’t form part of the boundary making
the feasible region of the problem that constraint is said to be redundant.
Example: A firm is engaged in producing two products A and B. Each unit of product A
requires 2Kg of raw material and 4 labor-hrs for processing. Whereas each unit of product
B requires 3Kg of raw materials and 3hrs of labor. Every unit of product A requires 4 hrs
for packaging whereas B needs 3.5hrs. Every week the firm has availability of 60Kg of
raw material, 96 labor-hours and 105 hrs in the packaging department. Moreover 1 unit of
product A sold yields $40 profit and 1 unit of B sod yields $35 profit.
Required:
a. Formulate this problem as a LPP
b. Find the optimal solution
Max.Z = 40 X 1+35 X 2
St :
2 X 1+3 X 2 60
4 X 1+3 X 2 96
4 X 1 + 3.5 X 2 105
X1, X 2 0
X2
(0, 32)
(0, 30)
Packaging: 4X1 +3.5X2 = 105
(0, 20) C (18,8)
Raw material: 2X1 +3X2 = 60
FR
X1
A (0, 0) D (24, 0) (26, 0) (30, 0)
This is a situation where by a LPP has more than one optimal solution. Multiple optimal
Solutions will be found if two corers give optimal solution, then the line segment joining
these points will be the solution.
==>We have unlimited number of optimal solutions without increasing or decreasing the
objective function.
Example: The information given below is for the products A and B.
_____________________________________________________________________
Machine hours per week Maximum available
Department Product A Product B per week
__________________________________________________________________
Cutting 3 6 900
Assembly 1 1 200
Profit per unit $8 $16
_____________________________________________________________________
St :
3 X 1+6 X 2 900
X 1+ X 2 200
X 2 125
X1, X 2 0
X2 X1=0
(0, 200)
FR X2=0
X1
A (0, 0) (300,0)
Interpretation: Both C and D are optimal solutions. Any point on the line segment CD
will also lead to the same optimal solution.
3. Infeasible Solution
A solution is called feasible if it satisfies all the constraints and the constraints and non-
negativity condition. However, it is sometimes possible that the constraints may be
inconsistent so that there is no feasible solution to the problem. Such a situation is called
infeasibility.
Example:
MaxZ=20X1+30X2
St:
2X1+X2< 40
4X1+X2< 60
X1 > 30
X1, X2 > 0
Solution:
X2 X1=0
(0, 60) X1=30
4X1+X2= 60
(0, 40)
2X1+X2= 40
X2=0
X1
(15, 0) (20, 0) (30, 0)
Note:
-In the above graph, there is no common point in the shaded area.
-All constraints cannot be satisfied simultaneously and there is no feasible solution to the
problem.
Example: ABC gasoline company has two refineries with different production capacities.
Refinery a can produce 4,000 gallons per day of super unleaded gasoline, 2000 gallons
per day of regular unleaded gasoline and 1000 gallons per day of leaded gasoline. On the
other hand, refinery b can produce 1000 gallons per day of super unleaded, 3000 gallons
per day of regular unleaded and 4,000 gallons per day of leaded.
The company has made a contract with an automobile manufacturer to provide 24000
gasolines of super unleaded, 42000 gallons of regular unleaded and 36000 gallons of
leaded. The automobile manufacturer wants delivery in not more than 14 days. The cost of
running refinery A is $1500 per day and refinery B is $2400 per day.
Required:
FR
D (12, 6)
LG: X1+4X2=36
5. Unbounded Solution
X1+X2 =0
1 Unbounded
Feasible Region
X1
Fig: Unbounded Solution
2. Max.Z=3X1+2X2
St:
X1-X2<1
X1+X2<3
X1, X2 > 0
X2
A(0,3) Unbounded
Feasible Region
X1-X2=1
B (2, 1)
X1+X2=3
X1
Note here that the two corners of the region are A (0,3) and. B (2,1). The value of
MaxZ(A)=6 and MaxZ(B)=8. But there exist number of points in the shaded region for
which the value of the objective function is more than 8. For example, the point (10, 12)
lies in the region and the function value at this point is 70 which is more than 8.
Remark:
An unbounded solution does not mean that there is no solution to the given LPP, but implies
that there exits an infinite number of solutions.
The optimal solution to a linear programming model will occur at an extreme point of the
feasible solution space. This is true even if a model involves more than two variables;
optimal solutions will occur at these points. Extreme points represent intersections of
constraints. Of course, not every solution will result is an extreme point of the feasible
solution space; some will be outside of the feasible solution space. Hence, not every
solution will be a feasible solution. Solutions which represent intersections of constraints
are called basic solutions; those which also satisfy all of the constraints, including the non-
negativity constraints, are called basic feasible solutions. The simplex method is an
algebraic procedure for systematically examining basic feasible solutions. If an optimal
solution exists, the simplex method will identify it.
The simplex procedure for a maximization problem with all constraints consists of the
following steps.
1. Write the LPM in a standard form: when all of the constraints are written as equalities,
the linear program is said to be in standard form. We convert the LPM in to a standard form
by applying the slack variables, S, which carries a subscript that denotes which constraint
it applies to. For example, S1 refers to the amount of slack in the first constraint, S2 to the
amount of slack in the second constraint, and so on. When slack variables are introduced
to the constraints, they are no longer inequalities because the slack variable accounts for
any difference between the left and right-hand sides of an expression. Hence, once slack
variables are added to the constraints, they become equalities. Furthermore, every variable
in a model must be represented in the objective function. However, since slack does not
provide any real contribution to the objective, each slack variable is assigned a coefficient
of zero in the objective function.
2. Develop the initial tableau: the initial tableau always represents the “Do Nothing”
strategy, so that the decision variables are initially non-basic.
a) List the variables across the top of the table and write the objective function
coefficient of each variable jut above it.
b) There should be one row in the body of the table for each constraint. List the slack
variables in the basis column, one per raw.
c) In the Cj column, enter the objective function coefficient of zero for each slack
variable. (Cj - coefficient of variable “j” in the objective function)
d) Compute values for row Zj
e) Computer values for Cj – Zj.
Solution BV-basic variable Q- quantity
Cj 60 50 0 0 0
BV Qty X1 X2 S1 S2 S3 RHSV Øj = bj/xj (aij)
S1 0 4 10 1 0 0 100 100/4 = 25
S2 0 2* 1 0 1 0 22 22/2 = 11
S3 0 3 3 0 0 1 39 39/3 = 13
Zj 0 0 0 0 0 0
Cj-Zj 60 50 0 0 0 0
Leaving variable
Cj 60 50 0 0 0
BV Qty X1 X2 S1 S2 S3 RHSV Øj = bj/xj (aij)
S1 0 0 8 1 -2 0 56 56/8 = 7
X1 60 1 ½ 0 1/2 0 11 11/0. 5 = 22
Leaving
S3 0 0 3/2 0 -3/2 1 6 6/1.5 = 4 variable
Zj 60 30 0 30 0 660
Cj-Zj 0 20 0 -30 0
Cj 60 50 0 0 0
BV Qty X1 X2 S1 S2 S3 RHSV Øj = bj/xj (aij)
S1 0 0 0 1 6 -16/3 24
X1 60 1 0 0 1 -1/3 9
X2 50 0 1 0 -1 2/3 4
Zj 60 50 0 10 40/3 740
Cj-Zj 0 0 0 -10 -40/3
6. If all Cj – Zj values are zeros and negatives you have reached optimality.
Optimal solution: X1 = 9
X2 = 4
S1 = 24 hrs
MaxZ = Birr 740
5. If this is not the case (step 6), rehear step 2 to 5 until you get optimal solution.
“A simplex solution is a maximization problem is optimal if the Cj – Zj row consists
entirely of zeros and negative numbers (i.e., there are no positive values in the bottom
row).” It communicates the maximization problem is optimizing.
How should the manufacturer schedule his production in order to maximize contribution?
Formulate the above problem as a linear programming model.