MTH106
MTH106
PROGRAMMING)
1.0 Introduction
2.0 Objectives
3.0 Main Content
3.1 Requirements for Linear Programming Problems
3.2 Assumptions in Linear Programming
3.3 Application of Linear Programming
3.4 Areas of Application of Linear Programming
3.5 Formulation of Linear Programming Problems
3.6 Advantages Linear Programming Methods
3.7 Limitation of Linear programming Models
3.8 Graphical Methods of Linear Programming Solution
4.0 Conclusion
5.0 Summary
6.0 Tutor Marked Assignment
7.0 References
1.0 INTRODUCTION
It was in 1947 that George Dantzig and his associates found out a technique for
solving military planning problems while they were working on a project for
U.S. Air Force. This technique consisted of representing the various activities
of an organization as a linear programming (L.P.) model and arriving at the
optimal programme by minimizing a linear objective function. Afterwards,
Dantzig suggested this approach for solving business and industrial problems.
He also developed the most powerful mathematical tool known as ―simplex
method‖ to solve linear programming problems.
2.0 OBJECTIVES
132
3.0 MAIN CONTENT
All organizations, big or small, have at their disposal, men, machines, money
and materials, the supply of which may be limited. If the supply of these
resources were unlimited, the need for management tools like linear
programming would not arise at all. Supply of resources being limited, the
management must find the best allocation of its resources in order to maximize
the profit or minimize the loss or utilize the production capacity to the
maximum extent. However this involves a number of problems which can be
overcome by quantitative methods, particularly the linear programming.
133
5. As stated earlier, the resources must be in limited supply. For example, if a
firm starts producing greater number of a particular product, it must make
smaller number of other products as the total production capacity is limited.
134
non-negative values that satisfy the constraints. However, there are problems
wherein variables are restricted to have integral values only. Though such
problems, strictly speaking, are not linear programming problems, they are
frequently solved by linear programming techniques and the values are then
rounded off to nearest integers to satisfy the constraints. This approximation,
however, is valid only if the variables have large optimal values. Further, it
must be ascertained whether the solution represented by the rounded values is
a feasible solution and also whether the solution is the best integer solution.
135
3.3 APPLICATIONS OF LINEAR PROGRAMMING METHOD
Though, in the world we live, most of the events are non-linear, yet there are
many instances of linear events that occur in day-to-day life. Therefore, an
understanding of linear programming and its application in solving problems is
utmost essential for today‘s managers.
2. Powerful and efficient techniques for solving L.P. problems are available.
However, solution procedures are generally iterative and even medium size
problems require manipulation of large amount of data. But with the
development of digital computers, this disadvantage has been completely
overcome as these computers can handle even large L.P. problems in
comparatively very little time at a low cost.
1. INDUSTRIAL APPLICATIONS
(b) Blending problems: These problems are likely to arise when a product can
be made from a variety of available raw materials of various compositions and
prices. The manufacturing process involves blending (mixing) some of these
materials in varying quantities to make a product of the desired specifications.
For instance, different grades of gasoline are required for aviation purposes.
Prices and specifications such as octane ratings, tetra ethyl lead concentrations,
maximum vapour pressure etc. of input ingredients are given and the problem
is to decide the proportions of these ingredients to make the desired grades of
gasoline so that (i) maximum output is obtained and (ii) storage capacity
restrictions are satisfied. Many similar situations such as preparation of
different kinds of whisky, chemicals, fertilizers and alloys, etc. have been
handled by this technique of linear programming.
(d) Trim loss problems: They are applicable to paper, sheet metal and glass
manufacturing industries where items of standard sizes have to be cut to
smaller sizes as per customer requirements with the objective of minimizing
the waste produced.
2. MANAGEMENT APPLICATIONS
(a) Media selection problems: They involve the selection of advertising mix
among different advertising media such as T.V., radio, magazines and
newspapers that will maximize public exposure to company‘s product. The
constraints may be on the total advertising budget, maximum expenditure in
each media, maximum number of insertions in each media and the like.
(c) Profit planning problems: They involve planning profits on fiscal year
basis to maximize profit margin from investment in plant facilities, machinery,
inventory and cash on hand.
3. MISCELLANEOUS APPLICATIONS
(a) Diet problems: They form another important category to which linear
programming has been applied. Nutrient contents such as vitamins, proteins,
fats, carbohydrates, starch, etc. in each of a number of food stuffs is known.
Also the minimum daily requirement of each nutrient in the diet as well as the
cost of each type of food stuff is given and the problem is to determine the
minimum cost diet that satisfies the minimum daily requirement of nutrients.
(b) Agriculture problems: These problems are concerned with the allocation
of input resources such as acreage of land, water, labour, fertilisers and capital
to various crops so as to maximize net revenue.
(c) Flight scheduling problems: They are devoted to the determination of the
most economical patterns and timings of flights that result in the most efficient
use of aircrafts and crew.
139
(e) Facilities location: These problems are concerned with the determination
of best location of public parks, libraries and recreation areas, hospital
ambulance depots, telephone exchanges, nuclear power plants, etc.
Oil refineries have used linear programming with considerable success. Similar
trends are developing in chemical industries, iron and steel industries,
aluminium industry, food processing industry, wood products manufacture and
many others. Other areas where linear programming has been applied include
quality control inspection, determination of optimal bombing patterns,
searching of submarines, design of war weapons, vendor quotation analysis,
structural design, scheduling military tanker fleet, fabrication scheduling, steel
production scheduling, balancing of assembly lines and computations of
maximum flows in networks.
In fact linear programming may be used for any general situation where a
linear objective function has to be optimised subject to constraints expressed as
linear equations/inequalities.
First, the given problem must be presented in linear programming form. This
requires defining the variables of the problem, establishing inter-relationships
between them and formulating the objective function and constraints. A model,
which approximates as closely as possible to the given problem, is then to be
developed. If some constraints happen to be nonlinear, they are approximated
to appropriate linear functions to fit the linear programming format. In case it
is not possible, other techniques may be used to formulate and then solve the
model.
TABLE 9.1
M1 2 3 2 440
M2 4 - 3 470
M3 2 5 - 430
Step 1:
From the study of the situation find the key-decision to be made. It this
connection, looking for variables helps considerably. In the given situation key
decision is to decide the extent of products 1, 2 and 3, as the extents are
permitted to vary.
141
Step 2:
Assume symbols for variable quantities noticed in step 1. Let the extents.
(mounts) of products, 1, 2 and 3 manufactured daily be x1, x2 and x3 units
respectively.
Step 3:
Step 4:
Step 5:
Put into words the influencing factors or constraints. These occur generally
because of constraints on availability (resources) or requirements (demands).
Express these constraints also as linear equations/inequalities in terms of
variables.
142
EXAMPLE 9.2 (Diet Problem)
A person wants to decide the constituents of a diet which will fulfil his daily
requirements of proteins, fats and carbohydrates at the minimum cost. The
choice is to be made from four different types of foods. The yields per unit of
these foods are given in table 2.2.
TABLE 9.2
1 3 2 6 45
2 4 2 4 40
3 8 7 7 85
4 6 5 4 65
Let x1, x2, x3 and x4 denote the number of units of food of type 1, 2, 3 and 4
respectively.
143
Constraints are on the fulfilment of the daily requirements of the various
constituents.
Raw materials A, B and C having the properties shown in the table can be used
to make the alloy.
Table 9.3
A B C
Specific gravity 0.92 0.97 1.04
Chromium 7% 13% 16%
Melting point 440OC 490OC 480OC
Costs of the various raw materials per ton are: #90 for A, #280 for B and #40
for C. Formulate the L.P model to find the proportions in which A, B and C be
144
used to obtain an alloy of desired properties while the cost of raw materials is
minimum.
Let the percentage contents of raw materials A, B and C to be used for making
the alloy be x1, x2 and x3 respectively.
They are;
and x1 + x2 + x3 = 100,
145
TABLE 9.4
Let x1, x2, x3 and x4 denote the number of advertising units to be bought on
television, radio, magazine I and magazine II respectively.
Constraints are;
or 30x1+20x2+15x3+10x4 ≤ 450,
or 15x1+40x2+7x3+5x4 ≥ 100
on expenses on magazine
x4 ≥ 2,
Wages of grade I inspector are #5 per hour while those of grade II inspector
are #4 per hour. Any error made by an inspector costs #3 to the company. If
147
there are, in all, 10 grade I inspectors and 15 grade II inspectors in the
company find the optimal assignment of inspectors that minimizes the daily
inspection cost.
Let x1 and x2 denote the number of grade I and grade II inspectors that may be
assigned the job of quality control inspection.
The objective is to minimize the daily cost of inspection. Now the company
has to incur two types of costs: wages paid to the inspectors and the cost of
their inspection errors. The cost of grade I inspector/hour is
where x1,x2 ≥ 0.
148
EXAMPLE 9.6 (Product Mix Problem)
Let the number of units of products X, Y and Z produced be x1, x2, xZ, where
= x3 + x4 (say).
Constraints are
150
Formulate the problem as a linear programming problem.
TABLE 9.5
A B C
P 6 5 2 5,000
Q 4 7 3 6,000
manufactured.
Product B requires 1/2 and product C requires 1/3rd the time required for
product A.
Let t hours be the time to produce A. Then t/2 and t/3 are the times in hours to
produce B and C and since 1,600 units of A will need time 1,600t hours, we
get the constraint,
151
Market demand requires.
x1 ≥ 300,
x2 ≥ 250,
and x3 ≥ 200.
or x1/3 = x2/4,
4x1 - 3x2=0,
5x2- 4x3 = 0,
A paper mill produces rolls of paper used in making cash registers. Each roll of
paper is 100m in length and can be used in widths of 3, 4, 6 and 1 (km. The
company production process results in rolls that are 24 cm in width. Thus the
company must cut its 24cm roll to the desired widths. It has six basic cutting
alternatives as follows:
152
Cutting alternatives Width of rolls (cm) Waste (cm)
3 4 6 10
1 4 3 - - -
2 - 3 2 - -
3 1 1 1 1 1
4 - - 2 1 2
5 - 4 1 - 2
6 3 2 1 - 1
2 2,000
4 3,600
6 1,600
10 500
The paper mill wishes to minimize the waste resulting from trimming to size.
Formulate the L.P model.
Key decision is to determine how the paper rolls be cut to the required widths
so that trim losses (wastage) are minimum.
Constraints are on the market demand for each type of roll width:
Since the variables represent the number of times each alternative is to be used,
they cannot have negative values.
154
TABLE 9.6
1 7 5 6 4
2 4 7 5 8
3 2 9 7 3
Formulate the L.P model to determine the number of production runs for each
method so as to maximize the total number of complete units of the final
product.
Let x1, x2, x3 represent the number of production runs for method 1, 2 and 3
respectively.
The objective is to maximize the total number of units of the final product.
Now, the total number of units of part A produced by different methods is 6x1
+ 5x2 + 7x3 and for part B is 4x1 + 8x2 + 3x1. Since each unit of the final
product requires 5 units of part A and 4 units of part B, it is evident that the
maximum number of units of the final product cannot exceed the smaller value
of 6x1 +5x2 +7x3 and 4x1 +8x2 +3x3
5 4
5 4
155
Constraints are on the availability of raw materials. They are, for
raw material 1, 7x1 + 4x2 + 2x3 ≤ 120,
and raw material 2, 5x1 + 7x2 + 9x3 ≤ 240.
The above formulation violates the linear programming properties since the
objective function is non-linear. (Linear relationship between two or more
variables is the one in which the variables are directly and precisely
proportional). However, the above model can be easily reduced to the
generally acceptable linear programming format.
5 4
5 4
An oil company produces two grades of gasoline P and Q which it sells at #30
and #40 per litre. The company can buy four different crude oils with the
following constituents and Costs:
156
TABLE 2.7
A B C
Gasoline P must have at least 55 per cent of constituent A and not more than
40 per cent of C. Gasoline Q must not have more than 25 per cent of C.
Determine how the crudes should be used to maximize the profit.
Key decision to be made is how much of each crude oil be used in making
each of the two grades of gasoline. Let these quantities in litres be represented
by xIJ, where i = crude oil 1, 2, 3, 4 and j = gasoline of grades P and Q
respectively. Thus
… …………………………………………………………
……………………………………………………………
157
… …………………………………………………………
……………………………………………………………
i.e., maximize Z = # [30(xip + x2p + x3p, + x4p) + 40(xiq + x2q + x3q + x4q)
i.e., 0.75x1p + 0.20x2p + 0.70x3p + 0.40x4p ≥ 0.55 (x1p, + x2p + x3p + x4p),
and 0.10x1q + 0.50x2q + 0.20x3q + 0.50x4q≤ 0.25 (x1q + x2q + x3q + x4q),
A company manufacturing air coolers has, at present, firm orders for the next 6
months. The company can schedule its production over the next 6 months to
meet orders on either regular or overtime basis. The order size and production
costs over the next six months are as follows:
Month: 1 2 3 4 5 6
regular production: 40 42 41 45 39 40
158
overtime production: 52 50 53 50 45 43
With 100 air coolers in stock at present, the company wishes to have at least
150 air coolers in stock at the end of 6 months. The regular and overtime
production in each month is not to exceed 600 and 400 units respectively. The
inventory carrying cost for air coolers is #12 per unit per month. Formulate the
L.R model to minimize the total cost.
Let xij be the number of units produced in month j (j = 1, 2, ..., 6), on a regular
or overtime basis (i = 1, 2). Further let yj represent the number of units of
ending inventory in month j (j= 1, 2, ..., 6).
Objective is to minimize the total cost (of production and inventory carrying).
+12(y1 + y2 + y3 + y4 + y5 + y6)
Constraints are
159
and for the sixth month, y5 + x16 + x26 – 650 = y6
Y6 ≥ 150
Further, since regular and overtime production each month is not to exceed
600 and 400 units respectively,
A dairy firm has two milk plants with daily milk production of 6 million litres
and 9 million litres respectively. Each day the firm must fulfil the needs of its
three distribution centres which have milk requirement of 7, 5 and 3 million
litres respectively. Cost of shipping one million litres of milk from each plant
to each distribution centre is given, in hundreds of naira below. Formulate the
L.P model to minimize the transportation cost.
Distribution Centres
1 2 3 Supply
2 3 11 6
1 9 6 9
Plants 7 5 3
Demand
160
Formulation of L.P Model
Let x1, x2 be the quantity of milk (in million litres) transported from plant I to
distribution centre no. 1 and 2 respectively. The resulting table representing
transportation of milk is shown below.
Distribution Centres
1 2 3
x1 x2 6-x1-x2
(5-x2)
7 5 3
Constraints are
6 – x1 - x2 ≥ 0 or x1 + x2 ≤ 6,
7 - x1 ≥ 0 or x1 ≤ 7,
5 - x2 ≥ 0 or x2 ≤ 5,
Profits per piece of washers and dryers are #270 and #300 respectively.
Formulate the
L.P model.
162
x1 + x2 ≤ 1
1,600 7,000
where x1 ≥ 0, x2 ≥ 0.
1 400 1,500
2 600 2,000
3 300 900
The organization is considering three crops for planting which differ primarily
in their expected profit per acre and in their consumption of water.
Furthermore, the total acreage that can be devoted to each of the crops is
limited by the amount of appropriate harvesting equipment available.
A 400 5 # 400
B 300 4 # 300
163
C 300 3 # 100
However, any combination of the crops may be grown at any of the farms. The
organization wishes to know how much of each crop should be planted at the
respective farms in order to maximize expected profit. Formulate this as a
linear programming problem.
164
For availability of acreage for each crop,
x1A + x1B + x1C X 100 = x2A + x2B + x2C X 100 = x3A + x3B + x3C X 100
400 600 300
where x1A, x1B, xIC, x2A, x2B, x2C, x3A, x3B, x3C, each ≥ 0.
2. It improves the quality of decisions. The individual who makes use of linear
programming methods becomes more objective than subjective. The individual
having a clear picture of the relationships within the basic equations,
inequalities or constraints can have a better idea about the problem and its
solution.
165
3. It also helps in providing better tools for adjustments to meet changing
conditions. It can go a long way in improving the knowledge and skill of future
executives.
This model, though having a wide field, has the following limitations:
For instance, in finding how many lathes and milling machines to be produced,
only integer values of the decision variables, say x1 and x2 are meaningful.
Except when the variables have large values, rounding the solution values to
166
the nearest integers will not yield an optimal solution. Such situations justify
the use of special techniques like integer programming.
3. It is applicable to only static situations since it does not take into account the
effect of time. The O.R. team must define the objective function and
constraints which can change due to internal as well as external factors.
6. Linear programming deals with problems that have a single objective. Real
life problems may involve multiple and even conflicting objectives. One has to
apply goal programming under such situations.
167
only two variables presents a simple case, for which the solution can be
derived using a graphical or geometrical method. Though, in actual practice
such small problems are rarely encountered, the graphical method provides a
pictorial representation of the solution process and a great deal of insight into
the basic concepts used in solving large L.P. problems. This method consists of
the following steps:
3. Plot each of the constraint on the graph. The constraints, whether equations
or inequalities are plotted as equations. For each constraint, assign any
arbitrary value to one variable and get the value of the other variable.
Similarly, assign another arbitrary value to the other variable and find the
value of the first variable. Plot these two points and connect them by a straight
line. Thus each constraint is plotted as line in the first quadrant.
4. 1dentify the feasible region (or solution space) that satisfies all the
constraints simultaneously. For type constraint, the area on or above the
constraint line i.e., away from the origin and for type constraint, the area on or
below the constraint line i.e., towards origin will be considered. The area
common to all the constraints is called feasible region and is shown shaded.
Any point on or within the shaded region represents a feasible solution to the
given problem. Though a number of infeasible points are eliminated, the
feasible region still contains a large number of feasible points
168
5. Use iso-profit (cost) function line approach. For this plot the objective
function by assuming Z = 0. This will be a line passing through the origin. As
the value of Z is increased from zero, the line starts moving to the right,
parallel to itself. Draw lines parallel to this line till the line is farthest distant
from the origin (for a maximization problem). For a minimization problem, the
line is nearest to the origin. The point of the feasible region through which this
line passes will be optimal point; It is possible that this line may coincide with
one of the edges of the feasible region. In that case, every point on that edge
will give the same maximum/minimum value of the objective function and will
be the optimal point.
Alternatively use extreme point enumeration approach. For this, find the co-
ordinates each extreme point (or corner point or vertex) of the feasible region.
Find the value of the objective function at each extreme point. The point at
which objective function is maximum/minimum optimal point and its co-
ordinates give the optimal solution.
4.0 CONCLUSION
Linear programming involves with the optimization (maximization or
minimization) of a function of variables known as objective function, subject
to a set of linear equations and/or inequalities known as constraints. The
objective function may be profit, cost, production capacity or any other
measure of effectiveness, which is to be obtained in the best possible or
optimal manner. The constraints may be imposed by different resources such
as market demand, production process and equipment, storage capacity, raw
material availability and so on.
5.0 SUMMARY
All organizations, big or small, have at their disposal, men, machines, money
and materials, the supply of which may be limited. If the supply of these
169
resources were unlimited, the need for management tools like linear
programming would not arise at all. Supply of resources being limited, the
management must find the best allocation of its resources in order to maximize
the profit or minimize the loss or utilize the production capacity to the
maximum extent. However this involves a number of problems which can be
overcome by quantitative methods, particularly the linear programming.
Generally speaking, linear programming can be used for optimization
problems if the following conditions are satisfied- there must be a well-defined
objective function; there must be constraints on the amount or extent of
attainment of the objective and these constraints must be capable of being
expressed as linear equations or inequalities in terms of variables; there must
be alternative courses of action; decision variables should be interrelated and
nonnegative; and the resources must be in limited supply. Linear Programming
has the following assumptions- Proportionality, Additivity, Continuity,
Certainty, and Finite Choices. LP solution methods can be applied in solving
industrial problems, management related problems, and a host of other
problem areas.
170
given, in hundreds of naira below. Formulate the L.P model to minimize
the transportation cost.
Distribution Centres
1 2 3 Supply
3 4 12 9
2 10 7 11
Plants 9 6 4
Demand
7.0 REFERENCES
Dixon – Ogbechi, B.N. (2001). Decision Theory in Business, Lagos: Philglad
Nig. Ltd.
Denardo, E.V. (2002). The Schience of Decision making: A Problem-Based
Approach Using Excel. New York: John Wiley.
Gupta, P.K., & Hira, D.S. (2012). Operations Research, New – Delhi: S.
Chand & Company.
Lucey, T. (1988). Quantitative Techniques: An Instructional Manual, London:
DP Publications.
171