Linear Programming
Linear Programming
Dear learner! Have you ever experienced the problem of allocating scarce resource to various
activities to attain the predetermined goal? If so, in what way you approached the
allocation?..........................................................................................................................................
.................................................................................................................................................
Introduction
A large number of decision problems faced by a business manger involve allocation of resources
to various activities, with the objective of increasing profits or decreasing costs, or both. When
resources are in excess, no difficulty is experienced. Nevertheless, such cases are very rare.
Practically in all situations, the managements are confronted with the problem of scarce
resources. Normally, there are several activities to perform but limitations of either the resources
or their use prevent each activity from being performed to the level demanded. Thus, the manger
has to take a decision as to how best the resources be allocated among the various activates.
These decision problems can be formulated and solved as mathematical programming problems
and hence knowhow of linear programming is imperative.
Requirements to Apply Linear Programming: To apply LP, the following conditions must be
satisfied.
a. There should be an objective that should be clearly identified and measurable in quantitative
terms. Example, maximization of sales, profit, and minimization of costs etc.
b. The activities to be included should be distinctly identifiable and measurable in quantitative
terms.
c. The resources of the system which are to be allocated for the attainment of the goal should
also be identifiable and measurable quantitatively. They must be in limited supply. These
resources should be allocated in a manner that would trade off returns on investment of the
resources for the attainment of the objective.
d. The relationship representing the objective and the resource limitation considerations
represented by the objective function and the constraint equations or inequalities,
respectively, must be linear in nature.
e. There should be a series of feasible alternative courses of actions available to the decision-
maker that is determined by the resource constraints.
When these stated conditions are satisfied in a given solution, the problem can be expressed in
algebraic form called linear programming problem (LPP), and then solved for optimal decision.
Diagrammatically Linear Programming (LP) model can be presented as shown below.
Resource
Resource
Non-negativity
Optimization Constraints
Maximization Minimization
Dear learner! Let’s first illustrate the formulation of linear programming problems and then
consider the method of their solution.
The Maximization Case: A firm is engaged in producing two products, A and B. Each unit of
product A requires two kgs of raw material and four labor hours for processing whereas each unit
of product B requires three kg of raw material and three hours of labor of the same type. Every
week the firm has an availability of 60 kgs of raw material and 96 labor hours. One unit of
product A sold yields Birr 40 and one unit of product B sold yields Birr 35 as profit. Formulate
this problem as a linear programming problem to determine as to how many units of each of the
products should be produced per week so that the firm can maximum the profit. Assume that
there is no marketing constraint so that all that is produced can be sold.
The objective function: the first major requirement of linear programming problem (LPP) is
that we should be able to identify the goal in terms of the objective function. This function
relates mathematically the variables with which we are dealing in the problem. For our problem,
the goal is the maximization of profit, which would be obtained by producing (and selling) the
products A and B. If we let x1 and x2 represent the number of units produced per week of the
products A and B respectively, the total profit, Z, would be equal to 40 x1 +35x2 is then, the
objective function, relating the profit and the output level of each of the two items. Notice that
the function is a linear one. Further, since the problem calls for a decision about the optimal
values of x1 and x2, these are known as the decision variables.
The constraints: As has been laid, another requirement of linear programming is that the
resources must be in limited supply. The mathematical relationship which is used to explain this
limitation is inequality. The limitation itself is known as a constraint. Each unit of product A
requires 2 kg of raw material while each unit of product B needs 3 kg. The total consumption
would be 2x2 and 3x2, which cannot be the total the availability of 60 kg every week. We can
express this constraint as 2x1 and 3x2 < 60. Similarly, it is given that a unit of A requires 4 labor
hours for its production and one unit of B requires 3 hours. With an availability of 96 hours a
week, we have 4 x1 and 3x2 < 96 as the labor hour's constraint. It is important to note that for each
of the constraint, inequality rather than equation has been used. This is because the profit
maximizing output might not use all the resources to the full leaving some unused, hence the <
sign. However, it may be noticed that all the constraints are also linear in nature.
Non-negativity Condition: Quite obviously, x1 and x2, being the number of units produced,
cannot have negative values. Thus both of them can assume values only greater than or equal to
zero. This is the non-negativity condition, expressed symbolically as x1 > 0 and x2, > 0.
Now we can write the problem in complete form as follows.
Maximize Z = 40 X1 + 35 X2, Profit
Subject to
2X1 + 3X2 < 60 Raw material constraint
4X1 + 3X2 < 96 Labor hours constraint
X1, X2, > 0 Non-negativity restriction
The Minimization Case: The agricultural Research institute has suggested to a farmer to spread
out at least 4800 kg of a special phosphate fertilizer and no less than 7200 kg of a special
nitrogen fertilizer to raise productivity of crops in his fields. There are two resources for
obtaining these mixtures A and B. Both of these are available in bags weighing 100 kg each and
they cost Birr 40 and Birr 24 respectively. Mixture A contains phosphate and nitrogen equivalent
of 20 kg and 80 respectively, while mixture B contains these ingredients equivalent of 50 kg
each. Write this as a linear programming problem and determine how many bags of each type
the farmer should buy in order to obtain the required fertilizer at minimum cost.
The Objective Function: In the given problem, such a combination of mixtures A and B is
sought to be purchased as would minimize the total cost. If x 1 and x2 are taken to represent the
number of bags of mixtures A and B respectively, the objective function can be expressed as
follows:
Minimize Z = 40x1 + 24 x2 Cost
The constraints: In this problem, there are two constrains, namely, a minimum of 4800 kg of
phosphate and 7200 kg of nitrogen ingredients are required. It is known that each bag of mixture
A contains 20 kg and each bag of mixture B contains 50 kg of phosphate. The phosphate
requirement can be expressed as 20x1 + 50x2 > 4800. Similarly, with the given information on the
contents, the nitrogen requirement would be written as 80 x1 + 50x2 > 7200.
Non-negativity condition: As before, it lays that the decision variables, representing the number
of bags of mixtures A and B, would be non-negative. Thus x1 > 0 and x2 > 0. The linear
programming problem can now be expressed as follows:
Minimize Z = 40x1 + 24 x2 Cost
Subject to
20x1 + 50x2 > 4800 Phosphate requirement
80x1 + 50x2 > 7200 Nitrogen requirement
x1, x2 > 0 Non negativity restriction
In general, linear programming problem can be written as
Maximize Z = c1x1 + c2x2 ………+ cn xn Objective Function
Subject to
a11x11 + a22 x2 +………………………..+ ain x n < b1
a21x1 + a22 x2 + ………………………..+ ain x n < b2
am1 x1 + am2 x2 + ............................+ amn < xn bm
x1, x2, ……………………….., xn > 0
Where cj, aij, bi (i = 1, 2, ……..…., m; j = 1,2,……n) are known as constants and
x’s are decision variables
c’s are termed as the profit coefficients
aij’s the technological coefficients
b’s the resource values
Note:
Although, generally, the constraints in the maximization problems are of the < type, and the
constraints in the minimization problems are of > type , a given problem might contain a mix of
the constraints, involving the signs <, >, and /or =
\
Assumptions Underlying Linear Programming: A linear programming model is based on the
assumptions detailed hereunder.
2. Additively: Another assumption underlying the linear programming model is that in the
objective function and constraint inequalities both, the total of all the activities is given by
the sum total of each activity conducted separately. Thus, the total profit in the objective
function is determined by the sum of the profit contributed by each of the products
separately. Similarly, the total amount of a resource used is equal to the sum of the resource
values used by various activities.
4. Certainty: A further assumption underlying a linear programming model is that the various
parameters, namely, the objective function coefficients, the coefficients of the
inequality/equality constraints and the constraint (resource) values are known with certainty.
Thus, the profit per unit of the product, requirements of materials and labor per unit,
availability of materials, labor etc. are given and known in a problem involving these. The
linear programming is obviously deterministic in nature.
5. Finite Choices: A linear programming model also assumes that a limited number of choices
are available to a decision maker and the decision variables do not assume negative values.
Thus, only non-negative levels of activity are considered feasible. This assumption is indeed
a realistic one. For instance, in the production problems, the output cannot obviously be
negative, because a negative production implies that we should be above to reverse the
production process and convert the finished output back in to the raw materials!
Solution approaches to LPPS: Now we shall consider the solution to the linear programming
problems. They can be solved by using graphic method or by applying algebraic method, called
the Simplex Method. The graphic method is restricted in application – it can only be used when
two variables are involved. Nevertheless, it provides an intuitive grasp of the concepts that are
used in the simplex technique. The Simplex method, is the mathematical technique of solving
linear programming problems with two or more variables.
Graphial Solution to Linear Programming Problems: To use the graphic method, the
following steps are needed:
i. Identify the problem – determine the decision variables, the objective function, and
the constraints.
ii. Draw a graph including all the constraints and identify the feasible region.
iii. Obtain a point on the feasible region that optimizes the objective function – optimal
solution.
iv. Interpret the results.
How many sets of each model will be produced each day so that the total profit will be as large
as possible?
Machine Hours 1 3 45
Marketing Hours 1 0 12
Solution:
X1 +X2 = 45
15
5. Identify the corner points in the feasible region. Referring to the above graph, the corner
points are in this case are:
A (0, 0), B (0, 15), C (12, 11) and D (12, 0)
A (0, 0) $0
D (12, 0) $3600
7. Interpret the result. Accordingly, the highlighted result in the table above implies that 12
units of Model A and 11 units of Model B TV sets should be produced so that the total profit
will be $6350.