Otdm Lec 4
Otdm Lec 4
Otdm Lec 4
PROBLEMS
Structure
2.1 Introduction
Objectives
2.2 Linear Programming Problem (LPP)
2.3 Mathematical Formulation of LPP
2.4 Graphical Solution of Linear Programming Problems
2.5 Canonical and Standard Forms of LPP
General Linear Programming Problem
Slack and Surplus Variables
Canonical Form
Standard Form
2.6 Summary
2.7 Solutions/Answers
2.1 INTRODUCTION
In Unit 1, you have learnt about the origin, scope, uses and limitations of
Operations Research. We have also discussed the concept of optimisation
and explained the basic feasible solution of linear programming problem.
In this unit, we discuss linear programming problems and explain how they
are formulated mathematically in Secs. 2.2 and 2.3, respectively. We also
define the objective function and explain how its optimum value is obtained
graphically in Sec. 2.4. The objective function may be profit, cost, revenue,
production capacity, etc. Linear programming can be applied to a variety of
problems such as production, transportation, advertising and problems in
public and private organisations, e.g., business, industry, hospitals, libraries
as also in education. In order to solve linear programming problems, we
need to convert them into a canonical or standard form, as explained in
Sec. 2.5.
In the next unit, you will learn how to solve an LPP using trial and error
method and the Simplex method. We shall also discuss the artificial variable
technique and the Big-M method.
Objectives
After studying this unit, you should be able to:
Maximise Z = 3x + 4y
subject to the constraints
2x + 3y 16
4x + 2y 22
and non-negative restrictions
x 0, y 0
1. First of all, the graphs are plotted for the equalities corresponding to the
given inequalities for constraints as well as restrictions. That is, we first
draw the straight lines. For example, suppose one of the given
inequalities is 2x + 3y 6. Then, we first plot the graph for the equation
2x + 3y = 6, which is a straight line. For this, we take any two points on
it as follows and join them:
x 0 3
y 2 0
(0,2)
1
X
(0,0) 1 2 (3,0)
Fig. 2.1
2. Then we determine the region corresponding to each inequality. Let us
consider the inequality 2x + 3y 6 again. We can find the region on the
graph satisfied by this inequality by substituting x = 0 and y = 0 in it. We get
2(0) + 3(0) 6 0 6
which is correct. So it is the region containing the point (0, 0). Hence, the
half plane shown in Fig. 2.2 by arrows starting from the line towards the
point (0, 0) is the graph of the given inequality.
(0,2)
X
(0,0) (3,0)
Fig. 2.2
(0, 2)
X
(0,0) (3, 0)
Fig. 2.3
In this example, we have used the point (0, 0) to determine which half
plane corresponds to the given inequality. However, you can take any
other point. But using (0, 0) is far easier. If the right hand side of the
given inequality is zero, using the point (0, 0) in it is meaningless. For
example, suppose the given inequality is 2x−3y 0. The plot of
2x−3y =0 is given in Fig. 2.4. It is a straight line passing through the
origin. Using the point (0, 0) in the inequality 2x − 3y 0, we get
2(0) − 3(0) 0, i.e., 0 0. So we cannot decide which half plane is the
region of the given inequality. Therefore, in this case, we use any other
point, say (2, 0). On putting x=2, y=0 in the given inequality, we get
2(2) − 3(0) 0 40
which is true. Therefore, the half plane containing (2, 0) is the required
region as shown in Fig. 2.4.
2x
2x − 3y = 0 3y = 2x y =
3
x x 0 3
y 0 2
Y
(3, 2)
(0,2)
(0,0)
X
(3,0)
Fig. 2.4
26
3. After determining the regions for each inequality, we find their Linear Programming
common region, i.e., the region obtained on superimposing their Problems
regions of inequality. This is the region where all the given
inequalities and the non-negative restrictions are satisfied. This
common region is known as the feasible region or the solution set or
the polygonal convex set (Recall that you have learnt about the
convex set in Sec. 1.6 of Unit 1).
4. Next we determine each of the corner points (vertices) of the polygon
obtained in step 3. This is done either by plotting the graphs on graph
paper or by solving the two equations of the lines intersecting at that
point.
5. a) The objective function at each corner point is evaluated. If the feasible
region is bounded, then
i) the maximum of the values obtained for the objective function at
the corner points is the optimum value when the objective function
is of the maximisation form. The point corresponding to this
maximum value gives the required values of the decision variables.
ii) the minimum of the values obtained for the objective function at
the corner points is the optimum value when the objective function
is of the minimisation form. The point corresponding to this
minimum value gives the required values of the decision variables.
b) The feasible region may not be bounded. Then either there are
additional hidden conditions which can be used to bound the region or
there is no solution to the problem.
c) If the same optimum value exists at two of the vertices, then there are
multiple solutions to the problem. Suppose these two points are (x1, y1)
and (x2, y2). Then other solutions are given by the points as follows:
[First ordinate of first point × t + First ordinate of second point × (1t),
Second ordinate of first point × t + Second ordinate of second point × (1t)]
For the points (x1, y1) and (x2, y2), the other solutions exist at the
points: [(x1× t + x2 × (1 t), y1× t + y2×(1 t)]
where t is any real number lying between 0 and 1.
For example, let the objective function be Z = 3x y and let A (2, 1) and Z = 3x - y
B(3, 4) be the points which give the same optimum value of the objective æ5 ö 5
function, i.e., Z = 5. Then other solutions which give the same value of the = 3 çç ÷÷-
objective function are: è2ø 2
15 5
(2 × t + 3 ×(1 t), 1 × t + 4 ×(1 t)) = - =5
2 2
or (2t + 3 3t, t + 4 4t)
or (3 t, 4 3t), 0 t 1
Here t = 0 gives the point (3, 4), which is point B and t = 1 gives the point
(2, 1), which is point A. The real values of t between 0 and 1 give other points
which give the same optimum solution. One such point other than A and B is
1 1 1 5 5
3 , 4 3× , for t , i.e., ,
2 2 2 2 2
5 5
You can verify that Z = 5 at the point , . We illustrate this method in
2 2
Example 2.
27
Optimisation Techniques-I Example 2: A company produces two types of items P and Q that require
gold and silver. Each unit of type P requires 4g silver and 1g gold while that
of type Q requires 1g silver and 3g gold. The company can produce 8g
silver and 9g gold. If each unit of type P brings a profit of `44 and that of
type Q `55, determine the number of units of each type that the company
should produce to maximise the profit. What is the maximum profit?
Solution: Let x be the number of units of type P to be produced and y be the
number of units of type Q to be produced. It is given that:
Silver Gold Profit
Type P 4g 1g `44 per unit
Type Q 1g 3g `55 per unit
Available (at the most) 8g 9g
4x+y = 8
8
7
6
5
4
x+3y = 9
3
2
1
y=0 X
(0,0) 1 2 3 4 5 6 7 8 9
x=0
Fig. 2.5
28
Note that x = 0 is the y-axis and y = 0 is the x-axis. Linear Programming
Problems
For plotting the graph of the inequality 4x + y 8 we put (0, 0) in it. We get
0 8, which is true. Therefore, starting from the line 4x + y 8, we shall
shade towards origin. Similarly, for the graph x + 3y 9, we shall shade
towards origin. For the graph x 0, we shall shade towards right side of
x = 0 and for the graph y 0, the region above y = 0 will be shaded.
Thus, the regions for the inequalities are shown in Fig. 2.6 by arrows:
4x+y = 8
8 D
7
6
5
4
x+3y = 9 C
3 B
2
1
E
X
O 1 2A 3 4 5 6 7 8 9
Fig. 2.6
The most common shaded portion is the region inside and on the polygon
OABC shown in Fig. 2.6. You can see from Fig. 2.6 that the coordinates of
O, A and C are (0,0), (2,0) and (0,3), respectively.
4x + y = 8 (i)
The coordinates of the point B are obtained by solving the equations
4x + y = 8 and x + 3y = 9 as it is the point of intersection of the two lines x + 3y = 9 (ii)
represented by them. The solution of 4x + y = 8 and x + 3y = 9 is given as We multiply equation (i) by 3:
15 28 12x + 3y = 24 (iii)
x and y
11 11 We subtract equation (ii) from
equation (iii):
15 28
So the vertices of OABC are O (0, 0), A (2, 0), B , and C(0, 3).
11 11 11x = 15
We now obtain the values of Z = 44x+ 55y at each of the vertices of OABC 15
So we get x =
as follows: 11
15
At O (0, 0), Z = 44 (0) + 55 (0) = 0 Putting x = in equation (ii),
11
At A (2, 0), Z = 44 (2) + 55 (0) = 88 15 28
we get + 3y = 9 Þ y =
æ15 28 ö æ15 ö æ28 ö 11 11
At B çç , ÷ ÷, Z = 44 çç ÷ ÷ + 55 çç ÷ ÷
è 11 11 ø è 11 ø è 11 ø
= 60 + 140 = 200
At C (0, 3), Z = 44(0) + 55(3) = 165
29
Optimisation Techniques-I
15 28
Thus, the value of Z is maximum at B ,
11 11
and the optimum solution is
15 28
Max. Z = 200 when x and y .
11 11
Now, you should try to solve the following exercises.
E2) Maximise Z = 6X + 3Y
subject to the constraints
2X 5Y 120
4X 2Y 80
X 0, Y 0
E3) Maximise z 3x1 2x 2
subject to the constraints
x1 x 2 1
x1 x 2 3
x1 0, x 2 0
E4) Maximise Z x1 x 2
subject to the constraints
x1 x 2 1
3x1 x 2 3
x1 0, x 2 0
E5) A company manufactures two products X and Y, each of which
requires three types of processing. The length of time for processing
each unit and the profit per unit are given in the following table:
a 21x1 + a 22 x 2 +... + a 2n x n ³ or £ or = b 2
. . . .
…(2)
. . . .
a m1x1 + a m2 x 2 +... + a mn x n ³ or £ or = b m
The linear function Z in equation (1) is called the objective function. The
set of inequalities given in (2) is called constraints of a general LPP and the
set of inequalities given in (3) are known as non-negative restrictions of a
general LPP.
y = f(x)
a
X
y = f(x)
Fig. 2.7
Note: The graph of y = f(x) is the mirror image of the graph of y = f(x)
about the x-axis as shown Fig. 2.7 and x = a is the point where f(x) is
minimum and f(x) is maximum.
32
ii) All constraints should be of “ ” type, except for non-negative Linear Programming
restrictions. Inequality of “ ” type, if any, should be changed to an Problems
Now, the inequalities are to be converted to equations. Note that the first
and third inequalities are of the type “less than or equal to ()”.
Therefore, a slack variable is to be added to the left side of each of these
inequalities. The second inequality is of the type “more than or equal to ()”.
So a surplus variable is to be subtracted from the left side of this inequality.
Thus, the standard form of the given LPP is
Max. Z' = - 2x1 - x 2 - 4x 3 + 0s1 + 0s2 + 0s3 , where Z' = - Z
subject to the constraints:
2x1 4x 2 s1 4
x1 2x 2 x 3 s2 5
2x1 3x 3 s3 2
x1 0, x 2 0, x 3 0, s1 0, s2 0, s3 0
Now, you should try to solve the following exercises.
34
E7) Express the following LPP in canonical form: Linear Programming
Problems
Minimise Z x1 2x 2 x3
subject to the constraints:
2x1 3x 2 4x 3 4
3x1 5x 2 2x 3 7
x1 0, x 2 0, x 3 0
x1 0, x 2 0 x 3 0.
You may like to match your solution with the solution given in Sec. 2.7.
Let us now summarise the main points which have been covered in this unit.
2.6 SUMMARY
1. A problem wherein the objective is to allot the limited available
resources to the jobs in such a way as to optimise the overall
effectiveness, i.e., minimise the total cost or maximise the total profit, is
called mathematical programming. Mathematical programming
wherein constraints are expressed as linear equalities/inequalities is
called linear programming. Linear programming deals with the
optimisation of the total effectiveness expressed as a linear function of
decision variables, known as the objective function, subject to a set of
linear equalities/inequalities known as constraints.
4. If the feasible region is bounded, then the greatest value obtained for
the objective function at the corner points is the optimum value when
the objective function is of maximisation form; and the least value
obtained for the objective function at the corner points is the optimum
value when the objective function is of minimisation form.
5. The feasible region may not be bounded. Then either there are
additional hidden conditions which can be used to bound the region or
there is no solution to the problem.
6. If the same optimum value occurs at two vertices, then there are
multiple optimal solutions to the problem.
2.7 SOLUTIONS/ANSWERS
E1) Let x be the number of units of type P to be produced and y be the
number of units of type Q to be produced. It is given that:
36
E2) Max. Z = 5x + 7y Linear Programming
Problems
subject to the constrains:
12x + 12y 840 x + y 70
3x + 6y 300 x + 2y 100
8x + 4y 480 2x + y 120
x0, y0
Y
2x + y = 120
120
110
100
x + y =70 90
80
70F
x + 2y = 100 60
D
50 (0,50)
40
C(40,30)
30
E
20 B(50,20)
10
X
O(0,0) 10 20 30 40 50 60 70 80 90 100
A(60,0)
Fig. 2.8
At O(0, 0), Z = 5(0) + 7(0) = 0
At A(60, 0), Z = 5(60) + 7(0) = 300
At B(50, 20), Z = 5(50) + 7(20)
= 250 + 140 = 390
At C(40, 30), Z = 5(40) + 7(30)
= 200 + 210 = 410
At D(0, 50), Z = 5(0) + 7(50) = 350
The maximum value of Z is 410 at C(40, 30), i.e., at x = 40, y = 30.
E3) Minimise Z = 10x1 + 4x2
subject to the constraints
4x1 x 2 80
2x1 x 2 60
x1 0, x 2 0
37
Optimisation Techniques-I . X2
4x1+x2=80
80 C(0, 80)
70 80)
60
50
B(10,40)
40
Fig. 2.9
30
20
10
X1
O(0,0) 10 20 30 A(30,0)
Fig. 2.9
Other points at which Z gives the same maximum value are given as
(20×t + 10×(1 t), 0×t + 20×(1 t))
or (20t + 10 10t, 0 + 20 20t)
or (10 + 10t, 20 20t), 0 t 1.
38
Linear Programming
Problems
Y
40 D(0, 40)
2x+5y=120
30
C(0, 24)
B(10,20)
20
10
E(60,0)
X
O(0,0) 10 20 30 40 50 EE60
A(20,0)
4x+2y=80
Fig. 2.10
E5) Here, we have to maximise the objective function. But the values of
decision variables can be increased infinitely without violating the
feasibility condition and hence the value of the objective function
can be increased infinitely. Thus, the solution in this case is
unbounded (Fig.2.11).
X2
x1 + x2 = 3
3
B(0,3)
x1 x2 = 1
2
1 A(2, 1)
X1
0(0,0) 1 2 3
1
Fig. 2.11
E6) We find no common region for all the four graphs and hence the
given LPP has no solution (Fig. 2.12).
X2
3
x1+x2 = 1
2
X1
1 1
Fig. 2.12
x1 0, x 2 0 x 3 0.
x1 0, x 2 0 x 3 0, s1 0, s2 0.
40