Topic 5 Linear Programming f2
Topic 5 Linear Programming f2
Introduction
This lesson introduces you to Linear Programming (LP) technique used to allocate resources in
organizations in a way that leads to optimal utilization. In this lesson, you will learn how to
formulate what is referred to as an objective function and a set of constraints. You will learn
about the rules of and assumptions under this technique. Furthermore, you will be taken through
the various methods of solving the LP problems including the graphical methods for two variable
problems and the more complex simplex algorithm which is used whenever the variables are
more than two. Finally, the lesson will introduce you to post optimality analysis that will enable
you to understand how various scenarios can affect your LP solution.
Linear programming is a technique of decision making used by managers to allocate limited
resources e.g. machinery, raw materials and labor in order to minimize costs or maximize
production. Decision variable are the amounts of each product to be made in a given time period.
Linear programming assumes that the variable has a linear relationship.
Definition and Concept of Linear Programming
Linear Programming is a widely used mathematical modeling technique to determine the
optimum allocation of scarce resources among competing demands. Resources typically include
raw materials, manpower, machinery, time, money and space.
The technique is very powerful and found especially useful because of its application to many
different types of real business problems in areas like finance, production, sales and distribution,
personnel, marketing and many more areas of management.
As its name implies, the linear programming model consists of linear objectives and linear
constraints, which means that the variables in a model have a proportionate relationship. For
example, an increase in manpower resource will result in an increase in work output.
Linear programming (LP) has mainly two objectives:
1. To maximize either contribution of profit
2. To minimize costs.
Note:
LP problems are expressed by first stating the objective function, i. the focus in which the
manager would wish to achieve. This is then followed by the constraints.
1
In Mathematics, linear programming is a method of optimising operations with some constraints.
The main objective of linear programming is to maximize or minimize the numerical value. It
consists of linear functions which are subjected to the constraints in the form of linear equations
or in the form of inequalities.
NOTE: If only two variables are involved, a graphical solution can be used otherwise for
multivariable problems, an algebraic method is applied to find the solution.
Example 1:
Long Castling Breweries manufactures two brands of beer, Benko lager and Benoni lager. Benko
has a contribution of Sh.4 per unit and Benoni has a contribution of Sh.3 per unit. Benko requires
2
30 machine minutes and 20 labor minutes to manufacture a unit. Benoni requires 30 machine
minutes and 30 labor minutes to manufacture a unit. Total available machine hours per day are
12hrs whereas total available labour hours per day are 14hrs.
Required:
1. Formulate linear programming model.
2. How much of each brand should Long Castling produce if it wishes to maximize its daily
contribution assuming that all the lager produced is sold.
3
Solution:
1. Formulating a linear programming model
Step 1: Identifying variables:
The variables here are the number of units of Benko and Benoni lager produced by
Long castling breweries per day; we can represent them as:
X1= a unit of Benko lager.
X2= a unit of Benoni lager.
PRODUCT Maximum
available
(PER DAY) X1 X2 hours/day
Machine hours 0.5 0.33 12
Labor hours 0.5 0.5 14
Contribution 4 3
4
Subject to the constraints;
0.5X1 + 0.33X2 ≤ 12
0.5X1 + 0.5X2 ≤ 14
X1, X2 ≥ 0
Graphical solution
This method is used to solve LP models in case where only two variables are
involved. For more than two variables (multivariable) then the simplex technique
(algebraic method may be used).
Now in solving the problem above we first draw the axis, taking X1 to be the y axis
and X2 to be the X axis.
X1
0
X2
Next we plot the scales on each axis to approximate the scales to use them, we
consider each constraint equation. We get the value of one of variables putting the
other variable to be zero and by substituting the inequality ≤or ≥ with equality sign
(=).
5
Therefore point to plot is (36, 0) … Implying that when X2 = 36 then X1
=0
When X2 = 0
0.5X1 + 0.33(0) = 12
0.5X1 = 12
X1 = 12/0.5 = 24
Therefore the point is (0, 24)
When X2 = 0
0.5X1 + 0.5(0) = 14
0.5X1 = 14
X1 = 14/0.5 = 28
Therefore the point is (0, 28)
Comparing these values we see that X2 ranges between 0 – 28, therefore we can
have the graph plotted as:
6
The two points that represent this line are (36, 0) and (0, 24). This is plotted as a
straight line from 36 on X2 axis to 24 on X1 axis.
7
We must now consider how to choose the production which will maximize
contribution. This we do by plotting a line representing the objective function (4x1
+ 3x2).
First choose a convenient point inside the feasible region
All of the other product mixes that give a contribution of Sh.100 lies on the line:
Plotting these two contribution lines to our graph we get two parallel lines.
8
Until we reach the last feasible solution(s) before the line moves entirely out of the
feasible region.
9
Point X is the last feasible solution. Coordinates of this point give a combination of
the two lager’s production volumes that fetches the highest contribution.
Coordinates of point X can be read from the graph, but for precision they are
calculated by solving simultaneously the equations of the two lines that intersect at
point X.
The two constraints are called binding or limiting constraints. They are the
resources being fully used thus preventing daily contribution from increasing
further.
Therefore to get point x we solve:
Therefore 11.76 units of Benko lager and 16.24 units of Benoni lager need to be
produced for maximum contribution.
10
Contribution = 4(16.24) + 3(11.76) = 100.24
Exercise:
(a) Highlight three management applications of linear programming.
11