Sample Linear Programming
Sample Linear Programming
B.V.Ramana
Chapter
17:59
5
Linear Programming
5.1 INTRODUCTION
Optimization problems seek to maximize or minimize a function of a number of variables which
are subject to certain constraints. The objective may
be to maximize the prot or to minimize the cost.
The variables may be products, man-hours, money
or even machine hours. Optimal allocation of limited resources to achieve a given object forms programming problems. A programming problem in
which all the relations between the variables is linear including the function to be optimized is called a
Linear Programming Problem (LPP). G.B. Dantzig,
in 1947, rst developed and applied general problem
of linear programming. Classical examples include
transportation problem, activity-analysis problem,
diet problems and network problem. The simplex
method, developed by GB Dantzig, in 1947, continues to be the most efcient and popular method to
solve general LPP. Karmarkars method developed
in 1984 has been found to be upto 50 times as fast as
the simplex algorithm. LPP is credited to the works
of Kuhn, Tucker, Koopmans, Kantorovich, Charnes
Cooper, Hitchcock, Stiegler. LPP has been used to
solve problems in banking, education, distribution
of goods, approximation theory, forestry, transportation and petroleum.
5.2 FORMULATION OF LPP
In a linear programming problem (LPP) we wish to
determine a set of variables known as decision vari-
ables. This is done with the objective of maximizing or minimizing a linear function of these variables, known as objective function, subject to certain
linear inequality or equality constraints. These variables, should also satisfy the nonnegativity restrictions since these physical quantities can not be negative. Here linearity is characterized by proportionality and additivity properties.
Let x1 , x2 . . . , xn be the n decision unknown variables and c1 , c2 . . . , cn be the associated (constant
cost) coefcients. Then the aim of LP is to optimize
(extremise) the linear function,
z = c1 x 1 + c 2 x 2 + . . . + c n x n
(1)
(3)
chap-5a
B.V.Ramana
5.2
17:59
MATHEMATICAL METHODS
Solution
To LPP is any set of values {x1 , x2 . . . , xn } which
satises all the m constraints (2).
Feasible Solution
To LPP is any solution which would satisfy the non
negativity restrictions given by (3).
Optimal Feasible Solution
To LPP is any feasible solution which optimizes (i.e.
maximizes or minimizes) the objective function (1).
From among the innite number of feasible solutions to an LPP, we should nd the optimal feasible
solution in which the maximum (or minimum) value
of z is nite.
Example 1: Suppose Ajanta clock company produces two types of clocks standard and deluxe
using three different inputs A, B, C. From the data
given below formulate the LPP to determine the number of standard and deluxe clock to be manufactured
to maximize the prot.
Let x1 and x2 be the number of standard and
deluxe clocks to be produced.
Technical coefficients
Input
(Resource)
A
B
C
Profit (Rs)
Standard
Deluxe
2
2
4
2
4
2
0
3
Capacity
20
12
16
chap-5a
B.V.Ramana
17:59
LINEAR PROGRAMMING
such that for any point on this line, the contribution (Prot) (value of z0 ) is same. To determine the
optimal solution, in the maximization case, assigning arbitrary values to z, move the iso-contribution
line in the increasing direction of z without leaving the feasible region. The optimum solution occurs
at a corner (extreme) point of the feasible region.
So the iso-prot line attains its maximum value of
z and passes through this corner point. If the isocontribution line (objective function) coincides with
one of the edges of the polygon, then any point on
this edge gives optimal solution with the same maximum (unique) value of the objective function. Such
a case is known as multiple (alternative) optima case.
In the minimization case, assigning arbitrary values
to z, move the iso-contribution line in the direction
of decreasing z until it passes through a corner point
(or coincides with an edge of the polygon) in which
case the minimum is attained at this corner point.
5.3
Examples:
(a) x1 +3x2 3, x1 +x2 2, x1 , x2 0,
Maximize: z = 1.5x1 + 2.5x2 unbounded feasible region, unbounded solution (can be maximized indenitely)
Fig. 5.1
Range of Optimality
For a given objective function z = c1 x1 + c2 x2 , slope
of z changes as the coefcients c1 and c2 change
which may result in the change of the optimal corner
point itself. In order to keep (maintain) the current
optimum solution valid, we can determine
the range
of optimality for the ratio cc1 or cc2 by restricting the
2
1
variations for both c1 and c2 .
Special Cases:
(a) The feasible region is unbounded and in the case
of maximization, has an unbounded solution or
bounded solution.
(b) Feasible region reduces to a single point which
itself is the optimal solution. Such a trivial solution is of no interest since this can be neither maximized nor minimized.
(c) A feasible region satisfying all the constraints is
not possible since the constraints are inconsistent.
(d) LPP is ill-posed if the non-negativity restriction
are not satised although all the remaining constraints are satised.
Fig. 5.2
(c) x1 + x2 2, x1 , 5x2 10
Maximize: z = 5x2 , x1 , x2 0, (0, 2) is unique
solution, max: z = 10.
(0, 2)
Fig. 5.3
B.V.Ramana
5.4
17:59
MATHEMATICAL METHODS
Fig. 5.4
(2, 0)
(6, 0)
Range of
optimality
=
9
z=
x2
3x1 + x2 21
(assembly) (III)
x1 0 non negative
(IV)
x2 0 constraints
(V)
(testing) (II)
Solution
Space
x1 + 4
x2 =
24
x1
x1 + x 2 9
1
=2
(wiring) (I)
3
2
+ x2
3x 1
Solution: Let x1 be the number of business calculators (BC) produced while x2 be the number of
scientic calculators (SC) produced. Then the objective is to maximize the prot z = 4x1 + 10x2 subject
to the following ne constraints:
x1 + 4x2 24
x2
z=
66
z=
60
z= E
54
z=
28
um
im
pt
O
Increasing z
chap-5a
x1
Fig. 5.5
chap-5a
B.V.Ramana
17:59
LINEAR PROGRAMMING
z
Solution: (a) Rewriting, x2 = 25 x1 10
. Choose
z = 0, 28, 54, 60, 66, then the objective
function passes through the corner points A, B, C,
E, D respectively. Thus the minimum value z = 66
is attained at the corner point D(4, 5). Observe that
maximum of z = 4x1 + 10x2 is 66 and minimum of
z = 4x1 10x2 is 66
i.e., max f (x) = min (f (x)).
(b) If z = c1 x1 + c2 x2 coincides with the straight line
CD: x1 + x2 = 9, then any point on the line segment
CD is an optimal solution to the current problem and
thus has multiple (innite) alternative optima.
(c) Let z = c1 x1 + c2 x2 be the objective function.
Then for c2 = 0, we write this as
c1
z
x1 +
x2 =
c2
c2
The straight line
x1 + 4x2 = 24 rewritten as x2 = 41 x1 + 24
has
4
1
slope 4 and the straight line x1 + x2 = 9 rewritten
as x2 = x1 + 9 has slope 1. Thus range of optimality which will keep the present optimum solution
valid is
c1
1
1
4
c2
For c2 = 4, 1 c1 4
Similarly for c1 = 0, the range of optimality is
1 cc2 4. For c1 = 2, 2 c2 8.
10S + 10Y 80
and X, Y 0
Draw the straight lines
(Potassium)
2X + Y = 12
(1)
X + 2Y = 10
(2)
X+Y =8
(3)
Y
1
A
3
(Unbounded)
Feasible
region
2
B
C
D
3
z
z =5
z =z = 3 = 480 00
8
1 360 0
Fig. 5.6
5.5
(4)
chap-5a
B.V.Ramana
5.6
17:59
MATHEMATICAL METHODS
Fabrication
Assembly
Upholstery
Linoleum
Chair
Desk
15
12
18.75
40
50
56.25
Input
Output
Process Crude A Crude B Gasoline X Gasoline Y
I
5
3
5
8
II
4
5
4
4
Available
time
27,000
27,000
27,000
27,000
4. Minimize
z = 0.3x1 + 0.9x2
subject
to
x1 + x2 800, 0.21x1 0.30 x2 0, 0.03x1
0.01 x2 0, x1 , x2 0
Ans: x1 = 470.6, x2 = 329.4, minimum cost: Rs
437.64.
5. Maximize: z = 30x1 + 20x2 subject to x1 60,
x2 75, 10x1 + 8x2 800.
Determine the optimum (best) product mix of the Ans: x1 = 60, x2 = 25, Max: prot = Rs 2300
Hint: Corner points: A(0, 0), B(60, 0), C(60, 25),
paints that maximizes the total prot for the comD(20, 75), E(0, 75).
pany. Demand for deluxe paint can not exceed
that of standard paint by more than 1 ton. Also
6. Given x1 0, x2 0, x1 + 2x2 8, 2x1 x2
maximum demand of deluxe paint is 2 tons.
2 solve to (a) max x1 (b) max x2 (c) min x1 (d)
min x2 (e) max 3x1 + 2x2 (f) min 3x1 2x2 (g)
Ans: Produce 3 tons of standard and 1.5 tons of deluxe
max 2x1 2x2
paint, making a prot of Rs 2100.
Hint: Corner points: A(0, 0), B(4, 0), C(3, 1.5), Ans: (a) x1 = 8 (b) x2 = 18
(c) x1 = 0 (d) x2 = 0 (e) z
5
D(2, 2), E(1, 2), F(0, 1); OF: Maximize z = 5x1 +
= 24, x1 = 8, x2 = 0 (f) z = 24, x1 = 8, x2 = 0
4x2 subject to
, x1 = 45 , x1 = 18
(g) z = 28
5
5
6x1 + 4x2 24, x1 + 2x2 6,
x1 + x2 1, x2 2, x1 , x2 0.
7. Minimize
z = x1 + x2
x2 0
2x1 = x2 12,
x1 + 6x2 28.
s.t.
x1 0,
5x1 + 8x2 74,
chap-5a
B.V.Ramana
17:59
LINEAR PROGRAMMING
5.7
can
be transformed to an equality
aij xj si = bi
by subtracting a surplus variable Si , which
is non negative. In general, it is more convenient
to work with equations rather than with inequalities. So given any general LPP, convert it to a
standard LPP, consisting of m simultaneous linear equations in "n" unknown decision variables.
Minimize:
z = c1 x1 + c2 x2 + + cn xn (1)
subject to
chap-5a
B.V.Ramana
5.8
17:59
MATHEMATICAL METHODS
Basic solution
{x1 , x2 , , xm } is the solution of the system of equations (2) in which n m variables are set to zero.
Basic variables
are the variables x1 , x2 , , xm in the basic solution.
Basis
is the set of m basic variables in the basic solution.
Non-basic variables
xm+1 , xm+2 , xn are the (n m) variables which
are equated to zero to solve the m equations (2),
(resulting in the basic solution).
Basic feasible solution
is a basic solution which satises the nonnegativity
restrictions, (3) i.e. all basic variables are non negative. (i.e. xj 0 for j = 1, 2, 3, m)
Nondegenerate basic feasible solution
is a basic feasible solution in which all the basic variables are positive (i.e., xj > 0 for j = 1, 2, 3, m)
Optimal basic feasible solution
is a basic feasible solution which optimizes (in this
case minimizes) the objective function (1).
Why Simplex Method
In an LPP with m equality constraints and n variables with m < n, the number of basic solutions is
nc m. For small n and m, all the basic solutions (corner points) can be enumerated (listed out) and the
optimal basic feasible solution can be determined.
Example:
Maximize: z = 2x1 + 3x2 s.t. 2x1 + x2 4, x1 +
2x2 5. Rewriting 2x1 + x2 + x3 = 4, x1 + 2x2 +
x4 = 5. Here m = 2, n = 4, nc m = 4c 2 = 6 The six
basic solutions are: 1. (0, 0, 4, 5), Feasible (F), Nondegenerate (ND) and z = value of O.F = 0
2. (0, 4, 0, -3), NF (non feasible)
3. (0, 2.5, 1.5, 0), z = 7.5 F, ND
4. (2, 0, 0, 3), z = 4, F, ND
5. (5, 0, - 6, 0), NF
6. (1, 2, 0, 0), z = 8,
Feasible nondegenerate and optimal.
However, even for n = 20, m = 10, the number
of basic solutions to be investigated is 1,84,756, a
large part of which are infeasible. It is proved that
the set of feasible solutions to a LPP form a convex
set (the line joining any two points of the set lies in
the set) and the corner (extreme) points of the convex
set are basic feasible solutions. If there is an optimal
solution, it exists at one of these corner points. The
simplex method devised by GB Dantzig is a powerful procedure which investigates in a systematic way
for optimal solution at these corner points which are
nite in number.
For m = 10, n = 20, simplex method obtains the
optimal in 15 steps, thus having an advantage of
92,378 to 1.
chap-5a
B.V.Ramana
17:59
LINEAR PROGRAMMING
Maximize: z = c1 x1 + + cn xn + 0.s1 + +
0.sm .
Thus there are m equations in m + n variables.
Putting (m + n) m = n variables zero we get a
starting basic feasible solution. Take x1 = x2 =
xn = 0. Then the initial solution contains the m
basic variables s1 , s2 , sm . This corresponds to the
corner point origin with value of the objective function zero. Since this is a problem of maximization,
the value of objective function will increase if we
introduce one of non-basic variable xj (j = 1 to n),
into the solution forcing out one of the basic variable.
The obvious choice is the xj with the largest cj . Ties
are broken arbitrarily. The objective equation is written as z c1 x1 c2 x2 cn xn + 0.s1 + +
0.sn = 0
For efcient use, this data is written in the form of
a table known as simplex tableau shown below:
5.9
sm
0
0
s2
0
0
1
Solution
0
b1
b2
amn
s1
0
1
0
xn
cn
a1n
a2n
am2
am1
sm
xj
cj
a1j
a2j
aij
amj
x2
c2
a12
a22
x1
c1
a11
a21
z
1
0
0
Basis
z
s1
s2
Remark
c1-row
s1-row
s2-row
si-row
sm-row
bm
chap-5a
B.V.Ramana
5.10
17:59
MATHEMATICAL METHODS
3. No feasible solution exists when one or more articial variables are present in the basis at a positive
level although the optimality condition is satised. Such a solution is known as pseudo optimal
solution since it satises the constraints but does
not optimize the objective function.
Note: Since articial variables which is forced out
of the basis, is never considered for reentry, the column corresponding to the articial variable may be
omitted from the next simplex tableau.
Two-Phase Method
In the M-method, M must be assigned some specic
numerical value which creates trouble of roundoff
errors especially in computer calculations. The zcoefcient of the articial variable will be of the form
aM + b. For large chosen M, b may be lost and for
small chosen M and small a, b may be present leading
to incorrect results. The two phase method consists
of two phases and alleviates the difculty in the Mmethod.
Phase I
Exactly as in M-method, introduce necessary articial variables to get an initial basic feasible solution.
Solve this augmented problem, by simplex method
to minimize r, the sum of the articial variables. If
r = 0, then all the articial variables are forced out
of the basis. Goto phase II. If r > 0, indicating the
presence of articial variables at non zero level, LP
has no feasible solution
Phase II
The feasible solution of phase I forms the initial basic
feasible solution to the original problem (without any
articial variables). Apply simplex method to obtain
the optimal solution.
chap-5a
B.V.Ramana
17:59
LINEAR PROGRAMMING
= 20
= 12
+ s2
+ s3 = 16
4x1
and x1 , x2 , s1 , s2 , s3 0
Express the objective equation as
z 2x1 3x2 = 0
Then the starting simplex tableau is represented as
follows:
Basis
z
s1
s2
s3
z x1 x2
1 2 3
0 2
4
0 2
2
0 4
0
s1
0
1
0
0
s2
0
0
1
0
s3 Solution Remark
0
0
z-row
0
20
s1-row
0
12
s2-row
1
16
s3-row
Corner points: A(0, 0), B(4, 0), C(4, 2), D(2, 4), E(0,
5). Value of O.F. at these extreme points: zA = 0,
zB = 8, zC = 14, zD = 16, zE = 15
x2
optimum (x1 = 2, x2 = 4)
zD = 16
C
1
x1
5.11
Fig. 5.2
The initial basis consists of the three basic variables s1 = 20, s2 = 12, s3 = 16. The two non basic
variables are x1 = 0, x2 = 0. Note that non basic variables are always equal to zero. Thus this solution
corresponds to the corner (extreme) point A (0, 0) in
the graph. In the simplex tableau all the three basic
chap-5a
B.V.Ramana
5.12
17:59
MATHEMATICAL METHODS
Entering
x2
Solution
S1
20
S2
12
S3
16
i.e.,
2
4
1
2
4
4
1
4
1
4
= (0, 2, 2, 0, 1, 0, 12)
2 0, 21 , 1, 41 , 0, 0, 5 =
= (0, 1, 0, 21 , 1, 0, 2)
New s3 -row = current s3 -row-(0) (new pivot row)
= current s3 -row itself
= 0, 4, 0, 0, 0, 1, 16
Summarizing these results we get the new simplex
tableau corresponding to the new basis (x2 , s2 , s3 ) as
follows. Note that this new basis corresponds to the
corner point E(0, 5) with value of OF as 15.
x1
x2
s1
s2
s3
solution
15
s2
3
4
1
4
1
2
x2
1
2
1
2
x3
16
Basis
Ratio
20 = 5 minimum
4
12 = 6
2
16 = (Ignore)
0
0
4
0
4
20
4
Entering
x1
Solution
Ratio
x2
1
2
10
s2
x3
16
minimum
Therefore, s2 will leave the basis. The pivotal element is one; so pivot row remain the same. The
chap-5a
B.V.Ramana
17:59
LINEAR PROGRAMMING
basic variables.
Basis
Basis
x1
x2
s1
1
2
1
2
1
2
x2
x1
s3
5.13
x1
x2
x3
x4
x5
x6
Solution
s2
s3
Solution
13
1
2
1
2
16
x1
x2
x3
5
53
6
20
3
13
6
5
6
213
30
213
30
13
10
2
5
21
pivot row
Here new z-row = current z-row
= 1, 21 , 0, 43 , 0, 0, 15
21 0, 1, 0, 21 , 1, 0, 2 =
= 1, 0, 0, 21 , 21 , 0, 16
Here new x2 -row = (current x2 row) 21 (pivot row)
= 0, 21 , 0, 43 , 0, 0, 15
(1) 21 , 0, 1, 0, 21 , 1, 0, 2 =
= 1, 0, 0, 21 , 21 , 0, 16
Here new s3 -row = current s3 -row 4(pivot row)
= (0, 4, 0, 0, 0, 1, 16)
4 0, 1, 0, 21 , 1, 0, 2 =
= (0, 0, 0, 2, 4, 1, 8)
Since all the elements in the current z-row are nonnegative, the current solution is optimal. Read the
solution from the tableau as
x2 = 4, x1 = 2, s3 = 8 (basic variables)
s1 = 0, s2 = 0 (non basic variables)
value of O. F is 16.
Note that this solution corresponds to the corner
point D(2, 4). In this second iteration solution moved
from E to D.
Simplex Method: Minimization:
Example 1: Minimize: z = x1 + x2 + x3 subject
to x1 x4 2x6 = 5, x2 + 2x4 3x5 + x6 = 3,
x3 + 2x4 5x5 + 6x6 = 5.
Solution: Fortunately the problem contains already
a starting basic feasible solution with x1 , x2 , x3 as the
x1
x6
1
3
5
3
1
3
5
3
13
6
5
x2
1
3
1
6
1
6
x1
x6
63
30
13
10
2
5
3
10
1
10
+ 4
15
x4
1
5
3
5
1
5
1
0
Optimal
solution:
2
213
O.F
:
.
5
30
x1 =
0
1
0
1
213
, x4
30
13
, x6
10
Unbounded solution:
Example 1: Solve LPP by simplex method.
Maximize: z = 2x1 3x2 + 4x3 + x4 subject to
x1 + 5x2 + 9x3 6x4 2
3x1 x2 + x3 + 3x4 10
2x1 3x2 + 7x3 8x4 0
and x1 , x2 , x3 , x4 0.
Solution: Rewriting in the standard form
x1 5x2 9x3 + 6x4 2
3x1 x2 + x3 + 3x4 10
2x1 + 3x2 7x3 + 8x4 0
Introducting 3 slack variables x5 , x6 , x7 we write the
LPP as
maximize: z = 2x1 3x2 + 4x3 + x4 + 0 x5 + 0
x6 + 0 x 7
subject to
x1 5x2 9x3 + 6x4 + x5
3x1 x2 + x3 + 3x4
2x1 + 3x2 7x3 + 8x4
=2
+ x6
= 10
+ x7 = 0
chap-5a
B.V.Ramana
5.14
17:59
MATHEMATICAL METHODS
x1
x2
x3
x4
x5
x6
x7
Solution
x5
x6
10
x7
x1
x2
x3
x4
x5
x6
x7
Solution
10
11
40
x5
26
14
33
92
x6
10
x7
23
29
70
In the current z-row, x2 has the most negative coefcient 1, so normally x2 should enter the basis.
However, all the constraint coefcients under x2 are
negative, meaning that x2 can be increased indenitely without violating any of the constraints. Thus
the problem has no bounded solution.
M-method:
Example 1: Solve the LPP by M-method
minimize z = 3x1 + 2.5x2
subject to
2x1 + 4x2 40
3x1 + 2x2 50
x1 , x2 0
Solution: Introducing surplus variables x3 , x4 , the
greater than inequations are converted to equations.
Minimize z = 3x1 + 2.5x2 + 0 x3 + 0 x4
subject to
2x1 + 4x2 x3 = 40
3x1 + 2x2 x4 = 50
x1 , x 2 , x 3 , x4 0
In order to have a starting solution, introduce two
articial variables R1 and R2 in the rst and second
equations. In the objective function the cost coefcients for these undesirable articial variables R1 and
R2 are taken as a very large penalty value M. Thus
the LPP takes the following form:
Minimize z = 3x1 + 2.5x2 + 0 x3 + 0 x4 +
+ M R1 + M R 2
(1)
subject to
2x1 + 4x2 x3 + R1 = 40
(2)
(3)
3x1 + 2x2 x4 + R2 = 50
and x1 , x2 , x3 , x4 , R1 , R2 0
The z-column is omitted in the tableau for convenience because it does not change in all the iterations.
Solving (2) and (3) we get
R1 = 40 2x1 4x2 + x3
(4)
R2 = 50 3x1 2x2 + x4
and
(5)
x3
x4
R1
3 + 5M 2.5 6M M
90 M
x1
x2
R2 Solution
R1
40
R2
50
chap-5a
B.V.Ramana
17:59
LINEAR PROGRAMMING
x2
x1
x2
3.5 + 4M
2
1
2
R2
x3
x4
2.5 + 2M
4
1
4
1
2
M
0
1
R1
2.5 6M
4
1
4
1
2
Since 35+4M
is the most positive element in the z2
row, the variable x1 will enter the basis forcing R2 out
since the minimum of the ratios 101 = 20, 30
= 15 is
2
2
x1
x2
x3
x4
7
8
1
4
1
2
3
16
x2
x1
3
8
1
4
R1
3 16 M
8
3
8
1
4
R2
7 M
8
1
4
1
2
Solution
205
4
5
2
15
Since all the elements in the z-row are non positive, the current solution is optimal given by x1 = 15,
x2 = 25 with value of objective function 205
(observe
4
that the articial variables R1 , R2 and surplus variables x3 , x4 are nonbasic variables assuming zero
values. Thus R1 , R2 have been forced out of the
basis).
Two-Phase Method
Example 1: Solve LPP by two-phase method
Maximize z = 2x1 + 3x2 5x3
subject to
x1 + x2 + x 3 = 7
2x1 5x2 + x3 10
and x1 , x2 , x3 0
Solution: Phase I: Introducing a surplus variable
x4 and two articial variables R1 and R2 , the Phase
I of the LPP takes the following form:
Minimize
r = R1 + R 2
(1)
subject to
x1 + x 2 + x 3 + R 1 = 7
(2)
2x1 5x2 + x3 x4 + R2 = 10
(3)
and x1 , x2 , x3 , x4 , R1 , R2 0.
From (2), R1 = 7 x1 x2 x3
(4)
5.15
Solution
25 + 30M
40
50
(5)
x1
x2
x3
R1
R2
x4
Solution
17
R1
R2
7
10
= (3 4 2 0 0 1 17) 3 1 25 21 0 21 21 5
7 1
= 0 2 2 0 23 21 2
Here the new R1 -row:
= (1 1 1 1 0 0 7) 1 1 25 21 0 21 21 5
7 1
= 0 2 2 1 21 21 2
The new simplex table with R1 and x1 as the basic
variables is shown below:
x1
x2
x3
R1
R2
7
2
7
2
5
2
1
2
1
2
1
2
Basis
R1
R2
x4
3
2
1
2
1
2
1
2
1
2
1
2
1
0
Solution
2
7
5
chap-5a
B.V.Ramana
5.16
17:59
MATHEMATICAL METHODS
5
25
2
7
2
= 47 . (The
1 4
0 1 17 27 1
7 7 7
Here
new r-row:1 7
= 0 27 21 0 3
2 2 0 1 17 27 17 17 47
2 2
= (0 0 0 1 1 0 0)
Here
new x1 -row:
= 1 25 21 0 21 21 5
2 0 1 17 27 17 17 47
= 1 0 67 57 17 17 45
7
The next simplex tableau of the second iteration with
x1 and x2 as the basic variables is given below.
Basis
x1
x2
x3
R1
R2
x4
1
7
6
7
2
7
5
7
1
7
1
7
1
7
1
7
4
7
45
7
x2
x1
Solution
Meat
x2
Potatoes Cabbage
x3
x4
Milk
x5
chap-5a
B.V.Ramana
17:59
LINEAR PROGRAMMING
1,
0, 53 , 23 F, ND.
3. Find the optimal solution by enumeration
Max: z = 5x1 + 10x2 + 12x3
s.t. x1 , x2 , x3 0,
15x1 + 10x2 + 10x3 200, 10x1 + 25x2 +
20x3 = 300
(7.27, 9.1, 0, 0), z = 127 27
(5, 0, 12.5, 0), z = 175
(30, 0, 0, 250), NF
(0, 20, 40, 0), NF
(0, 12, 0, 80), z = 120
(0, 0, 15, 50), z = 180
(1) (2) (5) are F, ND:
(6) is optimal solution;
4. Find the optimal solution by enumeration
Ans: 1.
2.
3.
4.
5.
6.
(0, 0, 4, 5), z = 0, F, ND
(0, 4, 0, 3) NF
(0, 2.5, 1.5, 0), z = 7.5, F, ND
(2, 0, 0, 3), z = 4, F, ND
(5, 0, 6, 0), NF
(1, 2, 0, 0), z = 8, F, ND, optimal.
Ans: x1 =
15
, x2
4
= 43 , z =
33
4
16
, x4
19
5
, x7
19
126
,z
19
83
19
Ans: x1 = 3, x2 = 23 , z = 21
7. Max: z = x1 + 2x2 + x3 s.t. x1 , x2 , x3 0,
2x1 + x2 x3 2; 2x1 + x2 5x3 6;
4x1 + x2 + x3 6.
Simplex Method
Input
quantity
A
B
C
Prot
5.17
Capacity
100
80
50
Ans: x2 = 4, x3 = 2, x6 = 0, z = 10
(Note: Degenerate solution)
8. Max: z = x1 + 3x2 2x3 s.t.
3x1 x2 + 2x3 7, 2x1 4x2 12;
4x1 3x2 8x3 10; x1 , x2 , x3 0.
Ans: x1 = 4, x2 = 5, z = 11
9. Max. z = 6x1 + 9x2 s.t. x1 , x2 0, 2x1 + 2x2
24; x1 + 5x2 44, 6x1 + 2x2 60
Ans: x1 = 4, x2 = 8, x6 = 20, z = 96
Multiple optima:
10. Minimize: z = x1 x2 s.t. x1 , x2 0
x1 + x2 2, x1 x2 1, x2 1
Ans: x1 = 23 , x2 = 21 , z = 2
chap-5a
B.V.Ramana
5.18
17:59
MATHEMATICAL METHODS
x1 , x2 0, x1 Ans: x1 = 3, x3 = 4, x6 = 4, z = 9
2 9
17
13. Min: z = 3x1 2x2 s.t. x1 , x2 0, x1 x2 Ans: 5 , 5 , 1, 0 , z = 5
1, 3x1 2x2 6.
22. Minimize z = 7.5x1 3x2 s.t. x1 , x2 , x3
Ans: Unbounded solution
0, 3x1 x2 x3 3; x1 x2 + x3 2
Note: In the 3rd simplex tableau, x3 having the
Ans: x1 = 45 , x2 = 0, x3 = 43 , z = 75
8
most positive value (12) in z-row should normally
enter the basis. But all the entries under x3 are 23. Minimize z = 3x1 + 2x2 , s.t. x1 , x2 , 0, x1 +
negative. So OF can be decreased indenitely.
x2 2; x1 + 3x2 3, x1 x2 = 1
M-Method
14. Minimize: z = 4x1 + 2x2 s.t. x1 , x2 0, 3x1 +
x2 27; x1 x2 21, x1 + 2x2 30.
Ans: x1 = 3, x2 = 18, z = 48
15. Max: z = x1 + 2x2 + 3x3 x4 s.t.
x1 + 2x2 + 3x3 = 15, 2x1 + x2 + 5x3 = 20,
x1 + 2x2 + x3 + x4 = 10, x1 , x2 , x3 , x4 0
Ans: x1 = x2 = x3 = 25 , x4 = 0, z = 15
Ans: x1 = 23 ; x2 = 21 , z =
15
; x3
4
= 45 , x5 = 30, z =
125
4
11
2
10
,z
21
64
21
B.V.Ramana
17:59
LINEAR PROGRAMMING
m
n
cij xij
(1)
Supply
Sources
a1
S1
a2
S2
am
Sm
c11; x11
D1
n
S1
xij = ai ,
D2
b2
Dn
bn
xij = bj , bj > 0; j = 1, 2, . . . , n
(3)
and
Dj
c1j
x1j
Dn
ai
c1n
x1n
a1
a2
ai
Si
Sm
cm1 cm2
xm1 xm2
cmj
xmj
cmn
xmn
bj
b1
bj
bn
b2
am
S ai =
S bj
(4)
c11 c12
x11 x12
(2)
i=1
xij 0
D2
S2
Destination constraint:
i=1
b1
ai > 0; i = 1, 2, . . . m
ai =
D1
Destinations
j =1
m
Demand
The system of equations (1) to (4) is a linear programming problem with m + n equations in mn variables. The transportation problem always has a nite
minimum feasible solution and an optimal solution
contains m + n 1 positive xij s when there are m
origins and n destinations. It is degenerate if less than
m + n 1 of the xij s are positive. No transportation
problem has ever been known to cycle.
Table for Transportation Problem
m
Destinations
cmn; xmn
i=1 j =1
source constraint :
5.19
Sources
chap-5a
bj .
(5)
j =1
chap-5a
B.V.Ramana
5.20
17:59
MATHEMATICAL METHODS
(b) Row-minimum
Identify the minimum cost element c1k in the rst
row. (Ties are broken arbitrarily). Allocate as much
as possible to cell (1, k). If a1 bk then x1k = a1 so
move to the second row after changing bk to bk a1 .
Identify the minimum element in second row and
allocate as much as possible. Continue this process
until all rows are exhausted. If a1 > bk then x11 = bk ,
change a1 to a1 bk , and identify the next smallest
(minimum) element in the rst row allocate, continue
the process until the rst row is completely satised.
(c) Column-minimum
chap-5a
B.V.Ramana
17:59
LINEAR PROGRAMMING
Step III.
(a) A starting solution is obtained when exactly one
row or one column with zero supply or demand
remains uncrossed out. Stop.
(b) Determine the basic variables in an uncrossed
row (column) with positive (non zero) supply
(demand) by the least-cost method. Stop.
(c) Determine the zero basic variables in all the
uncrossed out rows and columns having zero supply and demand by the least cost method. Stop.
(d) Otherwise, go to step 1, recalculate the row and
column penalties and go to step II.
Note: Vogels method, which is a generalization of
the matrix minimum (least cost method) gives better
solution in most cases than all the other methods
listed above.
Method of Multipliers
The optimal solution to the transportation problem is obtained by iterative computions using the
method of multipliers (also known as U V -method
or stepping-stone method or MODI (modied distribution) method). First of all, obtain a starting initial
basic feasible solution containing m + n 1 basic
variables (by any one of the above methods).
Step I: Introduce unknowns ui with row i and vj with
column j such that for each current basic variable xij
in the tableau,
ui + vj = cij
is satised. This results in m + n equations in m + n
unknowns. Assume that u1 = 1 (or u1 = 0). (Instead
of u1 , any other variable ui or vj can be chosen as
zero or one, resulting in the same optimal solution
but with different values in the tableau). Solving the
equations in ui , vj we get ui for i = 1 to m and vj
for j = 1 to n.
Step II. For each non basic variable, compute
cij = ui + vj cij
Step III: (a) If cij 0 for any i and j (i.e. for all
non basic variables), stop. The current tableau gives
the optimal solution with minimum cost.
5.21
chap-5a
B.V.Ramana
5.22
17:59
MATHEMATICAL METHODS
S1
S2
S3
(a) NWCR:
D1
S1
Starting Solution:
Example 1: Obtain a (non articial) starting basic
solution to the following transportation problem
using (a) North west corner rule (b) Row-minimum
(c) Column minimum (d) Least cost (Matrix minima)
D2
0
S2
D3
4
4
0
S3
6
7
8, 1
5
6, 5
D2
D3
5
0
S3
8, 1
Solution:
S2
6, 1
6, 5
chap-5a
B.V.Ramana
17:59
LINEAR PROGRAMMING
S2
8, 1
4
5
5
2
6, 1
6, 5
6
7
Method of Multipliers
D3
S3
D1
Cost: 7 0 + 1 2 + 5 4 + 6 2 = 34
This is a degenerate solution containing 4 basic
variables.
S1
S2
S3
D2
0
S2
D1
2
6
6, 1
25
S2
Column
penalties
D3
S1
S2
Row penalties
2
1
7
1
8 1
10
0
25
10
25
10
30
20
50
35
100
6 1
6
5
4P
6 1
1
2
Cost: 7 0 + 2 1 + 3 5 + 2 1 + 0 5 = 19
Row penalties
30
10
4
20
10
3P
2P2P
0
25 50 25
30
35
20 10 100
2
10
ai
S2
S3
D2
S1
1
D4
2P 2P
S3
Column
penalties
D3
4
30
0
20
S3
bj
D2
ai
D2
D4
10
S1
D1
D3
8, 1
5
1
7
bj
D2
D3
4
S3
5.23
D3
D4
20
10
0
25
10
0
25
chap-5a
B.V.Ramana
5.24
17:59
MATHEMATICAL METHODS
Basic variable
x13
x14
x34
x32
x23
x21
solution
v3 = 1
v4 = 1
u3 = 1
v2 = 1
u2 = 2
v1 = 2
To summarize u1 = 1, u2 = 2, u3 = 1
v1 = 2, v2 = 1, v3 = 1, v4 = 1
Now using ui and vj the non basic variables are
calculated as
xij = ui + vj cij
Thus
Nonbasic
variable xij
x11
x12
x22
x24
x31
x33
Value
ui + vj cij
u1 + v1 c11
u1 + v2 c12
u2 + v2 c22
u2 + v4 c24
u3 + v1 c13
u3 + v3 c33
= 1 2 3 = 4
=1+11=1
=2+12=1
= 2 + 1 4 = 1
= 1 2 2 = 5
= 1 1 5 = 7
u1 = 1
S1
u2 = 2
S2
u3 = 1
S3
bj
D2
10
25
D3
D4
1
2
0
10 q
1 20
2
4
1
1 10
1
5 +q 0
0
7 25
30
S1
u2 = 2
S2
u3 = 0
S3
D2
D3
D4
ai
3
1
2
0
20
4 10
2
0
4
1
10
2
0 10
5
2
0
0
4 15
6 35
bj
10
25
30
30
20
50
35
ai
30
v1 = 2 v2 = 1 v3 = 1 v4 = 1
3P
q
4
0
10
2 q
5 25
x22 = 25 0
Since for all non basic variables x11 , x14 , x22 , x24 ,
x31 , x33 the values (in the southeast) of ui + vj cij
are all negative, the current table is the optimal. The
optimal solution with least cost is (10 1) +(20
0) +(10 0) +(10 1) +(15 0) +(35 0) = 20.
20
50
Suppressing
the working details we get the optimal solution in 3
iterations.
3
0
35
1
2
5
2
10
2 30
20
4 20
15
0 50
35
20
10
15
5
0
25
5
15
35
30
15
35
Associated cost
= (10 3) + (20 1) + (5 2) + (15 1)+
+ (15 5) + (35 0) = 150
chap-5a
B.V.Ramana
17:59
LINEAR PROGRAMMING
v2 = 0 v3 = 1
1
0
20
0
2
1
5 + 15
10
0
u2 = 2
u3 = 6
7
4
8
0
35
0
3
10
20
0
4
2
2 +
5
1 P 0
q
6
2
1
6 20
5
0
5
10
1
1
10
1 10
P 0
2 q
4
2
0
0
10
2
0
0
20
Plant
8
0
0
2
+
1
1
4
2
0
3
1
2
4
0
1
10
10
0
0
P1
600
700
400
P2
320
300
350
P3
500
480
450
Solution:
1
4
2
0
10
35
City
c2
c3
P1
600
700
400
25
P2
320
300
350
40
P3
500
480
450
70
1000 1000
13
P4
c3
c1
15
4
c2
35
20
2
2
0
c1
35
15
City
1
4
v4 = 6
2
4
5
2 P 0
q
15
6
6
5.25
chap-5a
B.V.Ramana
5.26
MATHEMATICAL METHODS
c1
c3
700
Row penalties
400
25
320
300
350
500
480
450
25
1000
1000
42
30
23
P3
P4
c2
600
P1
P2
17:59
13
17
36
23
Column
penalties
180
180
180
P
200P 100
25
40
17
20
20
30
30
20
13
MP
P1
u1 = 0
180
P
P2
u2 = 2
u1 = 0
P1
u2 = 129
P2
u3 = 51
P3
u4 = 551
P4
c2
600
151
320
23
500
0
1000
13
36
25
30
4
1
150
3
4
99
4
2
2
99
1 100
99
q
6
1 200
99
200
+q
1
u4 = 0
T4
u5 = 97
D5
150
Solution: The entire supply of 300 units is transhipped from nodes P1 and P2 through T3 and T4
ultimately to destination nodes D5 and D6 . Here P1 ,
P2 are pure supply nodes; T3 , T4 , D5 are transhipment nodes; D6 is pure demand node. The transhipment model gets converted to a regular transportation
problem with 5 sources P1 , P2 , T3 , T4 , D5 and 4 destinations T3 , T4 , D5 and D6 . The buffer amount B =
total supply ( or demand) = 100 + 200 = (or 150 +
300
92
92 300
0
5
8
P
300
q
2
q
92
90 300
99
99
0
1
150
150
300
195
196
90
3
300
450
150
u1 = 0
p1
v1 = 1
t3
t4
d5
d6
p2
t3
t4
d5
99
4
2
94
99
100
3
200
T3
D6
99
300
13
u3 = 91
40
Transhipment Problem
100
D5
4
c3
700
400
271 25
300
350
17
80
480
450
25
5
1000
M
ve
20
42
30
T4
v4 = 98
1
100
v3 = 97
T3
50
v2 = 0
200
q
0
q
P 2
3
2
99
103
300
+q
1
0
0
300
q
99
104
300
99
93 100
99
91 200
92
6
99
300
92 300
q
5
8
0
2 300
+q
0
1
150
150
300
150
150
chap-5a
B.V.Ramana
17:59
LINEAR PROGRAMMING
t3
0
0
p1
t3
t4
t4
d5
d6
99
99
2
2
92
99
91
99
2 200
0
1
200
0
0
d5
100
4
99
104
300
100
150
2
1
150
450
10
2
200
300
300
9
2
10
2
0
11
9
2
S1
S2
S3
D2
D3
1
3
9
6
10
10
2
3
6
14
11
Solution: To transform this problem to a minimization, subtract all the cost entries in the matrix from
the largest cost entry 8. Then the relative loss matrix
is
12 1 4P
14
12 1 4P
14
11
0
11
4
8
9
8
1
10
1
2
14
3P
11
2
Finally
3
1
11
12
14
Maximization:
D1
3P
11
150
12
11
1
11
300
0
92
8
200
99
105
300
91
99
92
6
100
9
2
1
100
p2
5.27
14
6
5
0
11
6
4
chap-5a
B.V.Ramana
5.28
17:59
MATHEMATICAL METHODS
Degeneracy
D1
0
S1
S2
(i)
2
S3
D3
4
8
5
6
10
10
(iii)
D1
0
S1
1
2
S2
5
1
S3
S2
D1
D2
D3
S3
0
4
3
0
1
3
1
3
5
e
10
20
13
12
7 10
8 20
15
9 30
14
0 40
12
19 50
60
60
20
12
14
4
11
10
0
S1
11
10
u1 = 1
12
10
D3
4
(ii)
7
chap-5a
B.V.Ramana
17:59
LINEAR PROGRAMMING
5.29
20
11
12
20
14
16
18
15
25
5
60
50
40
20
OF:
5. Solve the following TP by method of multipliers by obtaining the starting solution by (a) NWC
rule (b) Least-cost method (c) Vogel approximation method. State the starting solution and the
corresponding value of OF.
D1
30
20
40
30
10
50
50
S1
75
S2
20
S3
D3
D4
20
11
12
20
14
16
18
25
D2
10
15
15
15
25
10
15
Ans. x11 = 20, x13 = 10, x23 = 20, x24 = 10, x25 =
Ans. Starting solution and associated OF (a) x11 =
20
5, x12 = 10, x22 = 5, x23 = 15,
x32 = 40, x35 = 10, x36 = 25, x45 = 20 OF:
x24 = 5, x34 = 10, OF: 520
430
(b)
x12 = 15, x14 = 0, x23 = 15, x24 =
3. Solve the above problem 2 (ii) by obtaining the
10, x31 = 5, x34 = 5, OF: 475
initial solution by (a) row minimum (b) col(c)
x12 = 15, x14 = 0, x23 = 15, x24 =
umn minimum (c) matrix minimum (d) Vogels
10, x31 = 5, x34 = 5, OF: 475
method (e) compare the number of iterations
(d) Solution by UV method
required in each of these methods including the
x12 = 5, x14 = 10, x22 = 10, x23 =
north west corner rule.
15, x31 = 5, x34 = 5, OF: 435
Ans. Optimal solution and value of OF is same as in 2
6. Solve the TP (use VAM)
(ii) above for (a) (b) (c) (d). The number of iteraD1 D2 D3 D4
tions required are 7 in NWCR, 1 in row minimum
2 in column minimum, 1 in matrix minimum, 1
21 16
25
13 11
S1
in Vogels method.
4. Solve the TP by UV-method obtaining initial
solution by
(a) NWC rule
S2
17
18
14
23 13
S3
32
27
18
41 19
10
12
15
chap-5a
B.V.Ramana
5.30
17:59
MATHEMATICAL METHODS
10
11
11
11
10
5
6
2
9
D1
D2
D3
S1
7 10
S2
80
42
26
81 44
90
40
66
60 33
23
31
16
Transhipment Problem
11. Solve the following transhipment problem
30
D1
1000
D1
D2
D3
D4
11
20
S2
21
16
10
12 40
S3
12
18
9 70
25
35
40
6
D2
2
P2
900
4
5
T2
3
9
D3
500
S1
30
T1
1200
P1
Hint: Obtain the relative loss matrix by subtracting all the entries of the cost matrix from the
largest entry 90.
Unbalanced TP:
800
50
chap-5a
B.V.Ramana
17:59
LINEAR PROGRAMMING
T2
D1
D2
D3
B 800+B 900+B
1000
1200
B
B
B
minimized. Thus the assignment problem is an integer linear programming problem. This combinatorial problem has n! number of possible assignments
which can be enumerated for small n. Even for n =
10, (n! = 3,628,800) the enumeration becomes very
time consuming and cumbersome. However the solution to the assignment problem is obtained by a simple method known as the Hungarian method or
Floods technique.
500
5.31
chap-5a
B.V.Ramana
5.32
17:59
MATHEMATICAL METHODS
Contractor
Jobs
120 150
75
90 100
140
80
90
85 170
50
40
40
70 110
75
65
45
70
110
90
2. Maximization case:
The maximization problem can be converted to a
minimization problem by subtracting all the entries
of the original cost matrix from the largest entry (of
the original cost matrix). The transformed entries
give the relative costs.
70 110
35
20
10
90
40
50
15
80
20
25
25
60
50 100
45
10
3. Alternative Optima:
The presence of alternative optimal solutions is indicated by the existance of a row or column in the nal
TOC matrix with more than one zero cells.
4. Unbalanced Problem:
When the cost matrix is rectangular, a dummy row
or a dummy column added makes the cost matrix a
square matrix. All the costs cij associated with this
dummy row (or column) are taken as zeros.
1
2
3
4
5
A
60
75
0
25
50
B
100
25
0
25
40
Toc Matrix
C
D
25
10
35
0
0
0
5
0
90
35
E
0
65
25
0
0
chap-5a
B.V.Ramana
17:59
LINEAR PROGRAMMING
A
55
70
0
20
45
B
95
20
0
20
35
C
20
30
0
0
85
D
10
0
5
0
35
E
0
65
25
0
0
A
35
50
0
20
25
B
75
0
0
20
15
C
0
10
0
0
65
D
10
0
25
20
35
E
0
65
45
20
0
Here n = 4 < m = 5
Optimal Toc matrix
1
2
3
4
5
A
25
50
0
10
15
B
65
0
0
10
5
C
0
20
10
0
65
D
0
0
25
10
25
E
0
75
55
20
0
n=5=m=5
Ist optimal assignment: choose a row (or column)
containing only one zero. Choosing so the rst column, make an assignment. Thus
1
2
3
4
5
A
25
50
0
10
15
B
65
0
0
10
5
C
0
20
10
0
65
D
0
0
25
10
25
E
0
75
55
20
0
5.33
A
25
50
0
10
15
B
65
0
0
10
5
C
0
20
10
0
65
D
0
0
25
10
25
E
0
75
55
20
0
A
25
50
0
10
15
B
65
0
0
10
5
C
0
20
10
0
65
D
0
0
25
10
25
E
0
75
55
20
0
230
0 280
chap-5a
B.V.Ramana
5.34
17:59
MATHEMATICAL METHODS
to one man.
Jobs
85
Men
J1
J2
J3
J4
170
230
M1
120
400
115
M2
M3
TOC matrix
A
85
170
230
285
n=2<m=3
Revised TOC matrix
Jobs
A
Men
J1
J2
J3
J4
90
M1
165
225
M2
280
M3
M4
J1
J2
J3
J4
n=3=m=3
Optimal assignment: A3, B1, C2
A
165
225
280
TOC matrix
C
M1
90
M2
M3
M4
n=3<m=4
J2
J3
J4
M1
M2
M3
M4
n=4=m=4
Optimal assignment
J1
J2
J3
J4
M1
M2
M3
M4
chap-5a
B.V.Ramana
17:59
LINEAR PROGRAMMING
M 1 J4 , M 2 J1 , M 3 J2 , M 4 J3
Thus the job J3 is not assigned. The minimum
amount of time taken to accomplish all the three jobs
is 4 + 5 + 7 = 16 hours.
Persons M1
P1
P2
P3
P4
5
7
9
7
Machines
M2
M3
5
4
3
2
2
5
6
TOC Matrix
M4
2
3
Example 4: Assignment with restrictions: The following matrix consists of cost (in thousands of
rupees) of assigning each of the four jobs to four
different persons. However the rst person can not
be assigned to machine 3 and third person can not be
assigned to machine 4.
(a) Find the optimal assignment to minimize the cost
(b) Suppose a 5th machine is available the assignment costs to the four persons as 2, 1, 2, 8, respectively. Find the optimal solution
(c) Is it economical to replace one of the existing
machines by the new (5th) machine
(d) In such case which machine is to be replaced
(unused). (A dash indicates that assignment is not
possible because of the restrictions imposed)
Solution: (a) Since rst person can not be assigned
to machine 3 a prohibitive (penalty) cost is imposed,
denoted by . Thus the cost matrix is
M1
M2
M3
M4
P1
P2
P3
2
5
P4
M1
M2
M3
M4
P1
P2
P3
5
6
2
0
0
2
P4
Row matrix
5.35
Revised TOC
n=3<m=4
Optimal assignment
n=3<m=4
M1
M2
M3
P1
P2
P3
P4
M4
P1 to M4 , P2 to M3 , P3 to M2 , P4 to M1
minimal cost: 2 + 2 + 3 + 7 = 14
(b) Introducing the 5th machine, the new cost matrix
is
M1
M2
M3
M4
M5
P1
P2
P3
P4
P5
LM 3
MM
MM
MN
6
7
5
0
3 0 0
3 1 2 0
1 3 0
0 4 5 6
0 0 0 0
n=4<m=5
PQ
PP
PP
OP
P1
P2
P3
P4
P5
optimal matrix
M1 M2 M3 M4 M5
3
4
0
0
1
5
3
0
0
6
1
0
2
4 0
5
3
4
0
0
1
1
0
n=5m=5
Optimal assignment:
P1 to M4 ; P2 M3 , P3 M5 , P4 M2 ; P5
M1 Minimum cost: 2 + 2 + 2 + 2 = 8
(c) With the introduction of 5th machine the cost
has come down from 14 to 8. So it is economical to
introduce 5th machine.
chap-5a
B.V.Ramana
5.36
17:59
MATHEMATICAL METHODS
J2
P1
P2
P3
P4
Persons
EXERCISE
J3
J4
10
11
A
380
210
260
Machine
B
C
610 330
380 415
210 300
D1
D2
D3
O1
20
27
30
O2
10
18
16
O3
14
16
12
Machine
1
2
3
4
5
1
5
2
3
6
7
2
11
4
12
14
9
3
10
6
5
4
8
4
12
3
14
11
12
5
4
5
6
7
5
Ans. M1 J3 ; M2 J5 ; M3 J4 ; M4 J2 ; M5 J1 , Maximum
cost: 50
Ans. O1 to D2 , O2 to D1 ; O3 to D3
Total minimum cost: 49
3. Find the optimal assignment which maximizes
the total cost in the above problem 2.
Ans. O3 to D1 , O2 to D2 , O1 to D3 , maximum cost: 62
Solve the following assignment problem for
minimum cost
4.
Job
Jobs
Person
J1
J2
J3
P1
15
10
P2
15
10
P3
10
12
M1
M2
M3
M4
T1
18
26
17
11
T2
13
28
14
26
T3
38
19
18
15
T4
19
26
24
10
Ans. M1 to T2 ; M2 to T3 ; M3 to T1 ; M4 to T4 , minimum
total time = 59
B.V.Ramana
17:59
LINEAR PROGRAMMING
5.37
20
13
M2
25
18
13
10
M3
31
23
18
15
M4
45
40
23
21
Ans. Four optimal assignments all with the same minimum total cost: 76.
(i) M1 J1 ; M2 J4 ; M3 J2 ; M4 J3 .
(ii) M1 J2 ; M2 J1 ; M3 J4 ; M4 J3 .
(iii) M1 J1 ; M2 J2 ; M3 J4 ; M4 J3 .
(iv) M1 J4 ; M2 J1 ; M3 J2 ; M4 J3 .
Jobs
Men
J1
J2
J3
J4
J5
M1
M2
M3
M4
L1
18
L2
15
L3
16
L4
13
16
11
15
10
12
Men
chap-5a
M1
M2
M3
M4
A
62
71
87
48
B
78
84
92
64
C
50
61
111
87
D
101
73
71
77
E
82
59
81
80
Machines L1
L2
L3
L4
M1
12
12
M2
15
20
M3
115
Ans. M1 to L2 or L4 ; M2 to L3 , M3 to L1
Dummy (ctitious) machine M4 is assigned
to location L4 or L2 .
Minimum cost: 9 + 13 + 4 = 26