Chapter 2-I
Chapter 2-I
Chapter 2-I
2. The Decision Variables - represent unknown quantities to be resolved for. These decision
variables may represent such things as the number of units of different products to be sold, the
amount of Birr to be invested in various projects, the number of ads to be placed with different
media. Since the decision maker has freedom of choice among actions, these decision variables
are controllable variables.
3. The constraints - are restrictions which define or limit the feasibility of a proposed course of
action. They limit the degree to which the objective can be pursued. Atypical restriction
embodies scarce resources (such as labor supply, raw materials, production capacity, machine
time, storage space), legal or contractual requirements (e.g. Product standards, work standards),
or they may reflect other limits based on forecasts, customer orders, company policies etc.
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.
None-negativity constraints specify that no variable will be allowed to take on a negative value.
The non-negativity constraints typically apply in an LP model, whether they are explicitly stated
or not.
3. Certainty. The certainty requirement involves two aspects of LP models. i) With respect to
model parameters (i.e., the numerical values) – It is assumed that these values are known and
constant e.g. in the above example each unit of product 1 requires 2 lab, this is known and
remain constant, and also the 300 lab/hr available is deemed to be known and constant. ii) All the
relevant constraints identified and represented in the model are as they are.
Although Linear Programming is successful and having wide applications in business and
trade for solving optimization problems, yet it has certain demerits or limitations as
follows:
Some of the important application areas of Linear Programming are the following:
Military Applications Portfolio Selection.
Agriculture. Profit Planning & Contract.
Environmental Protection. Traveling Salesmen Problem.
Facilities Location. Media Selection/Evaluation.
Product-Mix. Staffing.
Production. Job Analysis.
Mixing or Blending. Wages and Salary
Transportation & Trans- Administration
Shipment.
The basic steps in formulating a linear programming model are presented as follows:
Step I Identification of the decision variables. The decision variables (parameters) having a
bearing on the decision at hand shall first be identified, and then expressed or determined in the
form of linear algebraic functions or in equations.
a. Express each constraint in words. For this first see whether the constraint is of the form ≥
(at least, as large as), or of the form ≤ (no larger than) or = (exactly equal)
b. Then express the objective function verbally.
c. Step (a) and (b) should then allow you to verbally identify the decision variables.
Step II Identification of the constraints. All the constraints in the given problem which restrict
the operation of a firm at a given point of time must be identified in this stage. Further these
constraints should be broken down as linear functions in terms of the pre-defined decision
variables.
Step III formulate the objective function. In the last stage, the objective which is required to
be optimized (i.e., maximized or memorized) must be dearly identified and expressed in terms of
the pre-defined decision variables.
Step IV formulate the LPP
EXAMPLES
Example 1: A company has three operational departments (weaving, processing and packing)
with capacity to produce three different types of clothes namely suiting, shirting and woolens
yielding a profit of Birr 2, 4 and 3 respectively. One meter of suiting requires 3 minutes in
weaving, 2 minutes in processing and 1 minute in packing. Similarly, one meter of shirting
requires 4 minutes in weaving, 1 minute in processing and 3 minutes in packing. One meter of
woolen requires 3 minutes in each department. In a week, total run time of each department is
60, 40 and 80 hours for weaving, processing and packing respectively. Formulate the linear
programming problem (LPP) to find the product mix to maximize the profit.
Example 2: A small scale manufacturer produces two types of products A and B which give a
profit margin of Birr 4 and Birr 3, respectively. There are two plants I and II, each having a
capability of 72 and 48 hours per day. Cycle times of A and B are 2 hours and 1 hour in plant
number I, respectively. Similar figures for plant II are 1 and 2 hours. Formulate an LPP model
for maximizing the profit.
The summarized data of the above problem is as follows:
Products
Plant A B Availability
I 2 1 72
II 1 2 48
Profit 4 3
Example 3: A firm can produce 3 types of clothes A, B and C. Three kinds of wools are
required with the color of red, green and blue to produce the clothes. One unit of A-type cloth
consumes 4 meters of red, and 6 meters of blue wool. One unit of B-type cloth needs 6 meters of
red, 4 meters of green and 4 meters of blue wool. Type C uses 10 meters of green and 8 meters
of blue. Available stocks are 80, 100 and 150 meters of red, green and blue wools. Profit margins
per unit of A, B and C are 15, 25 and 20 Birr, respectively. Formulate an LPP model to
maximize the profit.
The summarized data of the above problem is as follows:
Clothes
Wool Color A B C Availability
Red 4 6 - 80
Green - 4 10 100
Blue 6 4 8 150
Profit 15 25 20
The LPP model formulation:
Maximize Z = 15x + 25y + 20z
Subject to:
4x + 6y + 0z ≤ 80
0x + 4y + 10z ≤ 100
6x + 4y + 8z ≤ 150
x, y, z ≥ 0.
Example 4 Demisie Borji and Sons Company is engaged in the manufacture of three products X,
Y and Z. Available data is given below.
Product Minimum sales per month Profit per unit
X 10 10
Y 20 15
Z 30 8
LP model formulation:
Let x1,x2,x3,x4,x5,x6,x7 = number of doctors who start their duty on day of the week.
The LP model
Minimize (total number of doctors) Z = x1+x2+x3+x4+x5+x6+x7
Subject to the constraints:
x1+x4+x5+x6+x7 ≥35
x2+x5+x6+x7+x1 ≥55
x3+x6+x7+x1+x2 ≥60
x4+x7+x1+x2+x3 ≥50
x5+x1+x2+x3+x4≥60
x6+x2+x3+x4+x5≥50
x7+x3+x4+x5+x6≥45
x1+x2+x3+x4+x5+x6+x7 ≤40
x1,x2,x3,x4,x5,x6,x7≥0
2.7. SOLVING LINEAR PROGRAMMING:
There are two types of finding a solution for Linear programming problems.
Graphic solution and
Simplex solution
2.7. 1. THE GRAPHICAL METHOD:
The Graphical method can be used to solve simple LPPs having two decision variables
only. For LPPs with three or more variables, this method cannot be employed. To use the
graphical method for solving linear programming problems of two decision variables, the
following steps are required:
Step I Defining the problem. Formulate the problem mathematically. Express it in terms of
several mathematical constraints & an objective function. The objective function relates to the
optimization aspect, i.e. Maximization or minimization Criterion.
Step II Plot the constraints graphically. Each inequality in the constraint equation has to be
treated as an equation. An arbitrary value is assigned to one variable & the value of the other
variable is obtained by solving the equation. In the similar manner, a different arbitrary value is
again assigned to the variable & the corresponding value of other variable is easily obtained.
These 2 sets of values are now plotted on a graph and connected by a straight line. The same
procedure has to be repeated for all the constraints. Hence, the total straight lines would be equal
to the total no of equations, each straight line representing one constraint equation.
Step III Shade the feasible region . Solution space or the feasible region is the graphical area
which satisfies all the constraints at the same time. Such a solution point (x, y) always occurs at
the corner Points of the feasible Region the feasible region is determined as follows:
a. For "greater than" & "greater than or equal to" constraints, the feasible region or the
solution space is the area that lays above the constraint lines.
b. For" Less Then" &" Less than or equal to" constraint, the feasible region or the solution
space is the area that lays below the constraint lines.
Step IV Selecting the graphic solution technique. Select the appropriate graphic technique to be
used for generating the solution. There are two graphic techniques to find solution;
1. Corner Point Method and
2. Iso-profit (or Iso-cost) method may be used; however, it is easier to generate solution by
using the corner point method and we use this method to find solution.
Maximize Z = 15x1+10x2
Subject to the constraints
4x1+6x2 ≤ 360
3x1+0x2 ≤ 180
0x1+5x2 ≤ 200
x1, x2 ≥ 0.
Solution:
1. If the given problem is not in mathematical form, then convert the problem into mathematical
form. However, in the case of above example, the given problem is already in mathematical
form.
2. We shall treat x1 as the horizontal axis and x2 as the vertical axis. Each constraint will be
plotted on the graph by treating it as a linear equation and then appropriate inequality
conditions will be used to mark the area of feasible solutions.
Consider the first constraint 4x1+6x2 ≤ 360. Treat it as the equation, 4x 1+6x2 = 360. The
easiest way to plot this line is to find any two points that satisfy the equation, then drawing a
straight line through them. The two points are generally the points at which the line intersects the
x1 and x2 axes. For example, when x1 = 0, we get 6x2 = 360 or x2 = 60, dividing both sides by 6.
Similarly, when x2 = 0, 4x1 = 360, then x1 = 90, applying the same rule as above.
These two points are then connected by a straight line as will be depicted in the Figure
2.1 here below. But the question is: where are the points satisfying 4x 1+ 6x2 ≤ 360. In the case of
this constraint, any point above the constraint line violates the inequality condition. But any point
below the line does not violate the constraint. Thus, the inequality and non-negativity condition
can only be satisfied by the shaded area (feasible region) as may be shown in Figure 2.1 here
below. Similarly, the constraints 3x1 ≤ 180 and 5x2 ≤ 200 are also plotted on the graph and are
indicated by the shaded area as shown in Fig. 2.1.
X2
80
5x2 = 200
(0, 60)
60
4x1+6x2 = 360.
Example 2 Ephrem is planning to buy some hens. Old hens can be bought at Birr 2 each and
young ones at Birr 5 each. The old hens lay 3 eggs per week and the young ones lay 5 eggs per
week. Each egg bears a worth of 30 cents. A hen (young or old) costs 1 Birr per week to feed. He
has only Birr 80 to spend for hens. How many of each kind should he buy to give a profit of
more than Birr 6 per week, assuming that he can not house more than 20 hens?
Solution: LP model formulation. Let x1 be the number of old hens and x2 the number of young
hens to be bought. Since old hens lay 3 eggs per week and the young ones lay 5 eggs per week,
the total number of eggs obtained per week will be = 3x 1+5x2. Consequently, the cost of each egg
being 30 cents, the total gain will be = Birr 0.30(3x 1 + 5x2). Total expenditure for feeding (x1+
x2) at the rate of Birr 1 each will be = Birr 1 (x 1+ x2). Thus, total profit Z earned per week will be
Z = total gain – total expenditure, or
Z = 0.30 (3x1+5x2) – (x1 + x2) or
Z = 0.50x2 – 0.10x1 (objective function)
Since old hens can be bought at Birr 2 each and young ones at Birr 5 each and there is
only Birr 80 available for purchasing hens, the constraint is: 2x1 + 5x2 ≤ 80.
Also, since it is not possible to house more than 20 hens at a time, x 1 + x2 ≤ 20. Since the
profit is restricted to be more than Birr 6, this means that the profit function z is to be
maximized. Thus, there is no need to add one more constraint, i.e., 0.5x 2 – 0.10x1≥ 6. Again, it is
not possible to purchase negative quantity of hens, therefore, x 1, x2 ≥ 0. Thus, the formulated LP
model would be:
Maximize Z = 0.5x2 – 0.1x1
Subject to the constraint
2x1 + 5x2 ≤ 80
x1 + x2 ≤ 20
x1, x2 ≥ 0
Graphical solution
First convert inequalities into equalities and solve for x 1 and x2 coordinates as discussed
in example 2.1 here above. Then, plot the straight lines for 2x 1+5x2 = 80 and x1 + x2 = 20 on the
graph and shade the feasible region. Then, find the coordinate of the extreme points of the
feasible region. The coordinates of the extreme points of the feasible region are: 0 = (0, 0), A =
(0, 16), B = (20, 0) C = (20/3, 40/3). Thus, the value of Z can be evaluated as follows:
Since the maximum value of z is Birr 8, which occurs at the point A = (0, 16), the
solution to the given problem is x1 = 0, and x2 = 16, max z = Birr 8.
Decision: He should buy only 16 young hens in order to get the maximum profit of Birr 8 (which
is > 6).
Example 3 A firm makes two products X and Y, and has a total production capacity of 9 tones
per day, X and Y requiring the same production capacity. The firm has a permanent contact to
supply at least 2 tons of X and at least 3 tons of Y per day to another company. Each tone of X
requires 20 machine hours of production time and each tone of Y requires 50 machine hours of
production time. The daily maximum possible number of machine hours is 360. All the firm’s
output can be sold, and the profit made is Birr 80 per ton of X and Birr 120 per ton of Y. It is
required to determine the production schedule for maximum profit and to calculate this profit.
LP model formulation: Let x1 and x2 = number of units (in tons) of product X and Y to be
manufactured, respectively. Then, the LP model of the given problem can be written as:
8
B(2, 6.4) C(3, 6)
6
++++
4 ++++++ D(6,3) (3)
A(2, 3)
2 (1)
( 4)
0 2 4 6 8 10 12 14 16 18 x1
Figure 2 Graphical Solution of LP problem
So computed coordinates of the extreme points of the feasible region are: A= (2, 3), B=
(6, 3), C= (3, 6), and D= (2, 6.4). The value of the objective function at each of these extreme
points is as follows:
Coordinates Objective function value
Extreme point x1 x2 Z = 80x1+ 120x2
A 2 3 80(2)+120(3) = 520
B 2 6.4 80(2)+120(6.4) =928
C 3 6 80(3)+120(6) = 960
D 6 3 80(6)+120(3) = 840
Decision: The maximum value of the objective function Z = 960 occurs at the extreme point
C (3, 6). Hence the company should produce, x1 = 3 tons of product X and x2 = 6 tons of product
Y in order to yield a maximum profit of Birr 960.
Minimization Case and graphical method solution
Minimization case is used to minimize the cost the organization could incur otherwise.
Cost can be minimized by reducing wastages and increasing efficiency. The increase of
efficiency can lead the organization to productivity and profitability.
Minimization case is used when the constraint is “greater than or equal to” which may
symbolically be represented as (≥). When the minimization case is employed, the solution space
will be situated above the constraint lines. Thus, shading will take place above the constraints.
Example 4 Use the graphical method to solve the following LP Problem.
Minimize Z = 3x1 + 2x2
Subject to the constraints:
5x1 + x2 ≥ 10
x1 + x2 ≥ 6
x1 + 4x2≥12
x1, x2≥ 0
Solution: Plot on a graph each constraint by first treating them as a linear equation in the same
way as discussed earlier. Use the inequality condition of each constraint to mark the feasible
region as may be shown in Figure 2.3.
x2 1, 5x1 + x2 = 10
10 D (0, 10) 2, x1 + x2 = 6
3. x1+ 4x2 = 12
8
6 (1)
4 C (1, 5)
2 B (4, 2)
(2) (3) A (12, 0)
0 2 4 6 8 10 12 14 x1
Figure 3 Graphical solution of LP problem.
Accordingly, the coordinates of the extreme points of the feasible region (bounded from
below) are: A = 12, 0), B= (4, 2), C = (1, 5), and D = (0, 10). The value of the objective function
at each of these extreme points is as follows:
Coordinates Objective function value
Extreme point X1 X2 Z = 3x1 + 2x2
A 12 0 3(12)+2(0) = 36
B 4 2 3(4) + 2(2) = 16
C 1 5 3(1) + 2(5) = 13
D 0 10 3(0) + 2(10) = 20
Decision: The minimum value of the objective function Z = 13 occurs at the extreme point
C (1, 5). Hence, the optimal solution to the given LP problem is: x1= 1, x2 = 5 and min z = 13.
X2
10
A(0,9)
8 B (6/7, 60/7)
6 =====
4 =======
== == === x1+2x2 = 18
2 ==========5x1 + 3x2 = 30
C (6, 0)
0 2 4 6 8 10 12 14 16 18 20 X1
Figure 4 Graphical Solution of LP problem
Here we observe that the objective function is parallel to the line BC (or the first
constraint), which forms the boundary of the feasible region. This is because the slope of the
objective function and that of the first constraint (5x1 + 3x2 = 30) is -5/3. Therefore, this implies
that any point including extreme points B and C on the same line between B and C is an optimal
solution.
We may disregard all other solutions obtained on the line segment BC and consider only
those obtained at extreme points B and C to establish that the solution to an LP problem will
always lie at an extreme point of the feasible region.
Since on two different extreme points B and C the value of objective function is same, i. e., max
Z = 60, two alternative solutions: x1 = 6/7, x2 = 60/7 and x1 = 6, x2 = 0 exist.
Remark: If a constraint to which the objective function is parallel does not form the boundary of
the feasible region, the multiple solutions will not exist and such a constraint is called redundant
constraint, i.e., a redundant constraint is one whose addition or removal does not change the
feasible region.
b) Unbounded Solution
Sometimes an LP problem will not have a final solution. This means when one or more
decision variable values and the value of the objective function (maximization case) are
permitted to increase infinitely without violating the feasibility condition, then the solution is
said to be unbounded. It is important to note that there is difference between a feasible region
being unbounded. It is possible for a feasible region to be unbounded but LP problem not to be
bounded, that is, an unbounded feasible region may yield some definite value of the objective
function. The general cause of an unbounded LP problem is a mistake in mathematical model
formulation.
Example Use the graphical method to solve the following unbounded LP problem.
Solution: First treat all the inequalities of the constraints into a linear equation in the same way
as discussed earlier. Find x and y coordinates and plot the graph as usual. Then, use the
inequality condition of each constraint to mark the feasible region as may be shown in Figure 2.5
here below.
X2 1 2 1. x1 – x2 = -1
2 2. x1 + x2 = 0
1
Unbounded
Feasible
Region
0 1 2 X1
Figure 5 unbounded solution to an LP problem
It may be noted from Figure 2.5 that there exist an infinite number of points in the convex
region for which the value of the objective function increases as we move from extreme point
(origin), to the right. That is, both the variables x1 and x2 can be made arbitrarily large and the
value of objective function Z is also increased. Thus, the problem has an unbounded solution.
c) Infeasible Solution
Infeasibility is a condition that arises when no value of the variables satisfy all of the
constraints simultaneously. This means there is no unique (single) feasible region. Such a
problem arises due to wrong model formulation with conflicting constraints.
Example:
Maximize Z=20X1+30X2
Subject to:
2X1+X2< 40
4X1+X2< 60
X1 > 30 and X1, X2 >
Solution:
X2 X1=0
(0, 60) X1=30
4X1+X2= 60
(0, 40)
2X1+X2= 40
X =0
Note: -In the above graph, there is no common point in the shaded area.
2
All constraints
X1
cannot be satisfied simultaneously and there is (20,
(15, 0)
no feasible
0)
solution
(30, 0) to the problem.