Understanding Linear Programming Models
Understanding Linear Programming Models
But the company can stop production of x and y or can manufacture any amount of x and y. It
cannot manufacture negative quantities of x and y. Hence we have write,
Both x and y are ≥ 0 . NON -NEGATIVITY CONSTRAINT.
As the problem has got objective function, structural constraints, and non-negativity constraints
and there exist a linear relationship between the variables and the constraints in the form of inequalities,
the problem satisfies the properties of the Linear Programming Problem.
5. It is assumed that the decision variables are continuous. It means that the companies
manufacture products in fractional units. For example, company manufacture 2.5 vehicles,
3.2 barrels of oil etc. This is referred too as the assumption of divisibility.
6. It is assumed that only one decision is required for the planning period. This condition
shows that the linear programming model is a static model, which implies that the linear
programming problem is a single stage decision problem. (Note: Dynamic Programming
problem is a multistage decision problem).
7. All variables are restricted to nonnegative values (i.e., their numerical value will be ≥ 0).
Where all cj s, bi s and aij s are constants and xj s are decision variables.
To show the relationship between left hand side and right hand side the symbols ≤ , = , ≥ are
used. Any one of the signs may appear in real problems. Generally ≤ sign is used for maximization
Linear Programming Models (Resource Allocation Models) 25
problems and ≥ sign is used for minimization problems and in some problems, which are known as
mixed problems we may have all the three signs. The word optimize in the above model indicates either
maximise or minimize. The linear function, which is to be optimized, is the objective function. The
inequality conditions shown are constraints of the problem. Finally all xi s should be positive, hence the
non-negativity function.
The steps for formulating the linear programming are:
1. Identify the unknown decision variables to be determined and assign symbols to them.
2. Identify all the restrictions or constraints in the problem and express them as linear
equations or inequalities of decision variables.
3. Identify the objective or aim and represent it also as a linear function of decision variables.
Construct linear programming model for the following problems:
Commodity Amount in tons. Volume/ton in cubic meters Profit per ton in Rs.
A 6000 60 60
B 4000 50 80
C 2000 25 50
26 Operations Research
In order to preserve the trim of the ship the weight in each hold must be proportional to the
capacity in tons. How should the cargo be distributed so as to maximize profit? Formulate this as linear
programming problem.
Solution: Problem variables are commodities, A, B, and C. Let the shipping company ship ‘a’ units of
A and ‘b’ units of B and ‘c’ units of C. Then Objective function is:
Maximize Z = 60a + 80b + 50c s.t.
Constraints are:
Weight constraint: 6000a + 4000b +2000c ≤ 6,500 ( = 2000+3000+1500)
The tonnage of commodity is 6000 and each ton occupies 60 cubic meters, hence there are 100
cubic meters capacity is available.
Similarly, availability of commodities B and C, which are having 80 cubic meter capacities each.
Hence capacity inequality will be:
100a +80b + 80c ≤ 2,65,000 (= 100,000+135,000+30,000). Hence the l.p.p. Model is:
Maximise Z = 60a+80b+50c s.t. 100a = 6000/60 = 100
6000a + 4000b + 2000c ≤ 6,500 80b = 4000/50 = 80
100a+80b+80c ≤ 2,65,000 and 80c = 2000/25 = 80 etc.
a,b,c all ≥ 0
Minimize Z = 5x + 3y s.t.
2x + 4y ≥ 40
3x + 2y ≥ 50 and
Both x and y are ≥ 0.
Problem 2.5. A machine tool company conducts a job-training programme at a ratio of one for every
ten trainees. The training programme lasts for one month. From past experience it has been found that
out of 10 trainees hired, only seven complete the programme successfully. (The unsuccessful trainees
are released). Trained machinists are also needed for machining. The company's requirement for the
next three months is as follows:
January: 100 machinists, February: 150 machinists and March: 200 machinists.
In addition, the company requires 250 trained machinists by April. There are 130 trained machinists
available at the beginning of the year. Pay roll cost per month is:
Each trainee Rs. 400/- per month.
Each trained machinist (machining or teaching): Rs. 700/- p.m.
Each trained machinist who is idle: Rs.500/- p.m.
(Labour union forbids ousting trained machinists). Build a l.p.p. for produce the minimum cost
hiring and training schedule and meet the company’s requirement.
Solution: There are three options for trained machinists as per the data given. (i) A trained machinist
can work on machine, (ii) he can teach or (iii) he can remain idle. It is given that the number of trained
machinists available for machining is fixed. Hence the unknown decision variables are the number of
machinists goes for teaching and those who remain idle for each month. Let,
‘a’ be the trained machinists teaching in the month of January.
‘b’ be the trained machinists idle in the month of January.
‘c’ be the trained machinists for teaching in the month of February.
‘d’ be the trained machinists remain idle in February.
‘e’ be the trained machinists for teaching in March.
‘f ’ be the trained machinists remain idle in the month of March.
The constraints can be formulated by the rule that the number of machinists used for (machining
+ teaching + idle) = Number of trained machinists available at the beginning of the month.
For January 100 + 1a + 1b ≥ 130
For February, 150 + 1c + 1d = 130 + 7a (Here 7a indicates that the number of machinist trained
is 10 × a = 10a. But only 7 of them are successfully completed the training i.e. 7a).
For the month of March, 200 + 1e + 1f ≥ 130 + 7a +7c
The requirement of trained machinists in the month of April is 250, the constraints for this will be
130 + 7a + 7c + 7e ≥ 250 and the objective function is
Minimize Z = 400 (10a + 10c + 10e) + 700 (1a +1c + 1e) + 400 (1b + 1d +1f) and the non-
negativity constraint is a, b, c, d, e, f all ≥ 0. The required model is:
Minimize Z = 400 (10a + 10c + 10e) + 700 (1a +1c + 1e) + 400 (1b + 1d + 1f) s.t.
100 + 1a + 1b ≥ 130
150 + 1c + 1d ≥ 130 + 7a
28 Operations Research
200 + 1e + 1f ≥ 130 + 7a + 7c
130 + 7a + 7c + 7e ≥ 250 and
a, b, c, d, e, f all ≥ 0.
product X requires one hour of Machine A, 3 hours of machine B and 10 hours of machine C. Similarly
one unit of product Y requires 1 hour, 8 hour and 7 hours of machine A, B and C respectively. When
one unit of X is sold in the market, it yields a profit of Rs. 5/- per product and that of Y is Rs. 7/- per
unit. Solve the problem by using graphical method to find the optimal product mix.
Solution: The details given in the problem is given in the table below:
Let the company manufactures x units of X and y units of Y, and then the L.P. model is:
Maximise Z = 5x + 7y s.t.
1x + 1y ≤ 4
3x + 8y ≤ 24
10x + 7y ≤ 35 and
Both x and y are ≥ 0.
As we cannot draw graph for inequalities, let us consider them as equations.
Maximise Z = 5x + 7y s.t.
1x + 1y = 4
3x + 8y = 24
10x + 7y = 35 and both x and y are ≥ 0
Let us take machine A. and find the boundary conditions. If x = 0, machine A can manufacture
4/1 = 4 units of y.
The graph 2.3 shows that the machine C has a capacity to manufacture 5 units of Y alone or 3.5
units of X alone. Line TU is the boundary line and the triangle TOU is the capacity of machine C.
The graph is the combined graph for machine A and machine B. Lines PQ and RS intersect at M.
The area covered by both the lines indicates the products (X and Y) that can be manufactured by using
both machines. This area is the feasible area, which satisfies the conditions of inequalities of machine
A and machine B. As X and Y are processed on A and B the number of units that can be manufactured
will vary and the there will be some idle capacities on both machines. The idle capacities of machine A
and machine B are shown in the figure 2.4.
Linear Programming Models (Resource Allocation Models) 31
Figure 2.5 shows the feasible area for all the three machines combined. This is the fact because
a products X and Y are complete when they are processed on machine A, B, and C. The area covered
by all the three lines PQ. RS, and TU form a closed polygon ROUVW. This polygon is the feasible area
for the three machines. This means that all the points on the lines of polygon and any point within the
polygon satisfies the inequality conditions of all the three machines. To find the optimal solution, we
have two methods.
Method 1. Here we find the co-ordinates of corners of the closed polygon ROUVW and substitute
the values in the objective function. In maximisaton problem, we select the co-ordinates giving maximum
value. And in minimisaton problem, we select the co-ordinates, which gives minimum value.
In the problem the co-ordinates of the corners are:
R = (0, 3.5), O = (0,0), U = (3.5,0), V = (2.5, 1.5) and W = (1.6,2.4). Substituting these
values in objective function:
Z( 0,3.5) = 5 × 0 + 7 × 3.5 = Rs. 24.50, at point R
Z (0,0) = 5 × 0 + 7 × 0 = Rs. 00.00, at point O
Z(3.5,0) = 5 × 3.5 + 7 × 0 = Rs. 17.5 at point U
Z (2.5, 1.5) = 5 × 2.5 + 7 × 1.5 = Rs. 23.00 at point V
Z (1.6, 2.4) = 5 × 1.6 + 7 × 2.4 = Rs. 24.80 at point W
Hence the optimal solution for the problem is company has to manufacture 1.6 units of product
X and 2.4 units of product Y, so that it can earn a maximum profit of Rs. 24.80 in the planning period.
Method 2. Isoprofit Line Method: Isoprofit line, a line on the graph drawn as per the objective
function, assuming certain profit. On this line any point showing the values of x and y will yield same
profit. For example in the given problem, the objective function is Maximise Z = 5x + 7y. If we assume
a profit of Rs. 35/-, to get Rs. 35, the company has to manufacture either 7 units of X or 5 units of Y.
Linear Programming Models (Resource Allocation Models) 33
Hence, we draw line ZZ (preferably dotted line) for 5x + 7y = 35. Then draw parallel line to this line ZZ
at origin. The line at origin indicates zero rupees profit. No company will be willing to earn zero rupees
profit. Hence slowly move this line away from origin. Each movement shows a certain profit, which is
greater than Rs.0.00. While moving it touches corners of the polygon showing certain higher profit.
Finally, it touches the farthermost corner covering all the area of the closed polygon. This point where
the line passes (farthermost point) is the OPTIMAL SOLUTION of the problem. In the figure 2.6. the
line ZZ passing through point W covers the entire area of the polygon, hence it is the point that yields
highest profit. Now point W has co-ordinates (1.6, 2.4). Now Optimal profit Z = 5 × 1.6 + 7 × 2.4 =
Rs. 24.80.
Points to be Noted:
(i) In case lsoprofit line passes through more than one point, then it means that the
problem has more than one optimal solution, i.e., alternate solutions all giving
the same profit. This helps the manager to take a particular solution depending
on the demand position in the market. He has options.
(ii) If the lsoprofit line passes through single point, it means to say that the problem
has unique solution.
(iii) If the Isoprofit line coincides any one line of the polygon, then all the points on
the line are solutions, yielding the same profit. Hence the problem has
innumerable solutions.
(iv) If the line do not pass through any point (in case of open polygons), then the
problem do not have solution, and we say that the problem is UNBOUND.
Now let us consider some problems, which are of mathematical interest. Such problems may not
exist in real world situation, but they are of mathematical interest and the student can understand the
mechanism of graphical solution.
Problem 2.7. Solve graphically the given linear programming problem. (Minimization Problem).
Minimize Z = 3a + 5b S.T
–3a + 4b ≤ 12
2a – 1b ≥ – 2
2a + 3b ≥ 12
1a + 0b ≥ 4
0a + 1b ≥ 2
And both a and b are ≥ 0.
Points to be Noted:
(i) In inequality –3a + 4b ≤ 12, product/the candidate/activity requires –3 units of
the resource. It does not give any meaning (or by manufacturing the product A
the manufacturer can save 3 units of resource No.1 or one has to consume –3
units of A. (All these do not give any meaning as far as the practical problems or
real world problems are concerned).
(ii) In the second inequality, on the right hand side we have –2. This means that –2
units of resource is available. It is absolutely wrong. Hence in solving a l.p.p.
problem, one must see that the right hand side we must have always a positive
integer. Hence the inequality is to be multiplied by –1 so that the inequality sign
also changes. In the present case it becomes: –2a + 1b ≤ 2.
Solution: Now the problem can be written as:
Minimize Z = 3a + 5b S.T.
When converted into equations they can be written as Min. Z = 3a + 5b S.T.
–3a + 4b ≤ 12 –3a + 4b = 12
–2a + 1b ≤ 2 –2a + 1b = 2
2a – 3b ≥ 12 2a – 3b = 12
1a + 0b ≤ 4 1a + 0b = 4
0a + 1b ≥ 2 and both a and b are ≥ = 0.0a + 1b ≥ 2 and both a and b are ≥ 0.
The lines for inequalities –3a + 4b ≤ 12 and –2a + 1b ≤ 2 starts from quadrant 2 and they are to
be extended into quadrant 1. Figure 2.7 shows the graph, with Isocost line.
Isocost line is a line, the points on the line gives the same cost in Rupees. We write
Isocost line at a far off place, away from the origin by assuming very high cost in objective
function. Then we move line parallel towards the origin (in search of least cost) until it passes
through a single corner of the closed polygon, which is nearer to the origin, (Unique Solution),
or passes through more than one point, which are nearer to the origin (more than one solution)
or coincides with a line nearer to the origin and the side of the polygon (innumerable solution).
The solution for the problem is the point P (3,2,) and the Minimum cost is Rs. 3 × 3 + 2 × 5 =
Rs. 19/-
Linear Programming Models (Resource Allocation Models) 35
Problem 2.8. The cost of materials A and B is Re.1/- per unit respectively. We have to manufacture an
alloy by mixing these to materials. The process of preparing the alloy is carried out on three facilities X,
Y and Z. Facilities X and Z are machines, whose capacities are limited. Y is a furnace, where heat
treatment takes place and the material must use a minimum given time (even if it uses more than the
required, there is no harm). Material A requires 5 hours of machine X and it does not require processing
on machine Z. Material B requires 10 hours of machine X and 1 hour of machine Z. Both A and B are
to be heat treated at last one hour in furnace Y. The available capacities of X, Y and Z are 50 hours, 1
hour and 4 hours respectively. Find how much of A and B are mixed so as to minimize the cost.
Problem 2.10. A company manufactures two products X and Y on two facilities A and B. The data
collected by the analyst is presented in the form of inequalities. Find the optimal product mix for
maximising the profit.
Maximise Z = 6x – 2y S.T. Writing in the equation form: Maximise Z = 6x – 2y S.T.
2x – 1y ≤ 2 2x – 1y = 2
1x + 0y ≤ 3 and both x and y are ≥ 0 1x + 0y =3 and both x and y are ≥ 0
Linear Programming Models (Resource Allocation Models) 37
Solution: The straight line for 2x – 1y = 2 starts in 4th quadrant and is to be extended into first
quadrant. The polygon is not a closed one and the feasible area is unbound. But when an Isoprofit line
is drawn it passes through a corner of the feasible area that is the corner M of the open polygon. The
(figure 2.10) coordinates of M are (3, 4) and the maximum Z = Rs. 10/-
Problem 2.11. A company manufactures two products X and Y. The profit contribution of X and Y are
Rs.3/- and Rs. 4/- respectively. The products X and Y require the services of four facilities. The
capacities of the four facilities A, B, C, and D are limited and the available capacities in hours are 200
Hrs, 150 Hrs, and 100 Hrs. and 80 hours respectively. Product X requires 5, 3, 5 and 8 hours of
facilities A, B, C and D respectively. Similarly the requirement of product Y is 4, 5, 5, and 4 hours
respectively on A, B, C and D. Find the optimal product mix to maximise the profit.
Solution: Enter the given data in the table below:
products
Machines X Y Availability in hours.
(Time in hours)
A 5 4 200
B 3 5 150
C 5 4 100
D 8 4 80
Profit in Rs. Per unit: 3 4
The inequalities and equations for the above data will be as follows. Let the company manufactures
x units of X and y units of Y. (Refer figure 2.11)
38 Operations Research
In the graph the line representing the equation 8x + 4y is out side the feasible area and hence it is
a redundant equation. It does not affect the solution. The Isoprofit line passes through corner T of the
polygon and is the point of maximum profit. Therefore ZT = Z(32,10) = 3 × 32 + 4 × 10 = Rs. 136/.
Problem 2.12. This problem is of mathematical interest.
Maximise Z = 3a + 4b S.T. Converting and writing in the form of equations,
1a – 1b ≤ –1. Maximise Z = 3a + 4b S.T
– 1a + 1b ≤ 0 1a – 1b = 0
And both a and b are ≥ 0 –1a + 1b = 0
And both a and b are ≥ 0
Referring to figure 2.11, the straight line for equation 1 starts in second quadrant and extended in
to first quadrant. The line for equation 2 passes through the origin. We see that there is no point, which
satisfies both the constraints simultaneously. Hence there is no feasible solution. Given l.p.p. has no
feasible solution.
Problem 2.14: Formulate the l.p.p. and solve the below given problem graphically.
Old hens can be bought for Rs.2.00 each but young ones costs Rs. 5.00 each. The old hens lay 3 eggs
per week and the young ones lay 5 eggs per week. Each egg costs Rs. 0.30. A hen costs Rs.1.00 per
week to feed. If the financial constraint is to spend Rs.80.00 per week for hens and the capacity
constraint is that total number of hens cannot exceed 20 hens and the objective is to earn a profit more
than Rs.6.00 per week, find the optimal combination of hens.
Solution: Let x be the number of old hens and y be the number of young hens to be bought. Now the
old hens lay 3 eggs and the young one lays 5 eggs per week. Hence total number of eggs one get is
3x + 5y.
Total revenues from the sale of eggs per week is Rs. 0.30 (3x + 5y) i.e., 0.90 x + 1.5 y
Now the total expenses per week for feeding hens is Re.1 (1x + 1y) i.e., 1x + 1y.
Hence the net income = Revenue – Cost = (0.90 x + 1.5 y) – (1 x + 1 y) = – 0.1 x + 0.5 y or 0.5y
– 0.1 x. Hence the desired l.p.p. is
Maximise Z = 0.5 y – 0.1 × S.T.
2 x + 5 y ≤ 80
1x + 1y ≤ 20 and both x and y are ≥ 0
The equations are:
Maximise Z = 0.5 y – 0.1 × S.T.
2 x + 5 y = 80
1x + 1y = 20 and both x and y are ≥ 0
In the figure 2.13, which shows the graph for the problem, the isoprofit line passes through the
point C. Hence Zc = Z (0,16) = Rs.8.00. Hence, one has to buy 16 young hens and his weekly profit
will be Rs.8.00
Point to Note: In case in a graphical solution, after getting the optimal solution,
one more constraint is added, we may come across following situations.
(i) The feasible area may reduce or increase and the optimal solution point may be
shifted depending the shape of the polygon leading to decrease or increase in
optimal value of the objective function.
(ii) Some times the new line for the new constraint may remain as redundant and
imposes no extra restrictions on the feasible area and hence the optimal value
will not change.
(iii) Depending on the position of line for the new constraint, there may not be any
point in the feasible area and hence there may not be a solution. OR the isoprofit
line may coincide with a line and the problem may have innumerable number of
solutions.
SUMMARY
1. The graphical method for solution is used when the problem deals with 2 variables.
2. The inequalities are assumed to be equations. As the problem deals with 2 variables, it is easy
to write straight lines as the relationship between the variables and constraints are linear. In
case the problem deals with three variables, then instead of lines we have to draw planes and
it will become very difficult to visualize the feasible area.
3. If at all there is a feasible solution (feasible area of polygon) exists then, the feasible area
region has an important property known as convexity Property in geometry. (Convexity
means: Convex polygon consists of a set points having the property that the segment joining
any two points in the set is entirely in the convex set. There is a mathematical theorem,
which states, “The points which are simulations solutions of a system of inequalities of the
≤ type form a polygonal convex set”.
The regions will not have any holes in them, i.e., they are solids and the boundary will not
have any breaks. This can be clearly stated that joining any two points in the region also
lies in the region.
4. The boundaries of the regions are lines or planes.
5. There will be corners or extreme points on the boundary and there will be edges joining the
various corners. The closed figure is known as polygon.
6. The objective function of a maximisation is represented by assuming suitable outcome
(revenue) and is known as Isoprofit line. In case of minimisation problem, assuming suitable
cost, a line, known as Isocost line, represents the objective function.
7. If isoprofit or isocost line coincides with one corner, then the problem has unique solution.
In case it coincides with more than one point, then the problem has alternate solutions. If
42 Operations Research
the isoprofit or isocost line coincides with a line, then the problem will have innumerable
number of solutions.
8. The different situation was found when the objective function could be made arbitrarily
large. Of course, no corner was optimal in that case.
QUESTIONS
1. An aviation fuel manufacturer sells two types of fuel A and B. Type A fuel is 25 % grade 1
gasoline, 25 % of grade 2 gasoline and 50 % of grade 3 gasoline. Type B fuel is 50 % of
grade 2 gasoline and 50 % of grade 3 gasoline. Available for production are 500 liters per
hour grade 1 and 200 liters per hour of grade 2 and grade 3 each. Costs are 60 paise per liter
for grade 1, 120 paise for grade 2 and100 paise for grade 3. Type A can be sold at Rs. 7.50
per liter and B can be sold at Rs. 9.00 per liter. How much of each fuel should be made and
sold to maximise the profit.
2. A company manufactures two products X1 and X2 on three machines A, B, and C. X1 require
1 hour on machine A and 1 hour on machine B and yields a revenue of Rs.3/-. Product X2
requires 2 hours on machine A and 1 hour on machine B and 1 hour on machine C and yields
revenue of Rs. 5/-. In the coming planning period the available time of three machines A, B,
and C are 2000 hours, 1500 hours and 600 hours respectively. Find the optimal product mix.
3. Maximize Z = 1 x + 1 y S.T.
1 x + 2 y ≤ 2000
1 x + 1 y ≤ 1500
0 x + 1 y ≤ 600 and both x and y are ≥ 0.
4. Maximise Z = 8000a + 7000b S.T.
3 a + 1 b ≤ 66
1 a + 1 b ≤ 45
1 a + 0 b ≤ 20
0 a + 1 b ≤ 40 and both a and b are ≥ 0.
5. Minimise Z = 1.5 x + 2.5 y S.T.
1x+3y ≥ 3
1 x + 6 y ≥ 2 and both x and y ≥ 0
6. Maximise Z = 3 a + 2 b S.T.
1a – 1 b ≤ 1
1 a + 1b ≥ 3 and both x and y are ≥ 0
7. Maximise Z = –3 x + 2 y S.T.
1x+0y ≤ 3
1 x – 1 y ≤ 0 and both x and y are ≥ 0
Linear Programming Models (Resource Allocation Models) 43
8. Maximize Z = – 1 a + 2b S.T.
–1a+1b ≤ 1
– 1 a + 2 b ≤ 4 and both a and b are ≥ 0.
9. Maximise Z = 3 x – 2 y S.T.
1x + 1 y ≤ 1
2 x + 2 y ≥ 4 and both x and y are ≥ 0
10. Maximize Z = 1x + 1 y S.T.
1 x – 1y ≥ 0
–3x + 1 y ≥ 3 and both x and y ≥ 0
CHAPTER – 3
3.1. INTRODUCTION
As discussed earlier, there are many methods to solve the Linear Programming Problem, such as
Graphical Method, Trial and Error method, Vector method and Simplex Method. Though we use
graphical method for solution when we have two problem variables, the other method can be used
when there are more than two decision variables in the problem. Among all the methods, SIMPLEX
METHOD is most powerful method. It deals with iterative process, which consists of first designing
a Basic Feasible Solution or a Programme and proceed towards the OPTIMAL SOLUTION and
testing each feasible solution for Optimality to know whether the solution on hand is optimal or not.
If not an optimal solution, redesign the programme, and test for optimality until the test confirms
OPTIMALITY. Hence we can say that the Simplex Method depends on two concepts known as
Feasibility and optimality.
The simplex method is based on the property that the optimal solution to a linear programming
problem, if it exists, can always be found in one of the basic feasible solution. The simplex method
is quite simple and mechanical in nature. The iterative steps of the simplex method are repeated until a
finite optimal solution, if exists, is found. If no optimal solution, the method indicates that no finite
solution exists.
3.2. COMPARISION BETWEEN GRAPHICAL AND SIMPLEX METHODS
1. The graphical method is used when we have two decision variables in the problem. Whereas
in Simplex method, the problem may have any number of decision variables.
2. In graphical method, the inequalities are assumed to be equations, so as to enable to draw
straight lines. But in Simplex method, the inequalities are converted into equations by:
(i) Adding a SLACK VARIABLE in maximisation problem and subtracting a SURPLUS
VARIABLE in case of minimisation problem.
3. In graphical solution the Isoprofit line moves away from the origin to towards the far off
point in maximisation problem and in minimisation problem, the Isocost line moves from far
off distance towards origin to reach the nearest point to origin.
4. In graphical method, the areas outside the feasible area (area covered by all the lines of
constraints in the problem) indicates idle capacity of resource where as in Simplex method,
the presence of slack variable indicates the idle capacity of the resources.
Linear Programming Models : Solution by Simplex Method 45
5. In graphical solution, if the isoprofit line coincides with more than one point of the feasible
polygon, then the problem has second alternate solution. In case of Simplex method the net-
evaluation row has zero for non-basis variable the problem has alternate solution. (If two
alternative optimum solutions can be obtained, the infinite number of optimum, solutions can
be obtained).
However, as discussed in the forth coming discussion, the beauty of the simplex method lies in
the fact that the relative exchange profitabilities of all the non -basis variables (vectors) can be determined
simultaneously and easily; the replacement process is such that the new basis does not violate the
feasibility of the solution.
Let the company manufactures a units of A and b units of B. Then the inequalities of the
constraints (machine capacities) are:
Maximise Z = 23 a + 32 b S.T. OBJECTIVE FUNCTION
10 a + 6 b ≤ 2500
5 a + 10 b ≤ 2000 STRUCTURAL CONSTRAINTS.
1 a + 2 b ≤ 500
And both a and b are ≥ 0. NON-NEGATIVITY CONSTRAINT.
are still remaining idle. So if we want to convert it into an equation then 100 + 60 + 2,340 = 2,500. As
we do not know the exact values of decision variables a and b how much to add to convert the
inequality into an equation. For this we represent the idle capacity by means of a SLACK VARIABLE
represented by S. Slack variable for first inequality is S1, that of second one is S2 and that of ‘n’th
inequality is Sn.
Regarding the objective function, if we sell one unit of A it will fetch the company Rs. 23/– per
unit and that of B is Rs. 32/– per unit. If company does not manufacture A or B, all resources remain
idle. Hence the profit will be Zero rupees. This clearly shows that the profit contribution of each hour
of idle resource is zero. In Linear Programming language, we can say that the company has capacity of
manufacturing 2,500 units of S1, i.e., S1 is an imaginary product, which require one hour of machine
X alone. Similarly, S2 is an imaginary product requires one hour of machine Y alone and S3 is an
imaginary product, which requires one hour of machine Z alone. In simplex language S1, S2 and S3 are
idle resources. The profit earned by keeping all the machines idle is Rs.0/–. Hence the profit contributions
of S1, S2 and S3 are Rs.0/– per unit. By using this concept, the inequalities are converted into equations
as shown below:
Maximise Z = 23 a + 32 b + 0S1 + 0S2 + 0S3 S.T.
10 a + 6 b + 1S1 = 2500
5 a + 10 b + 1S2 = 2000
1 a + 2 b + 1S3 = 500 and a, b, S1, S2 and S3 all ≥ 0.
In Simplex version, all variables must be available in all equations. Hence the Simplex format of
the model is:
Maximise Z = 23 a + 32 b + 0S1 + 0S2 + 0S3 S.T.
10 a + 6 b + 1S1 + 0S2 + 0S3 = 2500
5 a + 6 b + 0S1 + 1S2 + 0S3 = 2000
1 a + 2 b + 0S1 + 0S2 + 1S3 = 500 and a, b, S1, S2 and S3 all ≥ 0.
The above data is entered in a table known as simplex table (or tableau). There are many
versions of table but in this book only one type is used.
In Graphical method, while finding the profit by Isoprofit line, we use to draw Isoprofit line at
origin and use to move that line to reach the far off point from the origin. This is because starting from
zero rupees profit; we want to move towards the maximum profit. Here also, first we start with zero
rupees profit, i.e., considering the slack variables as the basis variables (problem variables) in the initial
programme and then improve the programme step by step until we get the optimal profit. Let us start
the first programme or initial programme by rewriting the entries as shown in the above simplex table.
Linear Programming Models : Solution by Simplex Method 47
The number in Zj row under each column variable gives the total gross
amount of outgoing profit when we consider the exchange between one
unit of the column variable and the basic Variable.
The numbers in the net-evaluation row, under each column represent the opportunity cost of not
having one unit of the respective column variables in the solution. In other words, the number
represent the potential improvement in the objective function that will result by introducing into
the programme one unit of the respective column variable.
variable, the entry in net evaluation row under ‘a’ is zero and so on. Generally the
entry in net evaluation row is known as OPPORTUNITY COST. Opportunity cost
means for not including a particular profitable variable in the programme, the
manufacturer has to lose the amount equivalent to the profit contribution of the
variable. In the present problem the net evaluation under the variable ‘a’ is Rs. 23 per unit
and that of ‘b’ is Rs, 32 per unit. Hence the if the company does not manufacture ‘a’ at this
stage it has to face a penalty of Rs. 23/– for every unit of ‘a’ for not manufacturing and the
same of product variable ‘b’ is Rs. 32/–. Hence the opportunity cost of product ‘b’ is higher
than that of ‘a’, hence ‘b’ will be the incoming variable. In general, select the variable,
which is having higher opportunity cost as the incoming variable (or select the variable,
which is having highest positive number in the net evaluation row.
In this problem, variable ‘b’ is having higher opportunity cost; hence it is the incoming
variable. This should be marked by an arrow ( ↑ ) at the bottom of the column and enclose the
elements of the column in a rectangle this column is known as KEY COLUMN. The elements
of the key column show the substitution ratios, i.e., how many units of slack variable goes
out when the variable enters the programme.
Divide the capacity column elements by key column numbers to get REPLACEMENT
RATIO COLUMN ELEMENTS, which show that how much of variable ‘b’ can be
manufactured in each department, without violating the given constraints. Select the
lowest replacement ratio and mark a tick (√) at the end of the row, which indicates OUT
GOING VARIABLE. Enclose the elements of this column in a rectangle, which indicates
KEY ROW, indicating out going variable. We have to select the lowest element because this
is the limiting ratio, so that, that much of quantity of product can be manufactured on all
machines or in all departments as the case may be. In the problem 200 units is the limiting
ratio, which falls against S2, i.e., S2 is the outgoing variable. This means that the entire
capacity of machine Y is utilized. By manufacturing 200 units of ‘b’, 6 × 200 = 1200 hours
of machine X is consumed and 2 × 200 = 400 hours of machine Z is consumed. Still 2500 –
1200 = 1300 hours of machine X and 500 – 400 = 100 units of machine Z remains idle. This
is what exactly we see in graphical solution when two lines of the machines are superimposed.
The element at the intersection of key column and key row is known as KEY NUMBER.
This is known as key number because with this number we have to get the next table.
For getting the revised programme, we have to transfer the rows of table 1 to table 2. To
do this the following procedure is used.
Step 1: To Write the incoming variable ‘b’ in place of out going variable S2. Enter the profit of ‘b’
in profit column. Do not alter S1 and S3. While doing so DO NOT ALTER THE POSITION
OF THE ROWS.
Step 2: DIVIDING THE ELEMENTS OF OLD COLUMN BY KEY COLUMN ELEMENTS obtains
capacity column elements.
Step 3: Transfer of key row: DIVIDE ALL ELEMENTS OF KEY ROW BY RESPECTIVE KEY
COLUMN NUMBER.
Step 4: Transfer of Non-Key rows: NEW ROW NUMBER = (old row number – corresponding key
row number) × fixed ratio.
Fixed ratio = Key column number of the row/key number.
50 Operations Research
Transfer of key row: 1300/7 = 185.7, 7/7 = 1, 0/7 = 0, 1/7 = 0.143, –3 /5 = – 0.086 0/7 = 0
Row No. 2 Row No.3
200 – 1300 × 1/14 = 107.14 As the fixed ratio will be zero for this row
0.5 – 7 × 1/14 = 0 the row elements will not change.
1 – 0 × 1/14 = 1
0 – 1 × 1/14 = – 0.07
0.1 – (– 0.6) × 1/14 = 0.143
0 – 0 × 1/14 = 0
Net evaluation row elements:
For ‘a’ = 23 – 1 × 23 + 0 × 32 + 0 × 0 = 0
For ‘b’ = 32 – 0 × 23 + 1 × 32 +0 × 0 = 0
For S1 = 0 – 0.143 × 23 + ( – 0.07 × 32) + 0 × 0 = –1
For S2 = 0 – (–0.086 × 23) + 0.143 × 32 + (– 0.02 × 0) = – 2.6
52 Operations Research
For S3 = 0 – 0 × 23 + 0 × 32 + 1 × 0 = 0
Profit Z = 185.7 × 23 + 107.14 × 32 = Rs. 7,700
Shadow price = 1 × 2500 + 2.6 × 2000 = Rs. 2500 + 5200 = Rs. 7700/–
As all the elements of net evaluation row are either negative elements or zeros, the solution is
optimal.
Also the profit earned is equal to the shadow price.
The answer is the company has to manufacture:
185.7 units of A and 107.14 units of B and the optimal return is Z = Rs. 7,700/–
Let the patient purchase ‘x’ units of X and ‘y’ units of Y then the inequalities are (Note: the
condition given in the problem is AT LEAST hence the inequalities are of ≥ type)
Inequalities:
For vitamin A: Minimize Z = 3 x + 2.5 y S.T
2 x + 4 y ≥ 40
3 x + 2 y ≥ 50
And both x and y are ≥ 0.
In the above inequalities, say 2 x + 4 y ≥ 40, if we give values to x and y such that the sum is
greater than or equal to 40, for example, x = 10 and y = 10 then 2 x + 4 y = 60 which is > 40. To make
it equal to 40 we have to subtract 20, so that 20 + 40 – 20 = 40. When we know the values, we can do
this. But as we do not know the values of x and y we have to subtract a SURPLUS VARIABLE,
generally represented by ‘p’, ‘q’, ‘r’……. etc. If we do this then the inequality 2 x + 4 y ≥ 40 will be
2 x + 4 y – 1p = 40.
Now if we allocate value zero to x and y then 0 + 0 – 1p = 40 or p = – 40. Which is against to the
rules of l.p.p. as every [Link] the values of variables must be ≥ 0. Hence in minimization problem,
we introduce one more Surplus variable, known as ARTIFICIAL SURPLUS VARIABLE generally
represented by A1, A2, A3 … etc. Now by introducing artificial surplus variable, we can write 2x + 4y
= 40 as 2 x + 4 y –1p + 1A1 = 40.
If values of x, y, and p are equal to zero, then 1A1 = 40. The artificial surplus variable has the value
40, a positive integer. Hence we start our initial programme with the artificial variables, A1, A2, A3 etc.
and go on replacing them by x, y, z etc. that is decision variables.
Coming to the cost coefficients of surplus and artificial surplus variables, for example, p is very
similar to vitamin A and one unit of p consists of only one unit of vitamin A. It will come as give
away product when we purchase vitamin A. That is the cost coefficient of ‘p’ is zero (it is very much
54 Operations Research
similar to slack variable in maximization problem). But the artificial surplus variable has to be purchased
by paying a very high price for it. In character it is very much similar to surplus variable ‘p’ because
one unit of A1 consists of one unit of vitamin A. The cost coefficient of A1 is represented by a very high
value represented by M (which means one unit of A1 cost Millions or Rupees). As we are introducing
CAPITAL ‘M’, THIS METHOD IS KNOWN AS BIG ‘M’ METHOD.
By using the above concept, let us write the equations of the inequalities of the problem.
Minimise Z = 3 x + 2.5 y + 0p + 0q + M A1 + M A2 S.T. Objective Function.
2 x + 4 y – 1 p + 1A1 = 40
3 x + 2 y – 1 q + 1 A2 = 50 Structural Constraints.
And x, y, p, q, A1, A2 all ≥ 0 Non negativity Constraint.
Simplex format of the above is:
Minimise Z = 3x + 2.5y + 0p + 0q + MA1 + MA2 S.T.
2x + 4y – 1p + 0q + 1A1 + 0A2 = 40
3x + 2y + 0p – 1q + 0A1 + 1A2 = 50
And x, y, p, q, A1, A2 all = 0.
Let us enter the data in the Initial table of Simplex method.
Table: 1.
x = 0, y = 0, p = 0, q = 0 A1 = 40, Z = Rs. 40M + 50M = 90M
A1 M 40 2 4 –1 0 1 0 40/4 = 10
A2 M 50 3 2 0 –1 0 1 50/2 = 25
Zj 5M 6M –M –M M M
Net Cj – Zj 3– 5 M 2.5 – 6 M M M 0 0
evaluation
Note: As the variables A1 and A2 are basis variables, their Net evaluation is zero.
Now take 6M and 5M, 6 M is greater and if we subtract 2.5 from that it is negligible. Hence –6m
will be the lowest element. The physical interpretation is if patient purchases Y now, his cost will be
reduced by an amount 6M. In other words, if the patient does not purchase the Y at this point, his
penalty is 6M, i.e., the opportunity cost is 6M. As the non-basis variable Y has highest opportunity
cost (highest element with negative sign), Y is the incoming variable. Hence, the column under Y is
key column. To find the out going variable, divide requirement column element by key column
element and find the replacement ratio. Select the lowest ratio, i.e., here it is 10, falls in first row, hence
A1 is the out going variable.
To transfer key row, divide all the elements of key row by key number (= 4).
40/4 = 10, 2/4 = 0.5, –1/4 = – 0.25, 0/25 = 0, 1/25 = 0.25, 0/4 = 0.
Linear Programming Models : Solution by Simplex Method 55
Changing the key row: 30/2 = 15, 2/2 = 1, 0/2 = 0, 0.5/2 = 0.25, –1/2 = –0.5, –0.5/2 = –0.25,
1/2 = 0.5.
Changing the non key row:
10 – 30 × 0.5/2 = 2.5
0.5 – 2 × 0.25 = 0
1 – 0 × 0.25 = 1
–0.25 – 0.5 × 0.25 = –0.375
0 – (–1) × 0.25 = 0.25
0.25 – (–0.5) × 0.25 = 0.375
0 – 1 × 0.25 = – 0.25
Entering the above in the simplex table 3.
56 Operations Research
Table: 3.
Point to Note:
1. In the mechanics of simplex method of minimization problem, once an artificial
surplus variable leaves the basis, its exit is final because of its high cost coefficient
(M), which will never permit the variable to reenter the basis. In order to save
time or to reduce calculations, we can cross out the column containing the artificial
surplus variable, which reduces the number of columns.
2. A better and easier method is to allocate a value for M in big M method; this value
must be higher than the cost coefficients of the decision variables. Say for example
the cost coefficients of the decision variable in the above problem are for X it is
Rs.3/– and for Y it is Rs. 2.5. We can allocate a cost coefficient to M as Rs.10,
which is greater than Rs.3/– and Rs. 2.5. Depending the value of decision variables,
this value may be fixed at a higher level (Preferably the value must be multiples
of 10 so that the calculation part will be easier.
By applying the above note, let us see how easy to work the same problem:
Linear Programming Models : Solution by Simplex Method 57
Table: 1.
A1 10 40 2 4 –1 0 1 0 10
A2 10 50 3 2 0 –1 0 1 25
NER – 47 – 57.5 10 10 0 0
Table: 2.
Table: 3.
(d) Identify the tied variable or rows. For each of the columns in the identity
(starting with the extreme left hand column of the identity and proceeding
one at a time to the right), compute a ratio by dividing the entry in each tied
row by the key column number in that row.
Compare these ratios, column by column, proceeding to the right. The first
time the ratios are unequal, the tie is broken. Of the tied rows, the one in
which the smaller algebraic ratio falls is the key row.
(e) If the ratios in the identity do not break the tie, form similar ratios in the
columns of the main body and select the key row as described in (d) above.
The application of the above we shall see when we deal with degeneracy
problems.
7. While solving the linear programming problems, we may come across a situation
that the opportunity cost of more than one non- basic variables are zero, then we
can say that the problem has got ALTERNATE SOLUTIONS.
8. If in a simplex table only one unfavourable Cj – Zj identifying the only incoming
variable and if all the elements of that column are either negative elements or
zeros, showing that no change in the basis can be made and no current basic
variable can be reduced to zero. Actually, as the incoming arable is introduced,
we continue to increase, without bounds, those basic variables whose ratios of
substitutions are negative. This is the indication of UNBOUND SOLUTION.
9. In a problem where, the set of constraints is inconsistent i.e., mutually exclusive,
is the case of NO FEASIBLE SOLUTION. In simplex algorithm, this case will
occur if the solution is optimal (i.e., the test of optimality is satisfied) but some
artificial variable remains in the optimal solution with a non zero value.
Products
Machine (Time required in hours) Availability in hours
X Y
I 5 3 30
II 3 6 36
III 2 5 20
S1 0 30 5 3 1 0 0 30/3 = 10
S2 0 36 3 6 0 1 0 36/6 = 6
S3 0 20 2 5 0 0 1 20/5 = 4
Opportunity 10 20 0 0 0
cost.
Step 1: For the first table the net evaluation row elements are same as profit row element. For
successive rows, the key column element is given by Profit – (Sum of key column element
x respective object row element). For maximization problem, select the highest element
among the key column element and mark an arrow as shown to indicate incoming variable.
For minimization problems select the lowest element or highest element with negative sign
and write an arrow to indicate the incoming variable. Enclose key column elements in a
rectangle. Here they are shown in red colour. It is known as key row because it gives the
clue about incoming variable.
Step 2: Divide the capacity column numbers with respective key column number to get the replacement
ratio. Select the lowest ratio as the indicator of out going variable. The lowest ratio is also
known as limiting ratio. In the above table the limiting ratio elements are 10, 6, 4. We select
4 as the indicator of outgoing variable. It is because, if we select any other number the third
machine cannot compete more than 4 units of product. Though the machine has got capacity
to manufacture 10 units and second machine has got capacity of 6 units, only 4 units can be
manufactured completely. Rest of the capacity of machine 1 and 2 will become idle resource.
Enclose the elements of key row in a rectangle. It is known as key row because it gives the
clue about out going variable. Mark this row with a tick mark. (Here the elements are
marked in thick.
Step 3: The element at the intersection of key row and key column is known as Key number, in the
table it is marked in bold thick number. It is known as the key number, because, the next
table is written with the help of this key element.
Linear Programming Models : Solution by Simplex Method 61
Step 4: To improve the progeramme or to get the new table the following procedure is adopted:
(i) Transfer of key row of old tableau: Divide all the elements of key row of old tableau by
key number, which gives the key row elements of the new tableau.
(ii) To transfer non key rows: New row number = old row number – (corresponding key
row number × fixed ratio.)
Here, fixed ratio = (key column number of the row/key number).
While transferring remembers you should not alter the positions of the rows. Only incoming
variable replaces the outgoing slack variable or any other outgoing basis variable as the case may be.
The net evaluation row element of the variable entered into the programme will be zero. When all
the variables are transferred, the identity matrix will come in the position of main matrix.
To check whether, the problem is done in a correct manner, check that whether profit earned at
present stage is equal to shadow price at that stage. Multiplying the net evaluation row element under
non-basis can get shadow price variable (identity matrix) by original capacities of resources given in
the problem.
Above explained procedure of transferring key row and non-key rows is worked out below:
Transfer of Key row: 20 / 5 = 4, 2 / 5 = 0.4, 5 / 5 = 1, 0 /5 = 0, 0 / 5 = 0, and 1 / 5 = 0.2.
Transfer of non-key rows:
30 – 20 × 3/5 = 18 36 – 20 × 6 / 5 = 12
5 – 2 × 3/5 = 3.8 3 – 2 × 1.2 = 0.6
3 – 5 = 3/5 = 0 6 – 5 × 1,2 = 0
1 – 0 × 3/5 = 1 0 – 0 × 1.2 = 0
0 – 0 × 3/5 = 0 1 – 0 × 1.2 = 1
0 – 1 × 3/5 = – 0.6 0 – 1 × 1.2 = – 1.2
Step 5: Once the elements of net evaluation row are either negatives or zeros (for maximization
problem), the solution is said to be optimal. For minimization problem, the net evaluation
row elements are either positive elements or zeros.
As all the elements of net evaluation row are either zeros or negative elements, the solution is
optimal. The company will produce 4.8 units of X and 3.6 units of Y and earn a profit of Rs. 120/–.
Shadow price is 2.6 × 30 + 2 × 20 = Rs. 128/–. The difference of Rs. 8/– is due to decimal values,
which are rounded off to nearest whole number.
62 Operations Research
Problem. 3.4: A company manufactures three products namely X, Y and Z. Each of the product
require processing on three machines, Turning, Milling and Grinding. Product X requires 10 hours of
turning, 5 hours of milling and 1 hour of grinding. Product Y requires 5 hours of turning, 10 hours of
milling and 1 hour of grinding, and Product Z requires 2 hours of turning, 4 hours of milling and 2
hours of grinding. In the coming planning period, 2700 hours of turning, 2200 hours of milling and 500
hours of grinding are available. The profit contribution of X, Y and Z are Rs. 10, Rs.15 and Rs. 20 per
unit respectively. Find the optimal product mix to maximize the profit.
Solution: The given data can be written in a table.
Product
Machine Time required in hours per unit Available hours
X Y X
Turning. 10 5 2 2,700
Milling 5 10 4 2,200
Grinding. 1 1 2 500
Profit contribution in 10 15 20
Rs. per unit.
{Note: The check column is used to check the correctness of arithmetic calculations. The check
column elements are obtained by adding the elements of the corresponding row starting from capacity
column to the last column (avoid the elements of replacement ration column). As far as treatment of
check column is concerned it is treated on par with elements in other columns. In the first table add the
elements of the row as said above and write the elements of check column. In the second table
onwards, the elements are got by usual calculations. Once you get elements, add the elements of
respective row starting from capacity column to the last column of identity, then that sum must be
equal to the check column element.}
Table: II. x = 0, y = 0, z = 250 units, S1 = 2200, S2 = 1200, S3 = 0 and Z = Rs. 20 × 250
= Rs. 5,000.
Profit at this stage = Rs. 20 × 250 = Rs. 5,000 and Shadow price = 10 × 500 = Rs. 5000.
64 Operations Research
As all the elements of Net evaluation row are either zeros or negative elements, the solution is
optimal. The firm has to produce 150 units of Y and 174.4 units of Z. The optimal profit = 15 × 150 +
20 × 174.4 = Rs.5738 /–
To check the shadow price = 0.615 × 2200 + – 8.77 × 500 = 1353 + 4385 = Rs. 5738 /–.
Problem 3.5: A company deals with three products A, B and C. They are to be processed in
three departments X, Y and Z. Products A require 2 hours of department X, 3 hours of department Y
and product B requires 3 hours,2 hours and 4 hours of department X, Y and Z respectively. Product C
requires 2 hours in department Y and 5 hours in department Z respectively. The profit contribution of
A, B and C are Rs. 3/–, Rs.5/– and Rs. 4/– respectively. Find the optimal product mix for maximising
the profit. In the coming planning period, 8 hours of department X, 15 hours of department Y and 10
hours of department Z are available for production.
Inequalities: Equations.
Maximise Z = 3a +5b + 4c s.t. Maximise Z = 3a + 5b + 4c + 0S1 + 0S2 + 0S3 s.t.
2a + 3b + 0c ≤ 8 2a + 3b + 0c + 1S1 + 0S2 + 0S3 = 8
3a + 2b + 4c ≤ 15 3a + 2b + 4c + 0S1 + 1S2 + 0S3 = 15
0a + 2b + 5c ≤ 10 and 0a + 2b + 5c + 0S1 + 0S2 + 1S3 = 10 and
a, b, and c all ≥ 0 a, b, c, S1, S2, S3 all ≥ 0.
Linear Programming Models : Solution by Simplex Method 65
[Link]. 3 5 4 0 0 0
Table: II. a = 0, b = 2.6, c = 0, S1 = 0, S2 = 9.72, S3 = 4.72 and Z = Rs.5 × 2.6 = Rs. 13/–
[Link] 3 0 4 – 1.65 0 0
Note: as the key column element is equal to 0 for column under ‘c’ replacement ratio is not
calculated, as it is equals to zero.
Profit at this stage is Rs. 2 × 2.6 = Rs. 13/ –. Shadow price = 1.65 × 8 = Rs. 13 / –.
Table: III. a = 0, b = 2.6, c = 0.944, S2 = 5.94, S1 = 0, S3 = 0, Profit Z = Rs. 5 × 2.6 + 4 × 0.944
= Rs. 16.776 /–
As the elements of net evaluation row are either zeros or negative elements, the solution is optimal.
Now the optimal profit = Z = Rs. 5 × 2.6 + Rs. 4 × 0.944 = Rs. 16.776. The company manufactures
2.6 units of B and one unit of C.
The shadow price = 1.122 × 8 + 0.8 × 10 = Rs. 17.976. The small difference is due to decimal
calculations. Both of them are approximately equal hence the solution is correct.
66 Operations Research
Table: III. x = 60, y = 20, S1 = 80, S2 = 0, S3 = 60, S4 = 100, S5 = 0, S6 = 40, Profit: Rs. 40 × 60
+ 30 × 20 = Rs. 3000 /–
As all the elements of net evaluation row are either negative elements or zeros the solution is
optimal. The company will produce 60 units of X and 20 units of Y and the optimal Profit = Z Rs. 40
× 60 + Rs. 30 × 20 = Rs. 3000/–
Shadow price = 30 × 80 + 10 × 6 = 2400 + 600 = Rs. 3000 /–. Shadow price and profit are equal.
Problem 3.7: A company produces three products A, B and C by using two raw materials X and
Y. 4000 units of X and 6000 units of Z are available for production. The requirement of raw materials
by each product is given below:
Y 4 2 7
The labour time for each unit of product A is twice that of product B and three times that of
product C. The entire labour force of the company can produce the equivalent of 2500 units of product
A. A market survey indicates the minimum demand of the three products are 500, 500 and 375 respectively
for A, B and C. However, their ratio of number of units produced must be equal to 3: 2: 5. Assume that
the profit per units of product A, B and C are Rupees 60/–, 40/– and 100 respectively. Formulate the
L.P.P. for maximizing the profit.
Solution:
Let the company manufactures a units of A, b units of B and c units of C. The constraints for
raw materials are
2a + 3b + 5c ≤ 4000 …(1)
4a +2b + 7c ≤ 6000 ...(2)
Now let 't' be the labour time required for one unit of product A, then the time required for per
unit of product B is t/2 and that for product C is t/3. As 2500 units of A are produced, the total time
available is 2500 t. Hence the constraints for time are:
ta + t/2 b + t/3 c ≤ 2500t
68 Operations Research
Formulate a progrmme to determine the number of production runs for each department, which
will maximise the total number of components A and B for the product.
Solution: Formulation of L.P.P
Let a, b and c is the production runs for departments 1, 2 and 3 respectively. Therefore the total
production is 6a + 5b + 7c of components of A and 4a + 8b + 3c of components B.
The raw material restrictions are :
7a + 4b + 2c ≤ 100
5a + 8b + 7c ≤ 200
Now the final product requires 4 units of A and 3 units of B for assembly. Hence the total production
of final product will be the smaller of the quantities: 1/4 (6a + 5b + 7c) and 1/3 (4a + 8b + 3c).
Our objective is to maximize the production of final product. Hence the objective function would be:
Maximise Z = Minimum of {¼ (6a + 5b + 7c), 1/3 (4a + 8b + 3c)}
Let Minimum {1/4 (6a + 5b + 7c), 1/3 (4a + 8b + 3c)} = v i.e.
Linear Programming Models : Solution by Simplex Method 69
Table: II.
Alloy Operation Machine rate Sales potential Profit per ton in Rs.
A 30 hours/30 ton
C (1) 40 feet per minute 1500 tons per month. 80
1 B 25 feet per minute
C (2) 30 feet per minute
A 25 hours per 10 tons
2 B 25 feet per minute 800 tons per month. 400
C 30 feet per minute
3 B 15 feet per minute 1000 tons per 250
C 20 feet per minute
70 Operations Research
Coils for each alloy are 400 feet long and weigh 5 tons. Set up objective function and restrictions
to set up matrix.
Solution: Let the company produce ‘a’ units of alloy 1, b units of alloy 2 and c units of alloy 3.
Then the objective functions is Maximise Z = 80a + 400b + 250c subject to the limitations imposed by
the available machine capacity and sales potential.
Constraint of Machine Capacity per month:
Table: III.
C 1 22 100 1 × 22 × 8 × 4 ½ × 1 = 726.7
Now let us calculate the times required for a, b and c tons of alloys and use these machine times
for a formal statement of capacity constraints.
For process A : (a/0.333) + (b/0.4) ≤ 1778.3
For process B : (a/18.75) + (b/18.75) + (c/11.25) ≤ 1662.4
For process C : (a/30) + (a/22.5) + (b/22.5) + (c/15) ≤ 762.7 OR
(7a/90) + (b/22.5) + 1c ≤ 762.7
Limitations imposed by sales potential:
a ≤ 1500, b ≤ 800 and c ≤ 1000.
Hence the l.p.p is:
Maximise Z = 80a + 400 b + 250c s.t.
(a/0.333) + (b/0.4) ≤ 1778.3
(a / 18.75) + (b/18.75) + (c / 11.25) ≤ 1662.4
Linear Programming Models : Solution by Simplex Method 71
Water works purchases 0.5 Kg of Y and 15.4 Kg of X at a cost of Rs. 128.20. The shadow price
will be Rs. 107/–. The difference is due to decimal numbers. (Note: We can avoid the artificial variables
as and when they go out to reduce the calculations. We can use a numerical value for M, which is
higher than the cost of variables given in the problem so that we can save time.).
Problem 3.11: 10 grams of Alloy A contains 2 grams of copper, 1 gram of zinc and 1 gram of
lead. 10 grams of Alloy B contains 1 gram of copper, 1 gram of zinc and 1 gram of lead. It is required
to produce a mixture of these alloys, which contains at least 10 grams of copper, 8 grams of zinc, and
12 grams of lead. Alloy B costs 1.5 times as much per Kg as alloy A. Find the amounts of alloys A and
B, which must be mixed in order to satisfy these conditions in the cheapest way.
Solution: The given data is: (Assume the cost of Alloy A as Re.1/– then the cost of Alloy B will
be Rs. 1.50 per Kg.
Alloys
(In grams per 10 grams) Requirement in Grams
Metals
A B
Copper 2 1 10
Zinc 1 1 8
Lead 1 1 12
Cost in Rs. per Kg. 1 1.5
Let the company purchase x units of Alloy A and y units of Alloy B. (Assume a value of 10 for M)
Linear Programming Models : Solution by Simplex Method 73
A1 10 10 2 1 –1 0 0 1 0 0 5
A2 10 8 1 1 0 –1 0 0 1 0 8
A3 10 12 1 1 0 0 –1 0 0 1 12
Net Evaluation –39 –28.5 10 10 10 0 0 0
x 1 8 1 1 0 –1 0 0 1 0 – 8 (neglect)
p 0 6 0 1 1 –2 0 –1 2 0 – 3 (neglect)
A3 10 4 0 0 0 1 –1 0 –1 1 4
Net Evaluation 0 0.5 0 –9 10 10 19 0
74 Operations Research
x 1 12 1 1 0 0 –1 0 0 1
p 0 14 0 1 1 0 –2 –1 1 2
q 0 4 0 0 0 1 –1 0 –1 1
Net Evaluation 0 0.5 0 0 1 0 0 9
As all the net evaluation elements are either zeros or positive element, the solution is optimal. The
company can purchase 12 units of X at a cost of Rs. 12/–
Problem 3.12: Minimise Z = 4a + 2b s.t.
3a + 1b ≥ 27
–1a – 1b ≤ –21
1a + 2b ≥ 30 and both a and b are ≥ 0.
Inequalities: Equations:
Minimise Z = 4a + 2b ≥ 27 Minimise Z = 4a + 2b + 0p +0q + 0r + MA1 + MA2 + MA3 s.t.
3a + 1b ≥ 27 3a + 1b – 1p + 0q + 0r + 1A1 + 0A2 + 0A3 = 27
1a + 1b ≥ 21 1a + 1b + 0p – 1q + 0r + 0A1 + 1A2 + 0A3 = 21
1a + 2b ≥ 30 1a + 2b + 0p +– + 0q – 1r + 0A1 + 0A2 + 1A3 = 30
And a, b both ≥ 0 a, b, p, q, r, A1, A2 and A3 all ≥ 0
(Note: converting the objective function conveniently we can solve the minimization or
maximization problems. For example, if the objective function given is minimization type, we
can convert it into maximization type by multiplying the objective function by –1. For example,
in the problem 3.12, the objective function may be written as Maximise Z = –4a – 2b s.t. But the
inequalities are in the form of ≥ type. In such cases when artificial surplus variable (AI) is
introduced then the cost co–efficient of the artificial surplus variable will be –M instead of +M.
Rest of the procedure of solving the problem is same. Similarly, any maximization problem can
be converted into minimization problem by multiplying the objective function by –1. If the
inequalities are in ≥ form, subtracting the surplus variable and adding the artificial surplus
variable is done to inequalities to convert them into equations. In case the inequalities are of ≤
type, slack variable is added to convert them into equations. Let us see this in next example).
Solution: Let M be represented by a numerical value Rs.10/– that is higher than the cost coefficients
given in the problem. (i.e. 4 and 2).
Linear Programming Models : Solution by Simplex Method 75
Cost in Cj 4 2 0 0 0 10 10 10 Replace–
Program Rs. Require– a b p q r A1 A2 A3 ment ratio
ment
A1 10 27 3 1 –1 0 0 1 0 0 9
A2 10 21 1 1 0 –1 0 0 1 0 21
A3 10 30 1 2 0 0 –1 0 0 1 30
Net Evaluation – 46 – 38 10 10 10 0 0 0 —
Cost in Cj 4 2 0 0 0 10 10 10 Replace–
Program Rs. Require– a b p q r A1 A2 A3 ment ratio
ment
Cost in Cj 4 2 0 0 0 10 10 10 Replace–
Program Rs. Require– a b p q r A1 A2 A3 ment ratio
ment
Cost in Cj 4 2 0 0 0 10 10 10 Replace–
Program Rs. require– x y p q r A1 A2 A3 ment ratio
ment
As the elements of net evaluation row are either zeros or positive elements, the solution is optimal.
A = 3 and B = 12.57 and the optima cost Z = Rs. 48.10. The shadow price = 1.05 × 27 + 1 × 21
= Rs. 49.35.
The difference is due to decimal calculations.
Problem 3. 13: Solve the Minimization L.P.P. given below:
Min. Z = 1x – 3y + 2z S.t.
3x – 1y – + 3z ≤ 7
– 2x + 4y + 0z ≤ 12
– 4x + 3y + 8z ≤ 10 and x, y, and z all ≥ 0.
Solution: As the objective function is of minimization type and the constraints are of ≤ type, we
can rewrite the problem in simplex format as:
Maximize Z = –1x + 3y – 2z + 0S1 + 0S2 + 0S3 S.t.
3x – 1y + 3z + 1S1 + 0S2 + 0 S3 = 7
– 2x + 4y + 0z + 0S1 + 1S2 + 0S3 = 12
– 4x + 3y + 8z + 0S1 + 0S2 + 1S3 = 10 and x, y, z, S1, S2 and S3 all ≥ 0.
Net Evaluation. – 1 3 –2 0 0 0
Linear Programming Models : Solution by Simplex Method 77
A1 –M 27 3 1 –1 0 0 1 0 0 27/3 = 9
A2 –M 21 1 1 0 –1 0 0 1 0 21/1 = 21
A3 –M 30 1 2 0 0 –1 0 0 1 30/1 = 30
Net – 4 + 5M – 2 + 4M –M –M –M 0 0 0
evaluation
a –4 3 1 0 – 1/2 1/2 0
r 0 9 0 0 1/2 – 5/2 1
b –2 18 0 1 1/2 – 3/2 0
Net 0 0 –1 –1 0
evaluation
A = 3, B = 18 and Z = Rs. 48/–. That is for minimization version; the total minimum cost is Rs.
48/–
Problem 3.15: Solve the following L.P.P.
Maximize Z = 1a + 2b + 3c – 1d S.t.
1a + 2b + 3c = 15
2a + 1b + 5c = 20
1a + 2b + 1c + 1f = 10 and a, b, c, f all are ≥ 0.
In this problem given constraints are equations rather than inequalities. Also by careful examination,
we can see that in the third equation variable ‘f ’ exists and it also exists in objective function. Hence we
consider it as a surplus variable and we add two more slack variables ‘d’ and ‘e’ is added to first and
second equations. But the cost coefficient in objective function for variables d and e will be –M. When
we use big M in maximization problem, we have to use –M in objective function. While solving the
problem, all the rules related to solving maximization problem will apply. Hence now the simplex format
of the problem is as follows:
Maximize Z = 1a + 2b + 3c – 1d – Me – Mf s.t.
1a + 2b + 3c + 1d + 0e + 0f = 15
2a + 1b + 5c + 0d + 1e + 0f = 20
1a + 2b + 1c + 0d + 0e + 1f = 10 and a, b, c, d, e, f all = 0.
80 Operations Research
d –1 15 1 2 3 1 0 0 5
e –M 20 2 1 5 0 1 0 4
f –M 10 1 2 1 0 0 1 10
Net 2 + 3M 4 + 3M 4 + 8M 0 0 0
evaluation.
c 3 4 2/5 1/5 1 0 0 0 20
d –1 15/7 6/7 0 0 1 0 0
a 1 5/2 1 0 0 7/6 0 0
As all the elements of net evaluation row are either zeros or negative elements, the solution is
optimal.
Z = Rs. 15/–. And a = b = c = 5/2.
Problem 3.16: Solve the given l.p.p: Simplex format is:
Maximize 4x + 3y s.t. Maximize Z = 4x + 3y + 0S + 0p + 0q – MA1 – MA2 s.t.
1x + 1y ≤ 50 1x +1y+ 1S + 0p + 0q + 0A1 + 0A2 = 50
1x + 2y ≥ 80 1x + 2y +0S – 1p + 0q + 1A1 + 0A2 = 80
3x + 2y ≥ 140 3x + 2y + 0S + 0p – 1q + 0A1 + 1A2 = 140
And both x and y ≥ 0 and x, y, S, p, q, A1 and A2 all ≥ 0
S 0 50 1 1 1 0 0 0 0 50
A1 –M 80 1 2 0 –1 0 1 0 40
A2 –M 140 3 2 0 0 –1 0 1 70
Net 4 + 4M 3 + 4M 0 M M 0 0
evaluation.
Now in the net evaluation row the element under variable ‘x’ is 4 + 4M is greater than the element
3 + 3M. But if we take ‘x’ as the incoming variable we cannot send artificial variable out first. Hence we
take ‘y’ as the incoming variable, so that A1 go out first.
82 Operations Research
A2 –M 60 2 0 0 2 –1 –2 1 30
x 4 20 1 0 2 1 0 –1 0
y 3 30 0 1 –1 –1 0 1 0
A2 –M 20 0 0 –4 0 –1 0 1
In the last table though basis variables have the opportunity cost as 0, still artificial variable A2
exists in the problem, hence the original problem has no feasible solution.
X = 20, Y = 30.
Problem 3.17: Solve the given l.p.p. Simplex version of the problem is:
Maximize Z = 1a + 1.5b + 5c + 2d s.t. Maximize Z = 1a + 1.5b + 5c + 2d + 0S1 + 0S2 – MA1 –
MA2 s.t.
3a + 2b + 1c + 4d ≤ 6 3a + 2b +1c + 4d + 1S1 + 0S2 + 0A1 + 0A2 = 6
2a + 1b + 5c + 1d ≤ 4 2a +1b + 5c + 1d + 0S1 +1S2 + 0A1 + 0A2 = 4
2a + 6b – 4c + 8d = 0 2a + 6b – 4c + 8d + 0S1 + 0S2 +1A1 + 0A2 = 0
1a + 3b – 2c + 4d = 0 1a +3b – 2c + 4d + 0S1 + 0S2 + 0A1 + 1A2 = 0
And a, b, c, d all ≥ 0 and a, b, c, d, S1, S2, A1, A2 all ≥ 0
Linear Programming Models : Solution by Simplex Method 83
Note: Both A1 and A2 have the same replacement ratio. That is to say there is a tie in
outgoing variables. This type of situation in Linear Programming Problem is known as
DEGENERACY. To Solve degeneracy refer to the rules stated earlier.
Now let us remove as and when a surplus variable goes out, which will ease our calculation and
also save time.
Table: II. a = 0, b = 0, c = 0, d = 0, S1 = 6, S2 = 4, A1 = 0, A2 = 0, Z = Rs. 0/–
S1 0 6 2 –1 3 0 1 0 0
A1 –M 0 0 0 0 0 0 0 1
Net 1/2 0 6 0 0 0 0
evaluation
S1 0 6 2 –1 3 0 1 0 2
Net 1/2 0 6 0 0 0
evaluation.
As all the elements of net evaluation row are either zeros or negative elements the solution at this
stage is optimal. Hence c = 8/11, d = 4/11 and Z = Rs. 48/11 = Rs. 4.36.
necessary to work on phase II. If a feasible solution exists for the given problem, the value of objective
function at the end of phase I will be zero and artificial variable will be non-basic. In phase II original
objective coefficients are introduced in the final tableau of phase I and the objective function is optimized.
Problem 3.18: By using two phase method find whether the following problem has a feasible
solution or not?
Maximize Z = 4a + 5b s.t. Simplex version is: Max. Z = 4a + 5b + 0S1 + 0S2 – MA s.t.
2a + 4b ≤ 8 2a + 4b + 1S1 + 0S2 + 0A = 8
1a + 3b ≥ 9 and both a and b are ≥ 0. 1a + 3b + 0S1 – 1S2 + 1A = 9 and
a, b, S1, S2, A all are ≥ 0
Phase I
Maximize Z = 0a + 0b + 0S1 + 0S2 – 1A s.t.
2a + 4b + 1S1 + 0S2 + 0A = 8
1a + 3b + 0S1 – 1S2 + 1A = 9 and a, b, S1, S2 and A all ≥ 0.
Table: I. a = 0, b = 0, S1 = 8, S2 = 0, A = 9 and Z = – Rs 9
As the artificial variable still remains as the basic variable and has a positive value, the given
problem has no feasible solution.
If we examine the same by graphical means, we can see that the problem has no feasible region.
Net evaluation 3 1 0 –1 0
As there is no artificial variable in the programme, we can get the optimal solution for the given
problem.
Hence Phase II is:
Phase II
Optimal solution is x = 4 and Z = Rs. 12/–. Graphically also student can work to find optimal
solution.
Problem 3.19:
Solve the following L.P.P. by two–phase method: Simplex version:
Maximize Z = 2a – 1b + 1c s.t. Maximize Z = 2a – 1b + 1c + 0S1 + 0S2 + 0S3 – 1A1 – 1A2 s.t
1a + 1b – 3c ≤ 8 1a + 1b –3c + 1S1 + 0S2 + 0S3 + 0A1 + 0A2 = 8
4a – 1b + 1c ≥ 2 4a – 1b + 1c + 0S1 – 1S2 + 0S3 + 1A1 + 0A2 = 2
2a + 3b – 1c ≥ 4 2a + 3b – 1c + 0S1 + 0S2 – 1S3 + 0A1 + 1A2 = 4
And a, b, c all ≥ 0. a, b, c, S1, S2, S2 A1 and A2 all are ≥ 0.
Phase I
The objective function is Maximize Z = 0a + 0b + 0c + 0S1 + 0S2 + 0S3 + (– 1) A1 + (–1) A2
The structural constraints will remain same as shown in simplex version.
88 Operations Research
S1 0 8 1 1 –3 1 0 0 0 0 8
A1 –1 2 4 –1 1 0 –1 0 1 0 1/2
A2 –1 4 2 3 –1 0 0 –1 0 1 2
Net 6 2 0 0 –1 –1 0 0
evaluation
Net 0 0 0 0 0 0
evaluation
Phase II.
Table: I. a = 5/7, b = 6/7, c = 0, S1 = 45/7, S2 = 0, S3 = 0, A1 = 0, A2 = 0, Z = Rs. 4/7.
Table: II.
S2 0 6 0 7 –3 1 1 –2
Net 0 –4 2 0 0 7
evaluation
Highest positive element under S3 in net evaluation row shows that the problem has unbound
solution.
Problem 3.20: This can be written as:
Minimize Z = 15/2a – 3b + 0c s.t. Maximize Z = –15/2 a + 3b – 0c s.t
3a – 1b –1c ≥ 3 3a – 1b – 1c ≥ 3
1a – 1b +1c ≥ 2 1a – 1b + 1c ≥ 2 and a, b, c all ≥ 0
a, b, c all ≥ 0
Simplex version is:
Maximize Z = 15/2 a – 3b – 0c + 0S1 + 0S2 – 1A1 – 1A2 s.t.
3a – 1b – 1c – 1S1 + 0S2 + 1A1 + 0A2 = 3
1a – 1b + 1c + 0S1 – 1S2 + 0A1 + 1A2 = 2 and a, b, c, S1, S2, A1 and A2 all ≥ 0
In Phase I we give profit coefficients of variables as zero.
Maximize: Z = 0a + 0b + 0c +0S1 + 0S2 –1A1 – 1 A2 s.t.
The constraints remain same.
90 Operations Research
Phase I
Table: I. a = 0, b = 0, c = 0, S1 = 0, S2 = 0, A1 = 3, A2 = 2 and Z = – Rs.5/–
A1 –1 3 3 1 1 1 0 1 0 3/3 = 1
A2 –1 2 1 –1 1 0 –1 0 1 2/1 = 2
Net 4 0 2 1 1 0 0
evaluation
Net 0 0 0 0 0 –1 –1
evaluation
Phase II
Table: I. a = 5/4, b = 0, c = ¾, S1= 0, S2 = 0, A1 = 0, S2 = 0, Z = Rs. 75/8.
As all the net evaluation row elements are negative or zeros, the solution is optimal.
a = 5/4, c = 3/5, and minimum Z = Rs. 75/8.
The Disadvantages of Big M method over Two–phase method:
1. Big M method can be used to find the existence of feasible solution. But it is difficult
and many a time one gets confused during computation because of manipulation of
constant M. In two–phase method big M is eliminated and calculations will become
easy.
2. The existence of big M avoids the use of digital computer for calculations.
The planning manager wants to avail the idle time to manufacture A and B. The profit contribution of
A is Rs. 3/– per unit and that of B is Rs.9/– per unit. Find the optimal product mix.
Solution: Simplex format is:
Maximize Z = 3a + 9b s.t. Maximize Z = 3a + 9b + 0S1 + 0S2 s.t.
1a + 4b ≤ 8 1a + 4b + 1S1 + 0S2 = 8
1a + 2b ≤ 4 both a and b are ≥ 0 1a + 2b + 0S1 + 1S2 = 4 and
a, b, S1, S2 all ≥ 0.
Table: I. A = 0, b = 0, S1 = 8, S2 = 4 and Z = Rs.0/–
S1 0 8 1 4 1 0 8/4 = 2
S2 0 4 1 2 0 1 4/2 = 2
Net evaluation 3 9 0 0
Now to select the out going variable, we have to take limiting ratio in the replacement ratio
column. But both the ratios are same i.e. = 2. Hence there exists a tie as an indication of degeneracy
in the problem. To solve degeneracy follow the steps mentioned below:
(i) Divide the elements of identity column by column from left to right by the corresponding key
column element.
Once the ratios are unequal select the lowest ratio and the row containing that ratio is the key
row.
In this problem, for the first column of the identity (i.e. the S1 column) the ratios are: 1/4, and
0/2. The lowest ratio comes in row of S2. Hence S2 is the outgoing variable. In case ratios are equal go
to the second column and try.
Table: II. a = 0, b = 2, S1 = 0, S2 = 0, Z = Rs. 18/–
S1 0 0 1 –2 –1 0
b 9 2 0 1/2 1/2 1
Net evaluation 2 1 0 0 0
As the lowest ratio (= 2) is not unique, degeneracy occurs. Hence divide the elements of the
identity column by column from left to right and verify the ratios.
In this problem, the elements of the first column of identity under S1 (for 2nd and 3rd row) are
0,0. If we divide them by respective key column element, the ratios are 0/4 and 0/4 which are equal,
hence we cannot break the tie.
Now try with the second column i.e., column under S2. The elements of 2nd and 3rd row are 1
and 0. If we divide them by respective elements of key column, we get 1/4 and 0/4. The ratios are
unequal and the lowest being zero for the third row. Hence S3 is the outgoing variable.
As the elements of net evaluation row are either zeros or negative elements, the solution is optimal.
x = 3/2 and y = 2, and Z = Rs. 2 × 3/2 + 2 × 1 = Rs. 5/–
Shadow price = ¼ × 12 + ¼ × 8 = Rs. 5/–.
S1 0 30 2 3 1 0 0 0 30/2 = 15
S2 0 24 3 2 0 1 0 0 24/3 = 8
A –M 3 1 1 0 0 –1 1 3/1 = 3
Table II. a = 3, b = 0, S1 = 24, S2 = 15, S3 = 0, A = 0, Z = Rs. 18/– (out going column eliminated)
S1 0 24 0 1 1 0 2 24/2 = 12
S2 0 15 0 –1 0 1 3 15/3 = 5
A 6 3 1 1 0 0 –1 —
Net 0 –2 0 0 6
evaluation
In the above table, as all the net evaluation elements are either zeros or negative elements the
optimal solution is obtained. Hence the answer is: a = 8 and the profit Z = Rs. 48/–. But the net
evaluation element in the column under 'b' is zero. This indicates that the problem has alternate solution.
If we modify the solution we can get the values of basis variables, but the profit Z will be the same.
This type of situation is very helpful to the production manager and marketing manager to arrange the
96 Operations Research
production schedules and satisfy the market demands of different segments of the market. As the
profits of all alternate solutions are equal, the manager can select the solution, which is more needed by
him. Now let us workout the alternate solution.
Table: IV. a = 12 /5, b = 42 / 5 , S1 = 0, S2 = 0 , S3 = 39/5, A = 0, Z = Rs. 48/–
Net 0 0 0 –2 0
evaluation
All the elements of net evaluation rows are either zeros or negative elements so the solution is
Optimal. The answer is : a = 12/5, b = 42/5 and Z = 12/5 × 6 + 42/5 × 4 = Rs. 48/– . Shadow price =
element in column under S2 multiplied by element on the R.H.S of second inequality i.e., 24 × 2 = Rs.
48/–. Once we get one alternate solution then any number of solutions can be written by using the
following rule.
(a) One alternate value of the basis variable is: First value × d + second value × (1–d). In the
given example, the first value of ‘a’ is 8 and second value of ‘a’ is 12/5. Hence next value is 8 d + (1
– d) × 12/5. Like this we can get any number of values. Here ‘d’ is any positive fraction number: for
example 2/5, 3/5 etc. It is better to take d = 1/2, so that next value is 1/2 × first value + 1/2 × second
value. Similarly the values of other variables can be obtained.
Simplex version is
Maximize Z = 107a + 1b + 2c + 0d + 0S1 + 0S2 s.t.
14/3 a + 1/3b – 2c + 1d + 0S1 + 0S2 = 7/3
16a + ½ b – 6c + 0d + 1S1 + 0S2 = 5
3a – 1b – 1c + 0d + 0S1 + 1S2 = 0
and a, b, c, d, S1, S2 all ≥ 0.
TableL: I. a = 0, b = 0, c = 0, d = 7/3, S1 = 5, S2 = 0 and Z = Rs. 0.
S1 0 5 16 1/2 6 0 1 0 5/16
S2 0 0 3 –1 –1 0 0 1 0/3
As the elements of incoming variable column are negative we cannot workout replacement ratios
and hence the problem cannot be solved. This is an indication of existence of unbound solution to
the given problem.
Problem 3.25: Simplex version is:
Maximize Z = 6x – 2y s.t. Maximize Z = 6x – 2y + 0S1 + 0S2 s.t.
2x – 1y ≤ 2 2x – 1y + 1S1 + 0S2 = 2
1x + 0y ≤ 4 and both x and y are ≥ 0. 1x + 0y + 0S1 + 1S2 = 4
And x, y, S1 and S2 all ≥ 0.
98 Operations Research
S1 0 2 2 1 1 0 2/2 = 1
S2 0 4 1 0 0 1 4/1 = 4
Net evaluation 6 –2 0 0
x 6 1 1 – 1/2 1/2 0 —
Net evaluation 0 1 3 0
x 6 4 1 0 0 1
y –2 6 0 1 –1 2
Net evaluation 0 0 –2 –2
S1 0 2 3 1 1 0 0 2/1 = 2
A –M 12 3 4 0 –1 1 12/4 = 3
Net evaluation 3 + 3M 2 + 4M 0 –M 0
b 2 2 2 1 1 0 0
A –M 4 –5 0 –4 –1 0
In the above solution, though the elements of net evaluation row are either negative or
zeros, the presence of artificial variable ‘A’ as problem variable with value 4 shows that the
problem has no feasible solution because the positive value of A violates the second constraint
of the problem.
(Students can verify the solution by graphical method).
S1 0 4 –1 1 2 –2 1 0 0 2
S2 0 6 1 –1 1 –1 0 1 0 6
S3 0 9 1 –1 3 –3 0 0 1 3
Net evaluation 2 –2 3 –3 0 0 0
Table:III. x' = 6/5, x" = 0, y' = 13/3, y" = 0, S1 = 0, S2 = 11/5, S3 = 0, Z = Rs. 10.20
Table: IV. x' = 9/2, x" = 0, y' = 3/2, y" = 0, S1 = 0, S2 = 11/2, S2 = 0, S2 = 0, Z = Rs. 13.50
A1 –M 5 1 –3 4 –4 0 0 1 0 5/4
S1 0 3 1 –2 0 0 1 0 0 0 3/0
A2 –M 4 0 2 –1 1 0 –1 0 1 negative
Net evaluation – 1 + M – 1 – M – 1 + 3M 1 – 3M 0 –M 0 0
102 Operations Research
S1 0 3 1 –2 0 0 1 0 0 Negative
As the elements of net evaluation row are either negative or zeros, the solution is optimal. The
answer is a = 0, b = 21/5, c = 22/5 – 0 = 22/5, and Z = 21/5 + 22/5 = Rs. 43/5.
(In this example, the columns of artificial variable is eliminated whenever it goes out of the
programme)
Example 3.29: Solve the given l.p.p
Maximize Z = 0a + 8b s.t.
a–b ≥ 0
2a + 3b ≤ – 6 and both a and b are unrestricted.
As a and b are unrestricted, they may be + ve or –ve or zero. As non–negativity constraint is a
condition for simplex method, this can be solved by writing a = a' – a" and b = b' – b" so that a', a",
b' and b" all ≥ 0.
Now the revised problem is: Simplex version is:
Maximize Z = 0a' + 0a" + 8b' – 8b" s.t. Maximize Z = 0a' + 0a" + 8b' – 8b" + 0S1 + 0S2 – MA1
– MA2 s.t.
(1a' – 1a") – 1 (b' – b") ≥ 0 a' – a" – b' + b" – 1S1 + 0S2 + 1A1 + 0A2 = 0
– 2 (a' – a") – 3 (b' – b") > 6 – 2a' + 2a" – 3b' + 3b" + 0S1 – 1S2 + 0A1 + 1A2 = 6
And a', a", b', b" all ≥ 0 a', a", b', b", S1, S2, A1 and A2 all ≥ 0.
Linear Programming Models : Solution by Simplex Method 103
A1 –M 0 1 –1 –1 1 1 0 0 1 0
A2 –M 6 –2 2 –3 3 0 –1 0 1 6/3 = 2
Net evaluation –M M 8 – 4M 4M – 8 – M –M 0 1
b" –8 0 1 –1 –1 1 –1 0 0 Negative
A2 –M 6 –5 5 0 0 3 –1 1 6/5
Net evaluation 8 – 5M –8 + 5M 0 0 –8 + 3M –M 0
Table: III. a" = 6/5, b" = 6/5, a' = 0, b' = 0, S1 = 0, S2 = 0, A1 = 0, A2 = 0, Z = Rs. –8/5
Answer: a" = 6/5, b" = 6/5 and Z = Rs.– 48/5. The shadow price = 8/5 × 6 = Rs. 48/5. = Rs.
9.60
Problem 3.30: Solve the given l.p.p.
Maximize Z = 4x + 5y – 3z s.t.
1x + 1y + 1z = 10 ...(1)
1x – 1y ≥ 1 ...(2)
104 Operations Research
2x + 3y + 1z ≤ 40 ...(3)
And x, y, z all ≥ 0.
Solution: (Note: In case there is equality in the constraints, then one variable can be
eliminated from all inequalities with ≤ or ≥ sign by subtracting the equality from the inequality.
Then the variable, which is eliminated from equality, is treated as slack variable for further
calculations).
Now, subtracting (1) from (3) to eliminate z from (3) and retaining z to work as slack variable for
the equality (1), the given problem becomes:
Given Problem: Simplex version:
Maximize Z = 4x + 5y – 3z s.t. Maximize: Z = 4x + 5y – 3z + 0S1 – MA + 0S2 s.t.
1x + 1y + 1z = 10 1x + 1y + 1z + 0S1 + 0A + 0S2 = 10
1x – 1y + 0z ≥1 1x – 1y + 0z –1S1 + 1A + 0S2 = 1
1x + 2y + 0z ≤ 30 1x + 2y + 0z + 0S1 + 0A + 1S2 = 30
x, y, and z all ≥ 0. x, y, z, S1, S2 A all ≥ 0.
z –3 10 1 1 1 0 0 0 10/1 = 10
A –M 1 1 –1 0 –1 1 0 1/1 = 1
S2 0 30 1 2 0 0 0 1 30/1 = 30
z –3 9 0 2 1 1 0 9/2 = 4.5
x 4 1 1 –1 0 –1 0 Negative
S2 0 29 0 3 0 1 1 29/3 = 9.33
Net evaluation 0 9 0 4 0
Linear Programming Models : Solution by Simplex Method 105
As all the net evaluation row elements are either negative or zeros, the solution is optimal.
x = 11/2, y = 9/2 and Z = Rs. 44.50.
Problem 3.31: Maximize Z = 4x + 5y – 3z + 50 s.t
1x + 1y + 1z = 10,
1x – 1y ≥ 1
2x + 3y + 1z ≤ 40
x, y, z all ≥ 0.
Note: If any constant is included in the objective function, it should be deleted in the
beginning and finally adjusted in optimum value of Z and if there is equality in the constraints,
then one variable can be eliminated from the inequalities with ≥ or ≤ sign. In this example
constant 50 presents in the objective function. Also one equality is present in the constraints.
As done earlier, variable ‘z’ is eliminated from third constraint and is considered as slack
variable in first equality.
The problem 3.30 and 3.31 are one and the same except a constant present in the objective
function of problem 3.31.
The solution for the problem 3.30 is x = 11/2, y = 9/2 and Z = 89/2.
While solving the problem 3.31, neglect 50 from the objective function, and after getting the final
solution, add 50 to that solution to get the answer. That is the solution for the problem 3.31 is Z = Rs.
89/2 + 50 = Rs. 189/2.
Whenever, we solve the primal problem, may be maximization or minimization, we get the solution
for the dual automatically. That is, the solution of the dual can be read from the final table of the primal
and vice versa. Let us try to understand the concept of dual problem by means of an example. Let us
consider the diet problem, which we have discussed while discussing the minimization case of the
linear programming problem.
Example: The doctor advises a patient visited him that the patient is weak in his health due to shortage
of two vitamins, i.e., vitamin X and vitamin Y. He advises him to take at least 40 units of vitamin X and
50 units of Vitamin Y everyday. He also advises that these vitamins are available in two tonics A and B.
Each unit of tonic A consists of 2 units of vitamin X and 3 units of vitamin Y. Each unit of tonic B
consists of 4 units of vitamin X and 2 units of vitamin Y. Tonic A and B are available in the medical shop
at a cost of Rs. 3 per unit of A and Rs. 2,50 per unit of B. The patient has to fulfill the need of vitamin
by consuming A and B at a minimum cost.
The problem of patient is the primal problem. His problem is to minimize the cost. The tonics
are available in the medical shop. The medical shop man wants to maximize the sales of vitamins A and
B; hence he wants to maximize his returns by fixing the competitive prices to vitamins. The problem of
medical shop person is the dual problem. Note that the primal problem is minimization problem
and the dual problem is the maximization problem.
If we solve and get the solution of the primal problem, we can read the answer of dual problem
from the primal solution.
Primal problem: Dual Problem:
Minimize Z = 3a + 2.5b. s.t. Maximize Z = 40x + 50y s.t.
2a + 4b ≥ 40 2x + 3y ≤ 3
3a + 2b ≥ 50 4x + 2y ≤ 2.50
both a and b are ≥ 0. both x and y are ≥ 0.
Solution to Primal: (Minimization problem i.e., patient’s problem)
Problem Cost Cj 3 2.50 0 0 M M
variable Rs. Requirement a b p q A1 A2
b 2.50 5/2 0 1 –3/8 1/4 3/8 –1/4
a 3 15 1 0 1/4 –1/2 –1/4 1/2
Net evaluations 0 0 3/16 7/8 M – 3/16 M – 7/8
Answer: a = 15 units, b = 2.5 units and total minimum cost is Rs. 51.25
Solution to Dual: (Maximization problem i.e medical shop man’s problem)
Problem Profit Cj 40 50 0 0
variable Rs. Capacity units x y S1 S2
y 50 7/8 0 1 1/2 –1/4
x 40 3/16 1 0 –1/4 3/8
Net evaluation 0 0 –15 –5/8
Linear Programming Models : Solution by Simplex Method 107
Pro duct
Department X Y Available Capacity
Turning 10 6 2500
Milling 5 10 2000
Finishing 1 2 500
Profit per unit in Rs. 23 32
Let us take the maximization problem stated to be primal problem. Associated with this maximization
problem is the minimization problem that is the dual of the given primal problem. Let us try to formulate
the dual by logical argument.
The primal problem is the seller’s maximization problem, as the seller wants to maximize his
profit. Now the technology, i.e., the machinery required are with the seller and they are his available
resources. Hence he has to prepare the plans to produce the products to derive certain profit and he
wants to know what will be his profit he can get by using the available resources. Hence the buyer’s
problem is:
Maximize 23 x + 32y s.t
108 Operations Research
10x + 6y ≤ 2500
5x + 10y ≤ 2000
1x + 2y ≤ 500 and both x and y ≥ 0 (This we shall consider as primal problem).
Associated with seller’s maximization problem is a buyer’s minimization problem. Let us assume
seller will pretend to be the buyer. The rationale is the buyer, it is assumed, will consider the purchase
of the resources in full knowledge of the technical specifications as given in the problem. If the buyer
wishes to get an idea of his total outlay, he will have to determine how much must he pay to buy all the
resources. Assume that he designates variables by a, b, c, to represent per unit price or value that he
will assign to turning, milling and finishing capacities, respectively, while making his purchase plans.
The total outlay, which the buyer wishes to minimize, will be determined by the function 2500a +
2000b + 500c, which will be the objective function of the buyer. The linear function of the objective
function mentioned, must be minimized in view of the knowledge that the current technology yields a
profit of Rs. 23 by spending 10 machine hours of turning department, 5 machine hours of milling
department and 1 man-hour of finishing department. Similarly we can interpret other constraints also.
Now the buyer’s minimization problem will be:
Minimize. Z = 2500a + 2000b + 500c s.t.
10a + 5b + 1c ≥ 23
6a + 10b + 2c ≥ 32 and all a, b, c, are ≥ 0 (This minimization version is the dual of seller’s
primal problem given above), where a, b, and c are dual variables and x, y, z are primal variables.
The values assigned to the dual variables in the optimal tableau of the dual problem, represent
artificial accounting prices, or implicit prices or shadow prices, or marginal worth or machine
hour rate of various resources. Because of this, we can read the values of dual variables from the net
evaluation row of final tableau of primal problem. The values will be under slack variable column in net
evaluation row.
The units of the constraint to which the dual variable corresponds determine the dimension of any
dual variable.
In this problem the dimension of variable ‘a’ as well as ‘b’ is rupees per machine hour and that of
variable 'c' is rupees per man-hour.
Another important observation is by definition, the entire profit in the maximization must be
traced to the given resources, the buyer’s total outlay, at the equilibrium point, must equal to the total
profit. That is, optimal of the objective function of the primal equals to the optimal value of the objective
function of the dual. This observation will enable the problem solver to check whether his answer is
correct or not. The total profit (cost) of maximization problem (minimization problem) must be equal
to the shadow price (or economic worth) of resources.
The given primal problem will have symmetrical dual. The symmetrical dual means all given
structural constraints are inequalities. All variables are restricted to nonnegative values.
Now let us write primal and dual side by side to have a clear idea about both.
Primal problem: Dual Problem:
Maximize Z = 23x + 32y s.t. Minimize Z = 2500a + 2000b + 5000c s.t.
10x + 6y ≤ 2500 10a + 5b + 1c ≥ 23
5x + 10y ≤ 2000 6a + 10b + 2c ≥ 32
1x + 2y ≤ 500
Both x and y are ≥ 0. All a, b, c, are ≥ 0.
Linear Programming Models : Solution by Simplex Method 109
Now let us discuss some of the important points that are to be remembered while dealing with
primal and dual problem. Hence the characteristics are:
Note:
1. If in the primal, the objective function is to be maximized, then in the dual it is to be
minimized.
Conversely, if in the primal the objective function is to be minimized, then in the
dual it is to be maximized.
2. The objective function coefficients of the prima appear as right-hand side numbers in
the dual and vice versa.
3. The right hand side elements of the primal appear as objective function coefficients
in the dual and vice versa.
4. The input - output coefficient matrix of the dual is the transpose of the input – output
coefficient matrix of the primal and vice versa.
5. If the inequalities in the primal are of the “less than or equal to” type then in the
dual they are of the “greater than or equal to” type. Conversely, if the inequalities
in the primal are of the “greater than or equal to” type; then in the dual they are of
the “less than or equal to” type.
6. The necessary and sufficient condition for any linear programming problem and its
dual to have optimum solution is that both have feasible solution. Moreover if one of
them has a finite optimum solution, the other also has a finite optimum solution.
The solution of the other (dual or primal) can be read from the net evaluation row
(elements under slack/surplus variable column in net evaluation row). Then the values
of dual variables are called shadow prices.
7. If the primal (either) problem has an unbound solution, then the dual has no solution.
8. If the i th dual constraints are multiplied by –1, then i th primal variable computed
from net evaluation row of the dual problem must be multiplied by –1.
9. If the dual has no feasible solution, then the primal also admits no feasible solution.
10. If k th constraint of the primal is equality, then the k th dual variable is unrestricted
in sign.
11. If p th variable of the primal is unrestricted in sign, then the p th constraint of the
dual is a strict equality.
Summary:
Primal Dual
(a) Maximize. Minimize
(b) Objective Function. Right hand side.
(c) Right hand side. Objective function.
(d) i th row of input-output coefficients. i th column of input output coefficients.
(e) j th column of input-output coefficients. j the row of input-output coefficients.
(f) i th relation of inequality ( ≤ ). i th variable non-negative.
(g) i th relation is an equality (=). i the variable is unrestricted in sign.
(h) j th variable non-negative. j relation an inequality ( ≥ ).
(i) j th variable unrestricted in sign. j th relation an equality.
110 Operations Research
Note:
1. Primal of a Prima is Primal
2. Dual of a Dual is Primal.
3. Primal of a Dual is Primal.
4. Dual of a Primal is Dual.
5. Dual of a Dual of a Dual is Primal.
3.13.1. Procedure for converting a primal into a dual and vice versa
Case 1: When the given problem is maximization one:
The objective function of primal is of maximization type and the structural constraints are of ≤
type. Now if the basis variables are x, y and z, give different name for variables of dual. Let them be a,
b, and c etc. Now write the structural constraints of dual reading column wise. The coefficients of
variables in objective function will now become the left hand side constants of structural constraints.
And the left hand side constants of primal will now become the coefficients of variables of objective
function of dual. Consider the example given below:
Primal Dual
Maximize: Z = 2x + 3y s.t. Minimize: Z = 10a + 12b s.t.
1x + 3y ≤ 10 1a + 2b ≥ 2
2x + 4y ≤ 12 and 3a + 4b ≥ 3 and
Both x and y are ≥ 0 both a and b are ≥ 0
Case 2: When the problem is of Minimization type:
The procedure is very much similar to that explained in case 1. Consider the example below:
Primal Dual
Minimize Z = 10x + 12y s.t Maximize Z = 2a + 3b s.t.
1x + 2 y ≥ 2 1a + 3b ≤ 10
3x + 4y ≥ 3 and 2a + 4b ≤ 12 and
Both x and y are ≥ 0 Both a and b are ≥ 0.
Case 3: When the problem has got both ≥ and ≤ constraints, then depending upon the objective
function convert all the constraints to either ≥ or ≤ type. That is, if the objective function is of
minimization type, then see that all constraints are of ≥ type and if the objective function is of
maximization type, then see that all the constraints are of ≤ type. To convert ≥ to ≤ or ≤ to ≥, simply
multiply the constraint by –1. Once you convert the constraints, then write the dual as explained in
case 1 and 2. Consider the example:
Primal: The primal can be written as:
Maximize Z = 2a + 3b s.t. Maximize Z = 2a + 3b s.t.
1a + 4b ≤ 10 1a + 4b ≤ 10
2a + 3b ≥ 12 and –2a – 3b ≤ – 12 and both a and b are ≥ 0.
Both a and b are ≥ 0
Linear Programming Models : Solution by Simplex Method 111
Net evaluation 5 20 0 0 0
As all the values in net evaluation row are either zeros or negative elements, the solution is
optimal.
Hence, a = 24/7, b = 10/7 and optimal profit is Rs. 45.75.
Now let us solve the dual of the above.
Dual of the given problem: Simplex version:
Minimize Z = 20x + 8y + 12z s.t.
i.e., Maximize Z = –20x – 8y – 12z s.t. Maximize Z = –20x – 8y – 12z + 0S1 + 0S2 –
MA1 – M A s.t.
5x + 1y + 1z ≥ 5 5x + 1y + 1z – 1S1 + 0S2 + 1A1 + 0A2 = 5
2x + 2y + 6z ≥ 20 2x + 2y + 6z + 0S1 – 1S2 + 0A1 + 1A2 = 20
and x, y, and z all ≥ 0 and x, y, z, S1, S2, A1, A2 all ≥ 0.
Two Phase version is: Maximize: Z = 0x + 0y + 0z + 0S1 + 0S2 – 1A1 – 1A2 s.t.
5x + 1y + 1z – 1S1 + 0S2 + 1A1 + 0A2 = 5
2x + 2y + 6z + 0S1 – 1S2 + 0A1 + 1A2 = 20
And x, y, z, S1, S2, A1, A2 all ≥ 0.
A1 –1 5 5 1 1 –1 0 1 0 1
A2 –1 20 2 2 6 0 –1 0 1 10
Net evaluation 7 3 7 –1 –1 0 0
Net evaluation 0 0 0 0 0 –1 –1
must take care that all the inequalities are of ≤ type. In case the objective function is minimization type,
then all the inequalities must be of ≥ type.
Dual of the given problem:
The given problem is written as: This can be written as:
Maximize 4a + 3b s.t. Maximize Z = 4a + 3b s.t.
2a + 9b ≤ 100 2a + 9b ≤ 100
3a + 6b ≤ 120 3a + 6b ≤ 120
1a + 1b ≤ 50 1a + 1b ≤ 50
1a + 1b ≥ 50 and both a and b are ≥ 0 –1a – 1b ≤ –50 and both a and b are ≥ 0.
Dual of the primal:
Minimize 100w + 120x + 50y – 50z s.t
2w + 3x + 1y – 1z ≥ 4
9w + 6x + 1y – 1z ≥ 3 and w, x, y, and z all are > 0.
As the number of rows is reduced, the time for calculation will be reduced. Some times while
solving the l.p.p it will be better to write the dual and solve so that one can save time. And after getting
the optimal solution, we can read the answer of the primal from the net evaluation row of the dual.
Problem 3.36: Write the dual of the given primal problem:
Minimize: 1a + 2b + 3c s.t.
2a + 3b – 1c ≥ 20
1a + 2b + 3c ≤ 15
0a + 1b + 2c = 10 and
a, b, c all ≥ 0
As the objective function is minimization type all the inequalities must be of ≥ type. Hence
convert the second constraint by multiplying by –1 into ≥ type. Rewrite the third constraint into ≤ and
≥ type and multiply the ≤ type inequality by –1 and convert it into ≥ type. And then wire the dual.
Given problem can be written as: Dual is:
Minimize 1a + 2b + 3c s.t Maximize Z = 20w – 15x + 10y – 10z s.t
2a + 3b – 1c ≥ 20 2w – 1x + 0y – 0z ≤ 1
–1a – 2b – 3c ≥ – 15 3w – 2x+ 1y – 1z ≤ 2
0a + 1b + 2c ≥ 10 – 1w – 3x + 2y – 2z ≤ 3 and
–0a – 1b – 2c ≥ – 10 and w, x, y and z all ≥ 0.
a, b, and c all ≥ 0.
Points to Remember
1. While writing dual see that all constraints agree with the objective function. That
is, if the objective function is maximization, then all the inequalities must be ≤
type. In case the objective function is Minimization, then the inequalities must be
of ≥ type.
2. If the objective function is maximization and any one or more constraints are of
≥ type then multiply that constraint by –1 to convert it into ≤ type. Similarly, if
Linear Programming Models : Solution by Simplex Method 117
the objective function is minimization type and one or more constraints are of ≤
type, then multiply them by –1 to convert them into ≥ type.
3. In case any one of the constraint is an equation, then write the two versions of the
same i.e., ≤ and ≥ versions, then depending on the objective function, convert
the inequalities to agree with objective function by multiplying by –1.
S1 0 10 1 3 4 3 1 0 10/4
S2 0 25 4 2 6 8 0 1 25/6
Net evaluation 2 2 5 4 0 0
Problem Profit Cj 2 2 5 4 0 0
variable Rs. Capacity units a b c d S1 S2
Here ‘a’ and ‘c’ are basic variables and ‘b’ and ‘d’ are non–basic variables. Consider a small
change x1 in the objective coefficient of the variable ‘b’, then its index row (net evaluation row)
element becomes:
(2 + x1) – (–2 + 5) = x1 –1. If variable ‘b’ wants to be an incoming variable x1 – 1 must be
positive. Then the value of x1 should be > 1. Hence when the value of the increment is > 1 then the
present optimal solution changes.
Similarly for D, if x2 is the increment, then (4 + x2) – (14/5 + 10/5) = (4 + x2) – 24/5, hence if 'd'
wants to become incoming variable then the value of x2 > 4/5. To generalize, one can easily conclude
that for non-basic variables when its objective coefficient just exceeds its index row coefficient in the
optimal solution, the present solution ceases to be optimal.
(b) Basic variables:
Now let us consider a change in the objective coefficient of the basic variable in the optimal
solution. Here, it affects the net evaluation row coefficients of all the variables. Hence, as soon as the
net evaluation row coefficients of basic variables become negative, it leaves the solution, and that of
non-basic variable becomes positive, it becomes an incoming variable. In either case, the present
optimal solution changes.
Consider the above example. Let us say that there is a small reduction ‘x1’ in the objective
coefficient of variable ‘a’ i.e., (2– x1) then the net evaluation row coefficients of variables are:
Variable Corresponding change in net evaluation row element.
a (2–x1) – 1 ( 2–x1) = 0
b 2 – {–1 (2–x1) + 5) = – (x1 + 1)
c 0
d – ( 4/5 + 7/5 x1)
S1 –4/5 + 3/5 x1
S2 – 3/10 + 2/5 x1
Results:
(a) For any value of x1 variable 'b' cannot enter the solution.
(b) As soon as x1 is > 4/7, variable 'd' enters the solution.
(c) For any value of x1, S1 will not enter into solution.
(d) As soon as x1 > 3/4 , S2 claims eligibility to enter into solution.
A reduction in objective coefficient of variable 'a' by more than 4/7, the present optimal solution
change. i.e., the value is 2 – 4/7 = 10/7.
120 Operations Research
When the objective coefficient of variable ‘a’ increases by a value x2, the changes are:
Variable Corresponding change.
a (2 + x2) – (2 + x2) = 0
b 2 – (–1) {( 2+x2) + 5)} = –1 + x2
c 0
d –4/5 – 7/5 x2
S1 –4/5 + 3/5 x2
S2 –3/10–2/5 x2
If x2 is ≥ 1 the variable ‘b’ claims the entry into solution and the optimal solution changes.
For any value of x2 variables ‘d’ and S1 are not affected.
If x2 is > 4/3, S1 claims the entry into solution, and the optimal changes.
Hence, as soon as objective coefficient of variable ‘a’ increases by more than 1 the present
optimal solution changes. Hence the maximum permissible value of objective coefficient of ‘a’ is 2 + 1
= 3 for the present optimal solution to remain. That is the range for objective coefficient of variable ‘a’
is 10/7 to 3.
Now x = 125/2, and z = 325/2 and S3 = 25. As x and z have positive values the current optimal
solution will hold well. Note that the units of x and z have been increased from 50 and 150, to 125/2 and
325/2. These extra units need the third resource, the storage space. Hence storage space has been
reduced from 50 to 25.
Shadow price indicates that resource of man-hours can be increased to increase objective function.
A solution to question No.1 above, showed that with increase of man- hours by 100 (i.e., from 900 to
1000 hours), the basic variables remain the same (i.e., x and z and S3) with different values at the
optimal stage.
Question No. 2: Up to what values the resource No.1, i.e., man-hours can be augmented without
affecting the basic variables? And up to what value the resource man-hours can be without affecting
the basic variables?
Let α be the increment in man- hour resource, then:
Problem
S1 S2 S3 Capacity B–1 × b =
variable
z 5/16 –3/32 0 900 + α 5/16(900 + α) – 3/32 × 1400 + 0 × 250 = 150 + 5/16α
Problem
S1 S2 S3 Capacity B–1 × b =
variable
z 5/16 – 3/32 0 900 – α 5/16 (900 – α) – 3/32 × 1400 + 0 × 250 = 150 – 5/16α
Thus z will be negative, when 5/16α > 150 i.e., α > 480. Hence when resource No.1 i.e. Man-
hour is reduced to the level below 420 = (900 – 480) the present basis will change.
Hence the range for resource No. 1, i.e., man-hours to retain the present basic variables is:
(900 + 800/3) to (900 – 480) = 3500 /3 to 420.
S1 0 –3 –3 –1 1 0 0 3
S2 0 –6 –4 –3 0 1 0 1/2
S3 0 3 1 2 0 0 1 3/2
Net evaluation –2 –1 0 0 0
Now observe here, both S1 = –3 and S2 = –6 are negative and S3 = 3 positive. This shows that the
basic variables of primal (S1 and S3) are infeasible. Moreover the net evaluation row elements are
negative or zeros, the solution is optimal. Now let us change the solution towards feasibility without
disturbing optimality. That is deciding the incoming variable and outgoing variable. In regular simplex
method, we first decide incoming variable. In dual simplex we first decide outgoing variable,
i.e., key row.
(a) Criterion for out going variable:
The row, which has got the largest negative value (highest number with negative sign) in the
capacity column, becomes the key row and the variable having a solution in that row becomes out
going variable. If all the values in the capacity column are non-negative and if all net evaluation row
elements are negative or zeros, the solution is optimal basic feasible solution. In the given example, the
row containing S2 is having highest number with negative sign; hence S2 is the out going variable.
(b) Criterion for incoming variable:
Divide the net evaluation row elements by corresponding coefficients (if negative) of the key
row. The column for which the coefficient is smallest becomes key column and the variable in that
column becomes entering variable. (If all the matrix coefficients in the key row are positive, the
problem has no feasible solution).
In the problem given, variable satisfies the condition, hence variable 'b' is the incoming variable.
The rest of the operation is similar to regular simplex method.
Table: II. a = 0, b = 2, S1 = –1, S2 = 0, S3 = –1 and Z = Rs. –2
The solution is infeasible. As net evaluation row elements are negative the solution remains optimal
and as basic variables are negative, it is infeasible.
Now both rows of S1 and S3 are having –1 in capacity column, any one of them becomes key
row. Let us select first row as key row. The quotient row shows that ‘a’ as the incoming variable.
S3 0 0 0 0 –1 1 1
As the net evaluation row elements are negatives or zeros, the solution is optimal and feasible.
Answer is a = 3/5 and b = 6/5 and profit Z = – Rs. 12/5. That is for minimization problem the minimum
cost is Rs. 12/5.
To Summarize:
(i) The solution associated with a basis is optimal if all basic variables are ≥ 0.
(ii) The basic variable having the largest negative value (highest number with negative
sign), is the outgoing variable and the row containing it is the key row.
(iii) If α is the matrix coefficient of the key row and is < 0, the variable for which (index
row coefficient/αα) is numerically smallest will indicate incoming variable.
(iv) If α > 0, for all the variables in the key row the problem is infeasible.
Solution:
Table: I. x = 0, y = 0, S1 = –12, S2 = –17, S3 = –6, S4 –6, Z = Rs.0/–
S1 0 – 12 –1 –1 1 0 0 0 12
S2 0 – 17 –2 –1 0 1 0 0 8.5
S3 0 –5 –2 0 0 0 1 0 2.5
S4 0 –6 0 –1 0 0 0 1 0
Net evaluation – 20 – 16 0 0 0 0
Quotient 10 16
As all the elements of net evaluation row are negative, the solution is optimal but as slack variables
have –ve values, the solution is infeasible. The row with highest number with negative sign becomes
outgoing variable. Here S2 is out going variable i.e., it becomes key row. By dividing net evaluation row
elements by corresponding key row elements, quotient row elements are obtained, which show that x
is the incoming variable (lowest number).
Table: II. x = 17/2, y = 0, S1 = –7/2, S2 = 0, S3 = 12, S4 = –6 and Z = – Rs. 170/–
S3 0 12 0 1 0 –1 1 0 12
S4 0 –6 0 –1 0 0 0 1 6
Net evaluation 0 –6 0 – 10 0 0
Quotient – 6 – – – –
Solution is optimal and infeasible as net evaluation row elements are negative and slack variables
are negative.
126 Operations Research
S3 0 6 0 0 0 –1 1 1
y – 16 6 0 1 0 0 0 –1
Net evaluation 0 0 0 – 10 0 –6
Quotient 20 12
S4 0 1 0 0 –2 1 0 1
x – 20 5 1 0 1 –1 0 0
S3 0 5 0 0 2 –2 1 0
y – 16 7 0 1 –2 1 0 0
Net evaluation 0 0 – 12 –4 0 0
Quotient
As all the elements of net evaluation row are either negative or zeros the solution is optimal and as
all the slack variables and basic variables have positive values the solution is feasible.
x = 5, y = 7, S1 = 0, S2 = 0. S3 = 5, S4 = 1 and Z = – Rs. 212/– i.e minimum optimal is Rs.212/
Problem 3.41: The problem can be written as:
Minimize Z = 10a + 6b + 2c s.t. Maximize Z = –10a – 6b – 2c + 0S1 + 0S2
–1a + 1b + 1c ≥ 1 1a – 1b –1c + 1S1 + 0S2 = –1
3a + 1b – 1c ≥ 2 –3a – 1b + 1c + 0S1 + 1S2 = –2
And all a, b, c, ≥ 0. And a, b, c, S1, S2 all ≥ 0
Linear Programming Models : Solution by Simplex Method 127
Solution:
Table: I. a = 0, b = 0, X = 0, S1 = –1, S2 = –2, Z = Rs. 0/–
S1 0 –1 1 –1 –1 1 0 –1
S2 0 –2 –3 –1 1 0 1 2/3
Quotient 10/3 6
Net evaluation row elements are negative hence solution is optimal but slack variables are negative,
hence the solution is infeasible. Variable ‘a’ has lowest quotient hence incoming variable and S2 has got
highest element with negative sign, it is out going variable and the row having S2 is the key row.
Table: II. a = 2/3, b = 0, z = 0, S1 = –5/3, S2 = 0, Z = – Rs. 20/3.
Quotient 2 8
Variable ‘b’ has lowest positive quotient, it is incoming variable, S1 has highest number with
negative sign, it is the out going variable. The solution is infeasible optimal.
Table: III. a = 1/4, b = 5/4, c = 0, S1 = 0, S2 = 0, Z = – Rs. 10/–
Net evaluation 0 0 –4 –2 –4
The solution is optimal and feasible. a = ¼, b = 5/4, c = 0 and Z = – Rs. 10/–. Hence the minimum
cost is Rs. 10/–
128 Operations Research
S3 0 0 0 0 –1 1 1 0 Row 3
S4 0 –10 –5 –5 0 0 0 1 Row 4
Multiplying the row 1 by 5 and adding it to row 4 and multiplying row 2 by 5 and adding it to row
4, we get
Linear Programming Models : Solution by Simplex Method 129
Table: II.
a = 3/5, b = 6/5, S3 = 0, S4 = –1, Hence the solution is infeasible. As the net evaluation row
elements are negative or zeros the solution is optimal. Hence by using dual simplex method, we get S3
as incoming variable and S4 as the out going variable.
Table: III.
Solution is infeasible and optimal. S1 is the incoming variable and S3 is the outgoing variable.
Table: IV.
As the net evaluation row elements are either negatives or zeros the solution is optimal. As all
variables have positive values the solution is feasible.
a = 1, b = 1, and Z min is Rs. 3/–. Here the basic variables remain same but the optimal value of
cost is changed.
Problem 3.42: (Extension of problem 3.40)
Add a new constraint 4x + 3y ≥ 40 to problem 3.40 and examine whether basic variables change
and if so what are the new values of basic variables?
The optimal solution obtained is x = 5, y = 7 and Z = Rs. 212/–
Substituting the values in the new constraint, 4 × 5 + 3 × 7 = 41 which is ≥ 40. Hence the
condition given in the new constraint is satisfied. Therefore it is not tighter constraint. This will not
have any effect on the present basis. Let us verify the same.
The simplex version of the new constraint is: –4x – 3y + 1S5 = 40. The optimal table is:
Table: I.
Now to convert matrix coefficients of basic variables in row 5 to zero, multiply row 4 by 3 and
adding it to row 5 and multiplying row 2 by 4 and adding it to row 5, we get:
Table: II.
x = 5, y = 7 and minimum Z = Rs. 212/– As the net evaluation row is negative or zeros, and all
problem variables have positive value, the solution is feasible and optimal. Values of basic variables have
not changed.
Problem 3.43: (Repetition of Problem 3.41).
Add the following two new constraints to problem No. 3.41 and find the optimal solution.
Minimize Z = 10a + 6b + 2c s.t
–1a + 1b + 1c ≥ 1
3a + 1b – 1c ≥ 2
New constraints are:
4a + 2b + 3c ≤ 5
8a – 1b + 1c ≥ 5
The simplex format of new constraints is:
4a + 2b + 3c + 1S3 = 5
8a – 1b + 1c – 1S4 = 4
Earlier values of a = 1/4 and b = 5/4 and z = 0
4 × ¼ + 2 × 5/4 + 3 × 0 + 1S3 = 5, gives S3 = 3/2, which is feasible.
8 × ¼ – 5/4 × 1+ 0 – S4 = 4 gives S4 = –13/4 is not feasible. Hence the earlier basic solution is
infeasible.
We have seen that the first additional constraint has not influenced the solution and only second
additional constraint will influence the solution, by introducing both the constraints in optimal table we
get:
Table: I.
S3 0 5 4 2 3 0 0 1 0 Row 3
S4 0 –4 –8 1 –1 0 0 0 1 Row 4
Net evaluation
Table II.
Net evaluation 0 0 –4 –2 –4 0 0
As S4 = – 13/4, the basic solution is not feasible. As net evaluation row elements are either
negative or zeros the solution is optimal. Students can see that by using dual simplex method, variable
‘c’ will enter the solution and S4 will leave the solution.