Академический Документы
Профессиональный Документы
Культура Документы
HDMC - 5
INDEX
1 OR Introduction CDM/OR/Intro 1
2 Problem Formulation CDM/OR/PF 11
3 Linear Programming CDM/OR/LP 17
4 LP-Model Building and Graphical CDM/OR/MBGM 21
Method
5 Sensitivity Analysis CDM/OR/SA 33
6 Goal Programming CDM/OR/GP 43
7 Transportation Model Concept and CDM/OR/TN 59
Finding a Basic Feasible Solution
8 Transportation Problems Finding an CDM/OR/Modi 75
Optimal Solution MODI method.
9 Degeneracy CDM/OR/Degen 97
10 Transhipment Model CDM/OR/Tn Model 101
11 Assignment Model CDM/OR/AM 109
12 Travelling Salesman Model CDM/OR/TSM 123
13 Network Model CDM/NWM 131
14 QM for Windows CDM/OR/QM 153
General
Definition
Historical Perspective
4. During the Second World War, the British and American forces
realised that military knowledge by itself was not adequate to analyse
military systems for finding the best or optimum solutions to their tactical
problems. Mathematicians and scientists from various disciplines were
attached to the military staff in these two countries. Some examples of type
of work done by these scientists are at Appendix. The usefulness of their
work was acknowledged, and towards the end of the Second World War this
new discipline came to be known as Operational Research or Operational
Analysis.
2
CDM/OR/Intro
6. On the other hand, military activity took a back seat with the major
concern being to de-mobilise rather than equipping and preparing for the
next war. OR activity in the defence services went into the background for
the next two decades.
Planning Problems
Systems
Models
11. A model is a simplification of real life. There are broadly three types
of models; physical or iconic models, analogue models and mathematical
models. Physical models look like what they represent, e.g. aircraft and tank
models. In analogue models, certain characteristics are represented by
convenient substitutions like colours and symbols, e.g. map which is an
analogue model of terrain. Mathematical models are a set of equations used
to represent the system of inquiry e.g. if X is the number of personnel
required to operate a weapon system and there are N such weapon
systems, then the total number of personnel required to operate it would be
XN. This is a linear function and may be represented by the equation for a
straight line.
12. Initially, improvements were thought of, tried and tested by a trial and
error method in real life situations. But today in the atomic age, actual trials
would be catastrophic in many cases. Therefore, trials today are carried out
on models on the basis of which predictions about real life are made.
Mathematical models are extensively used in the field of OR.
Characteristics of OR
OR Methodology
19. Data Collection. This is normally a demanding area for any study. A
mass of information is available but it may not be the right kind of information
needed. In any case, it will seldom be in the form in which it is needed by
the study team. The OR worker, must, therefore, be prepared to go out to
the field and collect data, or if required, carry out trials and generate data.
The organisation must also realise and accept the additional burden of
sifting the data and giving the information in the form in which it is required
and also to provide any assistance for trials in generation of data, if needed.
The quality of the results can only be as good as the reliability of the data
provided.
20. Model Building. A model cannot represent all aspects of a real life
system but can be made to represent certain characteristics being tested. A
model, as such, is a simplification of a real life system and a real life system
may require a number of models. A model must behave like the real life
system in the characteristics being tested, and thus the need and importance
of validation of models.
21. To enable the OR worker to get a better insight into the real life
system, very close and constant liaison with the staff is essential. A
knowledgeable person from the organisation or system under study, forming
a full-time member of the study, goes a long way in successful completion
and implementation of a study.
5
CDM/OR/Intro
22. Pay Off Matrix. At this stage the basic approach is to list
alternatives among which a choice (decision) has to be made, and associate
a value with each alternative that measures what the organisation is really
trying to achieve. There may be several values for each alternative
depending upon the state(s) of Nature (factors not under the control of the
decision-maker e.g. enemys courses of action) under which the system is
operating. The alternative giving the maximum value to the organisation is
chosen. In short, the OR analyst presents the alternatives in a quantified
manner to the decision-maker. See table below.
States of Nature
Own Alternatives
S1 S2 S3
A1 V 11 V 12 V 13
A2 V 21 V 22 V 23
A3 V 31 V 32 V 33
Techniques of OR
26. Linear Programming (LP). This is the most commonly used technique
and it deals with allocation of scarce resources in an optimal manner so as
to maximise effectiveness or minimise cost e.g. best mix of weapons, units,
obstacles etc., to achieve a specified objective. An LP model can handle
any number of variables and their constraints simultaneously. Special
models, as variations of LP, have been developed to solve certain specific
types of problems. These are: -
37. Decision Rules. These deal with the risk taking profile of a
commander, based on which he takes a decision under situations of
uncertainty. A number of rules have been developed to cater for different
risk taking profiles.
39. Some of the techniques given above have been well developed
whereas others are still in various stages of their development. The list of
techniques discussed above is not exhaustive; there are a number of other
techniques as well.
Military Uses of OR
40. Some of the military uses of OR have been given as examples in the
preceding paragraphs. Major uses to which OR can be put, in the
operational areas of Defence Services, are: -
Conclusion
41. OR is a fairly new discipline, which has been used to great advantage
both in the military as well as in business by advanced countries and in the
developing countries in the recent past. It has large potential for application
both in the Defence Services and civil. It should not, however, be treated as
a panacea for all problems and its potential and limitations must be properly
understood. It has broad-based applications in decision making at all levels,
but it can only deal with elements which are quantifiable. It is a growing
discipline. Personality of commanders, which could not be brought into the
analysis till recently, is now being included in some areas being analysed
through war gaming, which employs real life commanders for decision
making.
9
CDM/OR/Intro
Appendix
(Refers to Para 9)
Coastal Command
Convoy Tactics
3. The studies of convoy tactics are among the best known OR works
from World War II. The work was initiated in connection with the presence of
an operational analyst at a meeting at No 10 Downing Street during the
autumn in 1942. On this occasion, the problem considered was the ideal
size of a convoy and the escort ships. Consequent to this analysis a
decision was to be taken for best utilization of the limited shipyard capacity
to build load carrying/escort vessels. For a quantitative comparison between
the advantages of building one or the other type of vessel, it was necessary
to work out an optimum mix for a convoy.
6. The third result, i.e. the decrease in losses for large convoys, turned
out to be very important. The statistical data indicated that the size of the
convoy, i.e. the average number of vessels sunk from large convoys was
similar to that of vessels sunk from the small convoys. This was contrary to
the general opinion according to which small convoys were considered
comparatively safer. In order to investigate the correctness of the result
further-it might have been accidental or due to statistical fluctuations - the
OR group analysed the different factors influencing the outcome of
submarine attacks against convoys, such as submarine attack tactics and
the means for submarines to penetrate the convoy screen. On the basis of
these studies, theoretical model was worked out which expressed the
relation between convoy size, number of escort units and risk of sinking of
the merchant vessels. This model verified and explained the result. The
admiralty was convinced by this analysis, and new tactical rules prescribing
increased convoy size were issued.
PROBLEM FORMULATION
Introduction
1. Modern leaders probably face fewer life and death decisions than
their prehistoric counterparts, but the pace and complexity of today's
decision-making are surely greater. Information, requests and orders are
transmitted swiftly anywhere on our planet. Informed groups are ready to
line up on both sides of any issue under consideration. Laws, traditions and
political pressures influence the selection of options available. Advances in
technology offer an ever expanding choice of resources and methods to
accomplish objectives. These and many other factors challenge decision
makers at every level.
2. The challenge for better decision making has led to the development
of concepts and techniques which have improved problem solving at all
levels through:-
Scientific Approach
An Example
(c) Queuing theory is the specialty of the person in the room with
the green door.
(e) The room with the green door is next to and on the right of the
ivory-door room.
(f) The mathematician in the room with a yellow door fidgets while
she is sitting.
(g) The economist has a room between the engineer and the
businessman.
(k) The room with a blue door is not next to the room where the
nose-puller lives.
Problem Identification
Model Construction
12. The use of descriptive models, such as Pareto diagrams, can bridge
the communication gap between the users (commanders and staff) and OR/
MS analysts. The use of a mathematical model facilitates internal
communication among OR/ MS team members, and the use of a computer
model facilitates communication with a computer in a manner that is
meaningful to both humans and the machine. The information
communicated by a model makes it useful also as a documentation record
and a subject for OR/ MS experimentation.
Model Evaluation
(b) Is the model simple and clear enough for people to understand
and use?
Conclusion
14. A clear formulation of the problem and its correct modeling leads to
solutions that satisfy the system analysts' favoured acronym TAPE which
stands for:-
T - Technically feasible.
A - Administratively convenient.
P - Politically expedient.
E - Economically viable.
17
CDM/OR/LP
LINEAR PROGRAMMING
Introduction
Definition
Variables
Constraints
5. These are the restrictions or limitations within which the variables can
assume different values. e.g. in the above case, say the number of aircraft
available is 10, then this variable can assume values only from 0 to 10.
Assumptions
General Approach
INPUT OUTPUT
PROCESS
Y Y
Solution
II I Space
0 X
III IV 0 X
14. LP can handle only one objective at a time and find the optimal
solution for it .There may be occasions when a problem involves more than
one objective, for example, the objective may be simultaneously to achieve
maximum effectiveness in minimum time. Such problems can be solved
using linear programming by modelling the problem separately for each
objective. Subsequently trade-offs may be done to determine the most
suitable solution. It has, however, been found that these limitations and
assumptions do not pose any major difficulty and that the technique lends
itself to handling of a large number of problems.
Conclusion
17. LP has been found to be a very useful tool for analysing resource
allocation problems. Some of the limitations of LP restrict its application to
real world problems that are encountered in various fields including defence
and industry. Identification of the main features of problems is essential to
judge the applicability of the LP model. Once applied, LP will follow a
scientific process of systematic selection and evaluation of alternatives
which finally lead to the most optimal solution to the problem.
21
CDM/OR/MBGM
MBGMLINEAR PROGRAMMING
Introduction
MODEL BUILDING
General
Example
5. The Indian Navy is considering two types of attack aircraft for its
carrier - a supersonic type and a transonic type. The combat effectiveness
of any aircraft on the carrier is determined by the relative expected military
value of targets that the aircraft can kill during a military engagement of a
certain length. These have been estimated to be as follows for the two types
mentioned above: -
22
CDM/OR/MBGM
6. If the entire deck space available for the attack aircraft is allocated to
one specific type, the following numbers of aircraft could be accommodated:-
Step 1
Step 2
Figure - 1
60 A
50
Y
40
30
20
10
B
O (0,0) 10 20 30 40 50 60
X
14. Similarly the other structural constraints are plotted as shown in Fig 2.
Line CD represents the constraint of manpower and line EF represents the
constraint of available funds. The solution must be in the space O C I J B,
which is called the feasible solution space/feasible region.
Figure - 2
60 A
Deck Space
50 Cost
45 E
40
C
30 I
20 Personnel
J
10
B F D
O(0.0) 10 20 30 40 45 50 60
25
CDM/OR/MBGM
Step 3
15. The optimal solution to the problem must lie at one of the corners of
the feasible solution space. The objective function value at the corners is
given by:
Z max = 3 X + 2.5 Y
Figure - 3
60
50
40 C
I
30 (15,30)
20 J (30,15)
10
0
10 20 30 40 50 60
B
26
CDM/OR/MBGM
Summary of Steps
18. To summarise the steps involved in solving an LP model graphically
are given below:-
(b) Step 2. Graph each inequality in its limiting case and obtain
a region of possible solution space.
24. While being in cell E6, from function (fx) in menu bar, select
SUMPRODUCT function (from Math & Trig functions) and click OK.
Function icon
25. For Array 1 select cells C4:D4 (You may either assign any arbitrary
value to Decision Variables P & V in cells C4 & D4 or leave them blank (in
which case they assume zero values automatically)) and for Array 2 select
C6:D6 and click OK.
28
CDM/OR/MBGM
26. In formula bar, add $ sign before C,4,D & 4 i.e. $C$4$:D$4$ and click
sign in formula bar (this step ensures that C4:D4 cells remain constant
for all array multiplications).
27. Now drag the right bottom corner portion of this cell (E6) down upto
cell E9 to get SUMPRODUCT for all constraints equations.
28. While being in cell E6 or outside any cell in which data is filled, Click
on TOOLS in Menu bar and select Solver.
29
CDM/OR/MBGM
29. In Solver
for : Set Target Cell - Select cell E6 (where you want Objective
function value to come)
30. Click on Option button. Click on Assume Linear Model and Assume
Non Negative and then on OK.
31
CDM/OR/MBGM
32. Select Answer, Sensitivity and Limits in Reports window and then
click OK. These reports will get added to Excel sheet.
32
CDM/OR/MBGM
33
CDM/OR/SA
SENSITIVITY ANALYSIS
(A Graphical Approach)
Introduction
40
35
Crew
Aircraft Type B
30
Avl of Type A ac
25
20
C(15,15)
15 A B Avl of Type B ac
10 D
5
E
0 F Fuel
15 5 2010 25 30 35 40
Aircraft Type A
Fig. 1 Effect of Increase of Available Quantity of Fuel
40
35
30 Maint Crew
Aircraft Type B
Avl of Type A ac
25
20
C
15 A B Avl of Type B ac
10 D
(26,7)
5
E
0 F Fuel
5 10 15 20 25 30 35 40
Aircraft Type A
8. Next consider a decrease in the right hand side value of the non-basic
constraints. Constraint A = 26 represents the maximum number of sorties of
Type A ac available for the task. Fig 3 shows that the line representing this
constraint can be moved towards the origin till it meets the optimal point D
(shown by dotted line). Any further movement would result in a change in
the optimal solution. Since at point D the value of A = 20, the maximum limit
to which availability of sorties of type A ac can be reduced is 20 without
changing the optimal solution at D. Similarly the right hand side value of
constraint B = 15, representing the availability of sorties of Type B ac, can be
reduced to a minimum of 10, which would make the line representing this
constraint pass through point D (shown by dashes dots) without affecting the
optimal solution.
36
CDM/OR/SA
40
35
Aircraft Type B
30
M
ai
nt
A=20 A=26(Avl of Type A ac)
Cr
25
ew
Fu
20 el
C B=15(Avl of
15 A B Type B ac)
10 D B=10
5
E
0 F
5 10 15 20 25 30 35 40
Aircraft Type A
Availability of Abundant 20 - 26 = -6 70 - 70 = 0
sorties of
Type A ac
Availability of Abundant 10 - 15 = -5 70 - 70 = 0
sorties of
Type B ac
37
CDM/OR/SA
Increase in resource)
12. The worth per unit (shadow price) of all the resources can be
summarised as under:-
13. This information above shows that maintenance crew should receive
the first priority followed by fuel availability.(Costs of these additional
resources could also be taken into account to refine the decision.) Abundant
resources, as in this case availability of aircraft sorties, should obviously not
be increased.
14. Similar analysis can also be done for decrease in scarce resources. It
would be found that the shadow price will be same as obtained for increase
in resources. The limiting right hand side values give the range within which
shadow price remains constant.
15. Changes in the objective function coefficients can affect the slope of
the straight line representing it. It has been seen in the graphical solution
methodology that the optimal corner point selected depends primarily on the
slope of the objective function line. This means that changes in the objective
function coefficients can change the set of binding constraints and hence the
status, scarce or abundant, of a given resource. Sensitivity analysis of
objective function coefficients can thus help us answer the following:-
Z = (Ca * A) + (Cb * B)
Or
B = [ Z (Ca * A)] Cb
= [ - Ca / Cb * A] + [ Z / Cb ]
39
CDM/OR/SA
30 Crew
Aircraft Type B
Increase in Ca or
25 Decrease in Cb
20
C
15 A B
10 D Decrease in Ca or
Increase in Cb
5
E
0 Fuel
5 10 15 20 25 30 35 40
Aircraft Type A
19. Thus the range of Ca for which point D remains the unique optimum is
1.5 to 3 .
22. A similar exercise can also be done by fixing the value of Ca = 2, (i.e.
at its current value) and determining the minimum and maximum allowable
variation in the value of Cb.
Appendix
(Refers to Para 24)
1. Plot all constraints and find the co-ordinates of all corner points of the
feasible solution space.
4. Move one binding constraint line at a time parallel to itself such that
the other binding constraint (binding the feasible solution space) just
becomes redundant. The point where this happens will always be a corner
point.
5. Read the co-ordinates of this corner point. Substitute the values in the
constraint for which the analysis is being done (i.e. the one that is moved)
and calculate the right hand side value. This is one of the limits of the range.
11. The range of coefficients of the objective function gives the extreme
values within which the coefficient values can change without affecting the
optimal solution.
(Blank Page)
43
CDM/OR/GP
GOAL PROGRAMMING
Introduction
Objective Function
Z max = 2A + 3B (Tons)
Subject To
Maintenance Crew
Constraint - A+B 30 (Nos)
Availability of
'A' Type Bomber - A 26 (Nos)
Availability of
B Type Bomber - B 15 (Nos)
Non Negativity Constraint - A, B 0
constraints for the problem at hand. He has stated his requirement and
priorities to his COO and sqn cdrs as follows:-
Requirement Priority
(a) The decision maker ideally wants all the above goals to be
met.
(b) The decision maker is however not very rigid about the
requirements e.g. in the Bomb Tonnage goal he wants 69 tons of
bombs to be delivered on target, but is ready to accept variations on
either side of 69 tons. He has only specified that any variation below
69 tons is to be avoided, but even that will be acceptable if
inescapable. Three situations can occur firstly exactly 69 tons of
bombs are delivered on target, secondly more than 69 tons of bombs
are delivered on target and thirdly less than 69 tons of bombs are
delivered on target. The first situation implies that the decision
makers goal is exactly met. The second situation results in certain
overachievement of the laid down goal, albeit positive and is not a
cause of concern to the decision maker. In the third situation there is
an underachievement of the goal, which will cause some
dissatisfaction to Bombardkar. This overachievement or
underachievement on either side of the decision makers goal is
known as deviation. The deviation which results in some
dissatisfaction to the decision maker is called the undesirable
deviation. Thus in the case of the Bomb Tonnage goal it is
underachievement which is the undesirable deviation. But in the case
of the Priority 2 (Fuel) and Priority 3 (Crew) goals overachievement
will be the undesirable deviation.
(c) The decision maker also implies that in case any goal cannot
be met, the undesirable deviation should be kept to the minimum.
This is what we will attempt to do while formulating the goal
programming mathematical model.
and the Objective Function for formulating a Goal Programming model are
dealt with in detail below :-
12. The Goal Programming Math Model. The objective function and
constraints for this version of the Bombardkar Problem in terms of Goal
Programming are :-
Objective Function
Z min = P 1 U bt + P 2 O f + P 3 O c
Subject to
A, B, U bt , O bt , U f , O f , U c , O c 0. Non-Negativity
Constraint
13. The procedure is very similar to the one used in Linear Programming
and restrictions of two decision variables are still valid. The following five
conditions need to be satisfied for graphical analysis:-
(b) Graph all resource constraints and identify the area of feasible
solution (area OSTU in Figure 1 below).
(c) Starting with the highest priority goal, one by one, graph the
straight lines corresponding to the goal constraints. Leave aside the
deviation variables.
30
20
T
S B <= 15
R(18,11)
B Type ac
10
P(26,07)
FUEL P2 GOAL
CREW P3 GOAL Q(26,06)
0
O U
0 10 20 30 40
A Type ac
Figure 1
14. With the addition of goal constraints the area of feasible solution has
been modified to exclude the area representing under-achievement of Bomb
Tonnage of 69 Tons. This is the goal of extreme importance. The set of
points which satisfies the resource constraints and represents fulfillment of
Goals 1 and 2 are enclosed by area PQR. The Bomb tonnage exceeds 69
tons at P and Q and the Fuel spent is within 400 KL, however Crew
utilization exceeds availability at all the three corner points. Thus, if we
attempt to meet the Priority 3 goal (Maitenance Crew) we will be violating the
Priority 1 and 2 goals. Hence the aim is to minimize the undesirable
deviation (O c ) from the Priority 3 goal, without degrading the degree of
achievement of higher priority goals and the solution occurs at R where 69
tons of bombs are dropped, fuel consumption is 400 KL and crew goal
overachievement is minimum at 07 (29 22). (The Crew goal
overachievement at Point P is 11 and at Point Q is 10).
(c) In Goal Programming, priorities for goals can be set and the
goals may be in different dimensions/units of measurement.
Conclusion
Appendix
(Refers to Para 15 of
CDM/H/OR/GP)
1. Till now we have used Excel and its Solver add-in to find solutions to
LP problems. The same can be used with certain modifications to find
solutions to Goal Programming problems. The solution to a pre-emptive
method of Goal Programming will be demonstrated in this paper.
Subject to
A, B, U bt , O bt , U f , O f , U c , O c 0. Non-Negativity
Constraint
4. The Excel Workbook. Since this problem has three goals, the
method is demonstrated by three worksheets named Step 1, Step 2 and
Step 3. Each worksheet corresponds to the solution obtained by satisfying
Priority 1, Priority 2 and Priority 3 goals respectively.
Step 1
(b) The objective function will contain only the Priority 1 goals
undesirable deviational variable. (If more than one Priority 1 goal
exists, appropriate deviational variables for all such Priority 1 goals
should be included in the objective function).
(c) The Solver will contain only the resource constraints and the
Priority 1 goal constraint.
(d) The Priority 2 and Priority 3 goals do not form part of the
solution at this stage. [Note that in Fig 1 the goal constraints for Fuel
(Priority 2) and Maintenance Crew (Priority 3) have not been included
in the Constraints box of Solver Parameters dialog box].
(f) Solve the problem. The solution will appear as in Fig 2 below.
Note the Z value obtained for use in subsequent steps.
52
CDM/OR/GP
Step 2
(a) The math model remains the same as in previous Step except
that a new constraint is added as explained above.
(d) The Priority 3 goal does not form part of the solution at this
stage.
11. Solve the problem. The solution will appear as in Fig 4. Note the Z
value obtained for use in Step 3.
(b) The Z value is zero indicating no deviation from the laid down
Priority 2 goal. Thus both Priorty 1 and 2 goals have been exactly
met. Note this value for use in Step 3.
(d) 69 tons of bombs are delivered on target (Cell J9) and the fuel
used is 400 KL (Cell J10), i.e. no over-expenditure, as opposed to
Step 1, where there was an over-expenditure of 20 KL.
Step 3
13. Step 3 will endeavour to satisfy the Priority 3 goal(s) to the maximum
extent possible without degrading the achievement of Priority 1 and 2 goals.
The worksheet is as per snapshot at Fig 5.
14. New Constraint. While solving the problem for Priority 3 goal(s) it
must be ensured that the undesirable deviations in Step 1 & 2 (U bt & O f in
the present case) do not change and the related Z value obtained in Step 2
is not degraded. Once again we achieve this by adding another new
constraint to signify the same. Like previously, this is nothing but the
Objective Function of the preceding iteration (Step 2), along with its final
value obtained after solving the model. Hence the new constraint will be O f =
0. See Row 17 of Fig 5 for details of adding the new constraint.
(a) The math model remains the same as in previous Step except
that a new constraint is added as explained above.
(c) Since this is the final step, the Solver will contain all the
resource constraints, all the goal constraints and the two newly added
constraints from Steps 1 & 2.
16. Solve the problem. The solution will appear as in Fig 6 below. Check
the deviation for Priority 3 goal and change in Z value, if any.
17. The solution obtained at the end of the last step indicates the
following :-
(c) The decision variables (Cells B4 & C4) show that 18 Type A ac
and 11 Type B ac are being used. This is the same as the solution
obtained in Step 2.
57
CDM/OR/GP
(d) The goal constraints show that 69 Tons (Cell J9) of bombs are
delivered at the target (no under-achievement) and the fuel used (Cell
J10) is 400 KL, (i.e. no over-expenditure).
(e) The Maintenance Crew goal constraint (in Row 11 of the Excel
Sheet at Fig 6) shows only 22 Crews being utilised. Is it actually so? If
yes, then where is the over-achievement of this goal? When a goal is
part of the objective function, due to the nature of the goal constraint
equation (i.e. LHS = RHS), any over or under-achievement of goals
will never reflect in the goal constraint, but only in the deviational
variables of the objective function. The actual usage of the resource
will only be clear after considering both the Nos / quantities reflected
in the goal constraint equation and the deviational variable in the
objective function (Cells J11 & I 4 in the present case). Thus in the
present example the No of Maintenance Crew actually used works out
to be 22 + 07 = 29.
Solution Overview
19. What should we advise Air Cmde Bombardkar? It is clear that while
his goals of avoid bomb tonnage below 69 tons and avoid fuel expenditure
more than 400 KL can be met, there is no possibility of restricting the No of
crew used to 22. However he can still have the following options :-
(a) Ensure both Bomb Tonnage and Fuel goals are met but accept
29 instead of 22 Maintenance Crew are utilised.
(b) Accept only the Bomb Tonnage goal is met. This will involve an
additional expenditure of 20 KL of Fuel (i.e. 420 KL instead of 400 KL)
and 27 instead of 22 Maintenance Crew will be used (see solution to
Step 1 in Figure 2).
Conclusion
(Blank Page)
59
CDM/OR/Tn
TRANSPORTATION MODEL
Introduction
(a) Like the general LP model, we solve the problem for a single
objective e.g. minimising cost or distance or time and so on.
8. Let us now examine the method with the help of an example. 21 tanks
are available at 3 depots and are required by 5 formations as under. The
cost of transportation from each origin to each destination is known (the cost
may be in terms of time, distances etc).
O1 9 D1 3
O2 4 D2 5
O3 8 D3 4
D4 6
D5 3
Total 21 Total Demand 21
Availability
Destinations D1 D2 D3 D4 D5 Availability
Origins
O1 10 20 5 9 10 9
O2 2 10 8 30 6 4
O3 1 20 7 10 4 8
Demand 3 5 4 6 3 21
21
10. In the above example, the demand and availability are equal, so the
table prepared in Para 9 above is ready for further operation. However, in
real life such situations would rarely occur. The procedure adopted for
balancing the demand and availability which is called Rim Condition is as
under:-
Destinations D1 D2 D3 Availability
Origins
O1 10 6 4 200
O2 4 5 9 400
Destinations D1 D2 D3 Availability
Origins
O1 10 6 4 200
O2 4 5 9 400
Dummy 0 0 0 50
Unbalanced Matrix
Destinations D1 D2 D3 Availability
Origins
O1 5 6 4 200
O2 7 9 2 400
Balanced Matrix
Origins
O1 5 6 4 0 200
O2 7 9 2 0 400
(a) Feasible.
12. Also if there are 'm' origins and 'n' destinations there can be only ( m
+ n -1) allocations.
Inspection Method
15. It is a trial and error method and does not follow a systematic
approach to find a basic feasible solution and is, therefore, not normally
adopted.
64
CDM/OR/Tn
16. NW Corner Rule is one of the simplest methods for obtaining an initial
basic feasible solution. The procedure is as follows:-
(a) Start with the cell in the upper left hand corner (NW corner of
the matrix).
(b) Allocate the maximum feasible amount i.e., such that either the
availability in the first row is exhausted or the requirement in the first
column is satisfied (If both are satisfied at the same time,
'degeneracy is said to have occurred. The solution in such cases is
discussed in a separate paper).
(e) In this manner, starting from the top left hand corner of the
matrix, satisfying the individual destination requirements and
exhausting origin capacities, one at a time, move towards the bottom
right hand corner until all requirements are satisfied.
Destinations D1 D2 D3 D4 D5 Availability
Origins
O1 3 5 1 9
O2 3 1 4
O3 5 3 8
Demand 3 5 4 6 3 21
21
19. The cost of the allocations can be worked out by multiplying the
quantities allocated in a cell with the unit cost associated with that cell and
totalling all costs. Cost of transportation in this case works out to (Refer to
table given at Para 9):-
(d) Does not take cost of transportation into account while making
allocations.
(b) Step 2. For each row, calculate the difference in cost between
the lowest and next higher cost cell. (If the two lowest cost cells are
tied, the difference is zero).
(c) Step 3. For each column, calculate the difference between the
lowest and next higher cost cell. (If the two lowest cost elements are
tied, the difference is zero).
(d) Step 4. Select the row or column that has the largest
difference. In the event of a tie, select any one.
(e) Step 5. In the row or column identified in Step 4, select the cell
that has the lowest cost and assign the maximum feasible quantity to
it. This would exhaust the corresponding row or column which must
be struck off.
Column Iterations
difference No
1 1 10 2 1 2
2 9 0 2 1 6
3 - 0 2 1 6
4 - 0 2 1 -
5 - 0 - 1 -
6 - - - - -
(b) Iteration 2.
Destinations D1 D2 D3 D4 D5 Availability
Origins
O1 10 20 5 9 10 9
4 5
O2 2 10 8 30 6 4
4
O3 1 20 7 10 4 8
3 1 1 3
Demand 3 5 4 6 3 21
21
Maximisation Case
(e) When using VAM, if the highest penalty is the same for more
than one route, choose any of them.
Conclusion
Appendix
(Refers to Para 28)
TRANSPORTATION MODEL
MAXIMISATION CASE : AN EXAMPLE
Problem
Targets X Y Z
Bases
A 8 6 5
B 6 6 6
C 9 8 5
D 8 5 4
A 8 6 5 150
150
B 6 6 6 150
60 100
C 9 8 5 150
100 50
D 8 5 4 150
150
8. NW Corner Rule does not take costs into account. Relative costs
have not been worked out at this stage even though it is a maximisation
case because this Rule does not take costs into account.
9. No of allocations required (m + n - 1 ) = 6
No of allocations made = 6
Therefore, condition has been satisfied.
10. Bomb tonnage delivered by this solution (150 x 8) + (50 x 6) + (100 x
6) + (100 x 8) + (50 x 5) + (150 x 4) = 3750 tons.
11. Initial Matrix. Initial Matrix to be set up for solving the problem using
VAM is as follows:-
73
CDM/OR/Tn
Target X Y Z Availability
Bases
A 8 6 5 150
B 6 6 6 150
C 9 8 5 150
D 8 5 4 150
12. Relative Cost Matrix. Highest payoff (bomb load being carried) is 9 in
cell CX. To convert it into a minimisation problem and therefore to prepare
the relative cost matrix, reduce figures in each cell from 9 to get the new
relative cost matrix.
Target X Y Z Availability
Bases
A 1 3 4 150
B 3 3 3 150
C 0 1 4 150
D 1 4 5 150
Target X Y Z Availability
Bases
A 8 6 5 150
50 50 50
B 6 6 6 150
150
C 9 8 5 150
150
D 8 5 4 150
150
14. Bomb Tonnage Delivered. To work out the tonnage delivered use the
actual load being carried per sortie for respective cells as per the initial table
and NOT the relative cost matrix values. It works out to :-
16. Allocations work out to be the same as in the case of Paragraph 13.
Interested readers may carry out the necessary iterations.
75
CDM/OR/Modi
TRANSPORTATION MODEL
Introduction
2. There are two methods of testing for optimality and carrying out
iterations to obtain the optimal solution. These are :-
Table 1
Independent Allocations-Example 1
D1 D2 D3 D4 D5
O1 5 7 3 15
O2 4 3 7
O3 4 4 8
5 7 7 7 4 30
30
Table 2
Independent Allocations-Example 2
D1 D2 D3 D4 D5
O1 5 3 5 13
O2 7 7
O3 2 4 4 10
2 12 7 5 4 30
30
5. If, however, the allocation is as given in the following matrix (Table 3),
the allocations will not be independent as four cells (O 1 D 2 ), (O 1 D 3 ), (O 3
D 2 ) and (O 3 , D 3 ) form a closed loop as shown by arrows. This problem
occurs only when allocation in a particular cell is not made to match the
demand or availability, which ever is less.
77
CDM/OR/Modi
Table 3
Example of Allocation not being Independent
D1 D2 D3 D4
O1 4 8 13
O2 3 6
7
O3 2 3 2 10
5 7 10 6 30
30
Opportunity Cost
(a) Form a closed loop with one corner in the empty cell and other
corners of the loop being in occupied cells. For example in Table 4
below, there is a closed loop with empty cell O 2 D 1 .
D2 D2 Availability
O1 5 4 4 5 9
O2 1 3 7
7
Requirement 5 11 16
16
Table 5
D2 D2 Availability
O1 -1 4 +1 5 9
5 4
O2 +1 1 -1 3 7
7
Requirement 5 11 16
16
(c) Work out the effect on the cost after making this shift of one
element to the unoccupied cell. In this case the cost of including cell
O 2 D 1 in the programme involves: a saving of Rs 3 by reducing
allocation by 1 unit in cell O 2 D 2 , an expenditure of Rs 1 by adding 1
unit in cell O 2 D 1 , a saving of Rs 4 by reducing allocation of 1 unit
from cell O 1 D 1 and an expenditure of Rs 5 by increasing 1 unit in cell
O 1 D 2 i.e., 3 - 1 + 4 - 5 = Rs 1.
(d) Thus, the total effect of occupation of the empty cell, (or the
opportunity cost in that cell) is that the overall cost of the programme
goes down by Rs 1.
Implied Cost
8. The implied cost of an empty cell sets up an upper limit (in view of the
existing programme) beyond which the inclusion of this cell in the new
programme is not an advantageous proposition. Let us explain this with the
help of an example:-
79
CDM/OR/Modi
Destinations D2 D2 Availability
Origins
O1 - 4 + 5 1000
900 100
O2 + 1 - 3 600
600
9. The implied cost of a given empty cell can change from one problem
to another since the implied cost is indicative of the relative advantage or
disadvantage of not using a given cell in a particular problem.
10. In this case Cell O 2 D 1 is the only empty cell. One way to find its
implied cost is by drawing a closed loop and determining the net cost effect
(opportunity cost) of shifting one unit of goods into the empty cell O 2 D 1 .
Ignoring, for the time being, the actual shipping cost via O 2 D 1 the effect of
shifting one unit of goods into O 2 D 1 (net cost change) would be:-
= - O2D1 + 4 - 5 + 3
= - O2D1 + 2 (1)
11. The opportunity cost of occupying cell O 2 D 1 , would be positive only
when expression in equation (1) is positive. In other words, it is worthwhile
to occupy cell O 2 D 1 only so long as (-O 2 D 1 + 2) in this case is positive.
And it would be positive so long as the actual cost of transportation via this
cell is less than 2. The calculated upper limit for the actual cost of empty cell
(in the existing programme) beyond which the inclusion of this cell in the new
programme is not an advantageous proposition is called the Implied Cost of
that cell. In the example under consideration it is Rs 2 for cell O 2 D 1 .
Here 2 is the implied cost and 1 the actual cost of the empty cell
O2 D1.
13. So far, the implied cost has been worked out by drawing a closed
loop. As the drawing of closed loops for all empty cells in each iteration is a
tedious process, it would be desirable to find a simpler method for
determining the implied and opportunity costs of empty cells. This is
precisely what the MODI Method does.
D1 D2 D3 D4 D5 U1
O1 10 20 5 0
4 6 8
O2 8 30 3
3 6
O3 10 4 -17
5 4
V1 10 20 5 27 21
18. Once Ui and Vj values have been worked out for a table then the
same logic is applied for empty cells and implied costs are worked out by
81
CDM/OR/Modi
adding the corresponding Column and Row components. Implied costs for
the empty cells of table in Para 17 would be shown below: -
Error! Not a valid link.
19. Having found out the implied cost of each empty cell, the opportunity
cost can be determined by: -
Opportunity Cost = Implied Cost - Actual Cost
(a) Implied cost > Actual cost Better allocation can be designed by
including this cell.
(b) Implied cost = Actual Indifferent; as no change in cost of
cost programme will occur.
(c) Implied cost < Actual Cell to be left out of allocations
cost
D1 D2 D3 D4 D5 Ui
O1 10 20 5 0
4 6 8
O2 8 30 3
3 6
O3 10 4 -17
5 4
Vj 10 20 5 27 21
(a) Prepare a matrix with unit cost shown for occupied cells.
(d) Determine the opportunity cost of empty cells. In case all cells
have -ve opportunity cost, an optimal solution has been reached. If
not, proceed to next step.
25. Step 3 - Design New Programme. Select the empty cell with the
highest opportunity cost. In case of a tie among a number of cells having the
same highest opportunity cost, any one of these cells in chosen arbitrarily.
Determine a closed loop with the empty cell at one corner and other corners
as occupied cells. Carry out maximum possible allocations into the empty
cell, balancing the allocations in other cells, such that rim requirements as
explained in the previous course paper are met.
26. Step 4. Repeat Steps 2 and 3 till the optimal solution is reached.
Conclusion
30. MODI is a simple and iterative method which lends itself to easy
handling by computers.
84
CDM/OR/Modi
Appendix A
(Refers to Para 27)
TRANSPORTATION PROBLEM
Problem
Formations D1 D2 D3 D4 D5 Availability
Depots
O1 10 20 5 9 10 9
O2 2 10 8 30 6 4
03 1 20 7 10 4 8
Requirement 3 5 4 6 3 21
21
Solution
D1 D2 D3 D4 D5 Availability
O1 9
3 5 1
O2 4
3 1
03 8
5 3
Requirement 3 5 4 6 3
Cost of transportation = 3 x 10 + 5 x 20 + 1 x 5 + 3 x 8 + 1 x 30 + 5 x 10 +
3 x 4 = 251 thousand.
85
CDM/OR/Modi
4. Based on the actual cost of occupied cells work out row and column
component values for the implied cost (since actual cost = implied cost for
occupied cells).
D1 D2 D3 D4 D5 Ui
O1 10 20 5 9 10 0
3 5 1
O2 2 10 8 30 6 3
3 1
O3 1 20 7 10 4 -17
5 3
Vj 10 20 5 27 21
D1 D2 D3 D4 D5
O1 10 20 5 9 10
3 5 1 18 11
O2 2 10 8 30 6
11 13 3 1 18
O3 1 20 7 10 4
-8 -17 -19 5 3
3 5 4 6 3
As there are a number of cells with positive opportunity cost, select one with
highest opportunity cost for inclusion in the next programme. In case of a tie
between a number of cells with the same highest opportunity cost, select any
one of them arbitrarily. Cell O 1 D 4 is chosen in this case.
86
CDM/OR/Modi
7. Iteration No 1
(a) Make a closed loop with selected empty cell and three or more
occupied cells. (close loop is O 1 D 4 - O 2 D 4 - O 2 D 3 - O 1 D 3 )
and mark these cells with +. -. +, and signs to indicate addition and
subtraction of allotment in various cells.
2nd Programme
D1 D2 D3 D4 D5
O1 10 20 5 9 10
3 5 1
O2 2 10 8 30 6
4
O3 1 20 7 10 4
5 3
D1 D2 D3 D4 D5 U1
O1 10 20 5 9 10 0
3 5 1
O2 2 10 8 30 6 3
4
O3 1 20 7 10 4 1
5 3
Vj 10 20 5 9
87
CDM/OR/Modi
D1 D2 D3 D4 D5 Ui
O1 10 20 5 9 10 0
3 5 1
O2 2 10 8 30 6 3
13 23 4 12 6
O3 1 20 7 10 4 1
5 3
11 21 6
Vj 10 20 5 9 3
D1 D2 D3 D4 D5 Availability
O1 10 - 20 + 5 9 10 9
3 5 1 -7
O2 2 10 8 30 6 4
11 13 4 - 18 0
+
O3 1 20 7 10 4 8
10 1 -1 5 3
Dem- 3 5 4 6 3 21
and 21
D1 D2 D3 D4 D5 Availability
O1 9
1 4 1
3
O2 4
4
O3 8
5 3
Dem- 3 5 4 6 3 21
and 21
88
CDM/OR/Modi
D1 D2 D3 D4 D5 Ui
O1 10 20 5 9 10 0
3 1 4 1
O2 2 10 8 30 6 -10
4
O3 1 20 7 10 4 1
5 3
Vj 10 20 5 9 3
O1 10 20 5 9 10 0
3 1 4 1
O2 2 10 8 30 6 -10
0 4 -5 -1 -7
O3 1 20 7 10 4 1
5 3
11 21 6
Vj 10 20 5 9 3
O1 - 10 20 5 + 9 10 0
3 1 4 1 -7
O2 2 10 8 30 6 -10
-2 4 -13 - 31 -13
O3 + 1 20 7 - 10 4 1
10 1 -1 5 3
Vj 10 20 5 9 3
4th Programme
D1 D2 D3 D4 D5 Availability
O1 10 20 5 9 10 9
1 4 4
O2 2 10 8 30 6 4
4
O3 1 20 7 10 4 8
3 2 3
Dem- 3 5 4 6 3
and
D1 D2 D3 D4 D5 Ui
O1 10 20 5 9 10 0
1 4 4
O2 1 2 10 8 30 6 -10
4
O3 1 20 7 10 4 1
3 2 3
Vj 0 20 5 9 3
D1 D2 D3 D4 D5 Ui
O1 10 20 5 9 10 0
0 1 4 4 3
O2 2 10 8 30 6 -10
-10 4 -5 -1 -7
O3 1 20 7 10 4 1
3 21 6 2 3
Vj 0 20 5 9 3
90
CDM/OR/Modi
D1 D2 D3 D4 D5 Ui
O1 10 - 20 5 + 9 10 0
-10 1 4 4 -7
O2 2 10 8 30 6 -10
-12 4 -13 -31 -13
O3 1 20 7 10 4 +1
3 1 -1 2 3
Vj 0 20 5 9 3
5th Programme
D1 D2 D3 D4 D5 Availability
O1 10 20 5 9 10 9
4 5
O2 2 10 8 30 6 4
4
O3 1 20 7 10 4 8
3 1 1 3
De- 3 5 4 6 3
mand
O1 10 20 5 9 10 -1
4 5
O2 2 10 8 30 6 -10
4
O3 1 20 7 10 4 0
3 1 1 3
Vj 1 20 6 10 4
91
CDM/OR/Modi
D1 D2 D3 D4 D5 Ui
O1 10 20 5 9 10 -1
0 19 4 5 3
O2 2 10 8 30 6 -10
-9 4 -4 0 -6
O3 1 20 7 10 4 0
3 1 6 1 3
Vj 1 20 6 10 4
D1 D2 D3 D4 D5 Availability
O1 10 20 5 9 10 9
-10 -1 4 5 -7
O2 2 10 8 30 6 4
-11 4 -12 -30 -12
O3 1 20 7 10 4 8
3 1 -1 1 3
De- 3 5 4 6 3
mand
( 1 x 3 ) + ( 10 x 4 ) + ( 20 x 1 ) + ( 5 x 4 ) + ( 9 x 5 ) + ( 10 x 1 ) + ( 4 x 3 )
= 3 + 40 + 20 + 20 + 45 + 10 + 12
Appendix B
(Refers to Para 28)
Demands
are met
Supplies
are not
exceeded
7. Select the type of reports required to be seen and click OK. The
Solver will generate the required reports as separate sheets in the same
workbook. Answer Report has been shown in Fig 7 as an example.
95
CDM/OR/Modi
(Blank Page)
97
CDM/OR/Degen
TRANSPORTATION PROBLEMS
DEGENERACY
Introduction
(a) At the start while making initial allocations for finding a basic
feasible solution.
O2 4 4
O3 6 2 8
3 5 5 6 2 21
5. In this case it will be seen than row and column component values
cannot be allotted to solve the problem by MODI METHOD.
8. This situation can occur when making allotments to empty cells with a
positive opportunity cost. In the process if more than one occupied cell falls
empty simultaneously, thereby reducing the number of occupied cells to
below (m + n - 1), degeneracy would have occurred.
D1 D2 Availability
2 2
O1 -ve 5 15 +ve 20
1 4
O2 +ve 5 -ve 5
Demand 5 20
(c) Maximum quantity of goods that can be shifted into the empty
cell is 5. Therefore, revised programme will be as under :-
99
CDM/OR/Degen
20
5
General Remarks
12. In case in the final solution an epsilon remains in one or more cells,
these cells are considered as unoccupied.
Conclusion
13. In solving real life transportation problems one may frequently come
across degeneracy either at the initial stage or during the solution stage.
However, these do not pose any difficulty as degenerate problems can also
be solved through an easy step of allocation of epsilons to the required
number of cells, as explained.
100
CDM/OR/Degen
(Blank Page)
101
CDM/OR/Tn Model
TRANSHIPMENT MODEL
Introduction
What is Transhipment?
3
500 A B 200
7
3
C 300
Figure 1
4. Similarly there may exist other cases when the commodity may be
transported to one or more intermediate centers before eventually reaching
its final destination. For instance, a main depot may have a number of sub-
depots or establishments that distribute stores received from the main depot
to other sub depots / establishments / units. A problem of this type is
referred to as a Transhipment Problem.
Example
9. A depot has two sources of supply 1 and 2 and wishes to forward its
stores to two destinations A and B. The numbers of items available at
Sources 1 and 2 are 05 and 25 respectively. The demand at A and B is 20
and 10 items respectively. The depot instead of shipping directly from
sources to destinations, decides to investigate the possibility of
transhipment. Fig 2 below shows the transportation costs per unit of the
product between various points.
6
05 1 A 20
4 3
1
2 DEPOT 1
3
2 B 10
25
5
Figure 2
103
CDM/OR/Tn Model
12. Since all the demand or all the supply may concentrate at any one
point, a fictitious quantity b may be assumed to act as buffer stock. The
buffer stock must be equal to the total supply or demand in the original
problem. Here b = 30. The buffer is added to the supply or demand of the
transhipment points. At a Pure Transhipment Node the demand or supply is
zero and here the buffer only forms the supply / demand.
13. Now we need to set up the problem and solve it in a manner similar to
the Transportation model. A standard transportation tableau can be set up
as given in Tables 1 & 2 below. Table 1 shows the use of buffer as per the
104
CDM/OR/Tn Model
type of node and Table 2 shows the actual quantities to be entered in the
demand and supply columns:-
2 Depot B A Available
2 4 M 6
1 05
0 3 5 M
2 25+b
M 0 1 3
Depot b
M M 0 1
B b
Demand b b 10+b 20
Table 1
To
From 2 Depot B A Available
2 4 M 6
1 05
0 3 5 M
2 55
M 0 1 3
Depot 30
M M 0 1
B 30
120
Demand 30 30 40 20 120
Table 2
105
CDM/OR/Tn Model
Figure 3
15. Click on Tools, Solver to get the Solver window and fill the data as
given in Figure 4 below:-
Figure 4
106
CDM/OR/Tn Model
Figure 5
17. After filling in all the data, click on Solve in Solver window to get the
following screen. If Answer, Sensitivity and Limits are selected, and OK is
clicked, these reports get added to the worksheet. See Figure 6 below:-
Figure 6
107
CDM/OR/Tn Model
Figure 7
19. The cells with a zero cost value can be ignored as it means no
movement is taking place through these routes. Encircled values to be
ignored in the lower table are actually the buffers, indicating whether
transhipment is taking place through these nodes or not. Therefore, we
should adopt the following transportation plan:-
(a) From Source 1 to Destination A - 05 items.
(b) From Source 2 to Depot - 25 items.
(c) From Depot to Destination B - 25 items.
(d) From Destination B to Destination A- 15 Units.
(e) Total cost of transportation - Rs145.
(f) This is less than the cost of direct transportation, i.e. Rs170.
Conclusion
(Blank Page)
109
CDM/OR/AM
ASSIGNMENT MODEL
Introduction
Characteristics
(b) There are also a set of facilities/origins, which are also 'n' in
number.
(d) The optimal solution (or any solution within the given
constraints) for the problem is such that there can be one and only
one assignment in a given row or column of the given payoff matrix.
Solution by Enumeration
Jobs (Destinations)
J1 J2 J3
(D1) (D2) (D3)
F1 5 4 6
Facilities (01)
(Origins) F2 9 3 7
(02)
F3 3 2 1
(03)
Assignment
of Jobs to Total Cost
Costs
Facilities
F1 F2 F3
J1 J2 J3 5 3 1 9 (Optimum)
J2 J1 J3 4 9 1 14
J3 J1 J2 6 9 2 17
J1 J3 J2 5 7 2 17
J2 J3 J1 4 7 3 14
J3 J2 J1 6 3 3 12
7. One major advantage of this method is that it also shows the next
best solution and how close or otherwise is the next solution. This brute
force method, however, has a major disadvantage: the number of possible
solutions being n !, these can be very large and, therefore, not practicable
even for a medium sized problem.
in every column. Thus every solution utilises the modified row(with all
costs reduced by a constant amount) or column exactly once. Since
the total cost of a solution is the sum of individual assignment costs,
the sum will be reduced by the constant quantity subtracted.
Methodology - An Approach
(d) Steps at (b) and (c) are repeated till an optimal solution having
zero-opportunity cost is achieved.
Solution Procedure
12. To explain the procedure let us consider the matrix for which a
solution was earlier found by enumeration.
5 4 6
9 3 7 (M1 )
3 2 1
0 0 3
5 0 5 (M3 )*
0 0 0
113
CDM/OR/AM
(a) Start examining the matrix row wise, starting with first row and
locate a cell which has a single zero in the row.
(d) Now start examining the matrix column wise, starting with the
first column. Locate a single zero cell in the column that is not
already crossed.
(g) Repeat (a) to (f) till no more allocations are feasible, either
because there are no more zeroes appearing which have not been
crossed, or if the row or column has more than one uncrossed zero
appearing in it.
17. Step 4 : Test for Optimality. In case the number of allocations made
are less than the total number of rows or columns, the solution is not optimal.
Then proceed as follows:-
(b) Keep drawing lines similarly across rows or columns till all
zeroes are covered by lines. It should be noted that the maximum
number of lines drawn to cross all zeroes should not exceed the
number of allotments made.
18. It is easy to find a zero cost assignment in matrix M3 (or M4). The
solution is marked by circles around the elements used in the assignment.
114
CDM/OR/AM
0 0 2 0 0 2
5 0 4 5 0 4
1 1 0 1 1 0
M3 M4
20. The real total cost of this solution can now be obtained from the
original cost matrix i.e., 5 + 3 + 1 = 9.
Jobs
3 5 7 1
Facilities 9 8 12 10
13 8 14 2
5 7 10 6
22. After doing the first two steps, the total opportunity cost matrix is as
under :-
1 2 3 4
1 2 4 2 0
2 1 0 0 2
3 11 6 8 0
4 0 2 1 1
115
CDM/OR/AM
(a) Row one has only one zero in cell (1,4) hence an allotment is
made in this cell and the zero appearing in column 4 in cell (3,4) is
crossed.
(b) Row 2 has two zeros hence skipped. Row 3 does not have a
zero. Row 4 has one zero in cell (4,1) hence an allotment is made,
and the corresponding column 1 has no zero hence no zero has been
crossed.
24. Test for Optimality. Since the number of allocations made are 3
which is less than number of rows/columns (i.e., 4) the allocation is not
complete. To cover all zeroes proceed as follows:-
(a) Pivot on the zero in cell (1,4) and draw a line in column 4 to
cover zeros in cell (1,4) and (3,4).
(b) Pivot on zero in cell (2,2) and draw a line in row 2 to cover
zeroes in cells (2,2) and (2,3).
(c) Pivot on zero in cell (4,1) a line can be drawn either in column
1 or row 4 as in both the cases the line would cover only one zero. In
this case a line has been drawn in row 4.
Note : The number of lines drawn to cover all zeroes are exactly equal
to the number of allocations made.
25. Step 5 : Revising the Current Total Opportunity Cost Matrix. In case
an optimal solution is not found in step 4 then the current matrix has to be
revised. For this proceed as follows :-
0 2 0 0
1 0 0 4
9 4 6 0
0 2 1 3
27. The example under consideration yields the following results (Can
apply in step 3). Since the number of allocations is equal to the number of
rows the optimal solution has been obtained :-
0 2 0 0
1 0 0 4
9 4 6 0
0 2 1 3
(d) To work out the pay off of optimal assignments, use the original
pay off matrix.
117
CDM/OR/AM
31. Negative Costs. If the cost matrix has mostly positive or zero cells
but has a few negative cost cells also, it is necessary to add to the rows or
columns a quantity sufficient to make- all cells non-negative. Property 1
shows that the modified problem will have the same ranking of solutions as
the original problem.
37. Make sure that the number of Facilities is equal to the number of jobs.
Equality Sign in
constraints
A Military Example
Appendix A
(Refer to Para 4)
AREAS OF APPLICATION
Appendix B
(Refers to Para 39)
Problem
Solution
D E F
A 10 11 18
B 0 2 4
C 4 0 0
D E F
A 0 1 8
B 0 2 4
C 4 0 0 Covering
Line 2
Covering Line 1
121
CDM/OR/AM
4. Assignment
D E F
A 0 0 7
B 0 1 3
C 5 0 0
D E F
A 0 0 7
B 0 1 3
C 5 0 0
D E F
A 0 0 7
B 0 1 3
C 5 0 0
(Blank Page)
123
CDM/H//TSM
Introduction
To Areas
From
A B C D E F
A - 38 31 48 63 52
B 34 - 41 29 43 26
C 35 41 - 27 29 33
D 48 25 27 - 25 25
E 63 43 29 25 - 21
F 52 28 33 25 20 -
Table 1
124
CDM/H//TSM
Figure 1
9. Click on Tools, Solver and fill up the data as shown in the window
below (Figure 2):-
Figure 2
10. Note that equality sign is used in constraints. Click on Options and
check on Assume Linear Model and Assume Non- Negative and then click
OK (Figure 3).
Figure 3
126
CDM/H//TSM
11. Click Solve button in Solver window. Results are displayed as shown
in Figure 4:-
Figure 4
12. The result gives following assignments: A-C; B-A; C-D; D-B; E-F and
F-E with a total distance of 158 Km. This distance is a lower bound on the
solution because no assignment pattern would involve a distance of less
than 158 Kms. However, this solution is not a feasible one as it does not
provide for one reconnaissance tour. In fact, it involves two sub-tours A-C-
D-B-A and E-F-E (Node 1 in Figure 5 below).
1
Z = 158
UB = 204
(A-C-D-B-A) (E-F-E) LB = 158
Figure 5
13. So far, the upper bound is fixed at 204 Kms and the lower bound is
158 Kms. Now the aim is to reduce the gap between the upper and the
lower bounds and the end is reached where no more gap reduction is
possible. The gap reduction is done by continuous downward revision of the
upper bound. The lower bound remains fixed and acts as a check against
possibility of arriving at an incorrect solution. For the purpose of shortening
the gap between the upper and lower bounds, break the smallest of the sub-
tours i.e. E-F-E into two branches, one making the route E-F and the other
making F-E as unacceptable as shown in Figure 5. (There would be as
many branches in a given situation as the number of routes involved in the
sub-tour being broken).
127
CDM/H//TSM
14. First, start with the optimal solution obtained earlier at Para 11, insert
M (i.e. a very large relative value say 1000 in this case) in the cell
corresponding to the route E-F in the table, making the route impossible.
Now, solve it as an assignment problem as shown below (Figure 6):-
Figure 6
15. As we observe, the optimal solution to this problem leads to two sub-
tours A-C-A and B-F-E-D-B, with a total distance value of 162 Kms (Node 2
in Figure 8).
16. Next again start with the optimal solution of the problem obtained
earlier at Para 11 and put an M (1000) in the cell corresponding to the route
F-E (remember to restore original value for EF). This makes this route
unacceptable. Solve this problem also as an assignment problem. This is
shown below (Figure 7):-
Figure 7
17. The optimal pattern of assignments in solution above results in a
complete tour A-C-E-F-D-B-A of distance 165 Kms (Node 3 in Figure 8).
128
CDM/H//TSM
18. Considering the results of both the branches, we reduce the upper
bound to 165 Kms (because movement along the branch making F-E an
unacceptable route results in a feasible solution to the problem). We can
show the modified branch and bound tree as in Figure 8 below:-
Z = 158 UB = 204
(A-C-D-B-A) (E-F-E) LB = 158
2 3
Z = 162 Z = 165
(B-F-E-D-B) (A-C-A) (A-C-E-F-D-B-A)
(Revised UB = 165)
Figure 8
19. Although a full tour has been obtained, since the Z value at Node 2 is
162 there still may be a possibility of obtaining either a better solution (a full
tour may be possible with Z value of 162 to 164 i.e. less than 165) or an
alternate optimal solution (a full tour of 165 kms). Therefore, Node 2 needs
to be fathomed further. For this again, break the smallest of the sub-tours
found at Para 15 above i.e. sub-tour A-C-A into two branches: one that
makes the route A-C unacceptable and the other that makes the route C-A
unacceptable. For this purpose, start with the optimal solution given at Para
14 and put M (1000) in the cell indicating the route A-C. The problem is then
solved in the manner of an assignment problem, as shown below (Figure 9):-
Figure 9
20. Making the route A-C unacceptable results in a tour A-B-F-E-D-C-A
with a total distance of 171 Kms (Node 4 in Figure 11).
129
CDM/H//TSM
21. The result of making the route C-A unacceptable (Figure 10 below) is
a tour A-C-F-E-D-B-A involving a total distance of 168 Kms (Node 5 in
Figure 11).
Figure 10
22. Clearly, then, the movement along both the branches of this node
results in feasible solutions, but each one of them involves a plan that would
make the Commander travel longer than what he would if he accepts the
plan already at hand. To conclude, therefore, the upper bound cannot be
reduced any further and the optimal solution to the problem is the tour in the
order A-C-E-F-D-B-A with a total distance of 165 Kms.
23. The final branch and bound tree to this problem is shown below:-
1
Z = 158 UB = 165
(A-C-D-B-A) (E-F-E) LB = 158
2 3
Z = 162 Z = 165
(B-F-E-D-B) (A-C-A) (A-C-E-F-D-B-A)
(Revised UB = 165)
4 5
Z = 171 Z = 168
(A-B-F-E-D-C-A) (A-C-E-F-D-B-A)
(Blank Page)
131
CDM/OR/NWM
NETWORK MODELS
Introduction
Terminology
A C
D E
Figure - 1
6. The minimum span problem involves the selection of a set of arcs that
will span (connect) all nodes of a network and also minimise the sum of the
arc lengths. The problem has applications in several areas. It is particularly
useful in designing transportation systems in which nodes of the network are
terminals and the arcs represent operational tracks, highways, pipelines,
airways and so on.
7. Let us examine the technique of solving such a problem with the help of
an example. The layout of inner circuits in an ordnance depot is being
planned. The depot has five main functional areas. Inter-se distances
between them (in kms) are listed in the table below. The service wants to
minimise the length of roadway required to provide desired accessibility. All
roads are two way roads.
A B C D E
(b) Step 2 . Select any node to begin the algorithm; indicate that
this node is connected by a X mark and delete the column headed by
this node.
(c) Step 3. Find the smallest number in all the rows marked with
a X and circle it. The column containing this circled number indicates
the new connected node.
(d) Step 4. Mark the newly connected node with an X and delete
the column headed by this node.
(e) Step 5. Repeat steps 3 and 4 until all nodes have been
connected.
Step 1, 2, 3
A B C D E
Step 4 & 3
A B C D E
A B C D E
Step 4 & 3
A B C D E
10. All nodes are now connected. The minimum path is A-B, B-C, C-E and
B-D.
135
CDM/OR/NWM
B B 16
B .2
16
.2
1
7.
D
7.1
8 .3
A
8.3
DD
19.1
18.1
AA
C
.2
13.2
17
2
5.
7
25.
C
C E
5 .2
E
E
12. In this problem the objective is to find the shortest route along arcs from
one node to one or more than one nodes in the network. The arcs may
represent distance, timings or cost. Problems or sub-problems can often be
modelled as shortest route problems. Transportation problems can often be
modelled as shortest route problems. Other problems such as equipment
replacement policy and so on can also be modelled as shortest route
problems.
13. The technique of solving such a problem is illustrated with the following
example.
B
B
12
18 DC
28
AA
17
32
32
DE 4 C
E
Source
11
17
Sink
F
(b) Step 2. Star the source and assign it the value 0. Locate the
cheapest branch on the source and circle it. Star the second node of
this branch and assign this node a value equal to the cost of the
branch. Delete from the master list all other branches that have the
newly starred node as second node.
(c) Step 3. If the newly starred node is the sink, go, to Step
5. If not, go to Step 4.
Step 1 and 2
* * C D E F
A (0) B (18)
AB 18 BC 12 CB 12 DE 4 ED 4
AD 32 BD 28 CD 17 DF 17 EF 11
CF 32 DC 17
DB 28
Step 3
* * * D E F
A (0) B (18) C (30)
AB 18 BC 12 CB 12 DE 4 ED 4
AD 32 BD 28 CD 17 DF 17 EF 11
CF 32 DC 17 DC 17
DB 28
Step 4
* * * * E F
A (0) B (18) C (30) D (32)
AB 18 BC 12 CB 12 DE 4 ED 4
AD 32 BD 28 CD 17 DF 17 EF 11
CF 32 DC 17
DB 28
138
CDM/OR/NWM
Step 5
* * * * * *
A (0) B (18) C (30) D (32) E (36) F (47)
AB 18 BC 12 CB 12 DE 4 ED 4
AD 32 BD 28 CD 17 DF 17 EF 11
CF 32 DC 17
DB 28
17. Let us consider the following network shown in Fig 1 where the source is
node A and destination is node F.
A
18 B
12
C
28
32 17 32
4 E
D
11
F
17
Fig. 1 Network for Shortest Route
18. In the above example all arcs are directional. In case some arcs are
undirected, create two directed arcs in opposite directions, between the
same two nodes.
139
CDM/OR/NWM
(c) For all other intermediate nodes: no of routes taken out from it
minus no of routes taken into it will be 0 i.e. only one of the route into
it and one of the route out from it will be used for travelling.
20. Set up the Excel sheet as shown in Fig. 2. In Col M(under Net Supply)
ensure that 1 is filled in the row which has the source node in Col A.
Similarly, enter 1 in Col M against destination node. For all other nodes
enter 0 in Col M.
21. Click on Tools, Solver and Solver window will appear. Make entries
in Solver window as shown in Fig 3.
140
CDM/OR/NWM
22. Click on the options button and the Solver Options window appears.
In the Solver Options window check the Assign Linear Model and Assume
Non-Negative Check boxes as shown in Fig 4 and click on OK.
23. In the Solver window click on Solve. The results will appear as shown
in Fig 5. Click on OK in Solver results window. Solver results and sensitivity
analysis can be viewed in the same manner as for LP or Transportation
problems.
141
CDM/OR/NWM
Alternate Method
25. Fill in the formulae in various cells as shown in Fig 6 above. Make
entries in Solver window as shown in Fig 7. In Col L, under the heading
Reqmt enter 1 against the source node (Cell L15) and 1 against the
destination node (Cell L20). For all other nodes enter 0.
26. Repeat the step as in para 6. Click on Solve in Solver window and the
result will be displayed as in Fig 8. A value of 1 appears in the cells
corresponding to the arcs that are selected as a part of shortest route from
source to destination node. In present example, arcs AD, DE and EF are
selected as indicated by a 1 in cells D15, E18 and F19.
30. Arc capacities are shown by a number beside each arc as indicated
below:-
3 1 1
A B
The 3 by node A indicates that 3 units can flow along arc AB from A to
B and the 1 by node B indicates that 1 unit can flow from B to A.
31. Though there are many possible ways to send various flow quantities
along the paths from source to sink, the rule of conservation of flow must be
borne in mind. This implies that whatever flows into a node must flow out.
Solving the Maximal flow problem is almost as simple as repeatedly finding
paths from source to sink with available capacity. For this procedure to work
there are two other guiding lines that be followed.
32. The first guideline is that the maximum amount that can flow from
source to sink along a given path is equal to the minimum available capacity
on any arc in the path. (This is similar to the weakest link in the chain
analogy). Second, we need a way of changing flows along paths to achieve
a better flow assignment. Arbitrary assignment of flows along paths does
not guarantee that an optimal solution will be achieved. Optimal flow is
eventually achieved by the following procedure. When assigning a flow to
an arc
(a) Reduce the capacity in the direction of the flow by the amount
of the flow.
Step (b) may appear strange, but it allows us to 'undo' a flow that is
not optimal.
33. Maximal Flow Algorithm
(a) Step 1. Find a path from source node to sink node with a
positive flow capacity. If no paths with positive flow capacity exist,
STOP. The current flows are optimal.
(b) Step 2. Determine the arc in the path with minimum flow
capacity, Cmin . increment the flow along the path by Cmin .
B 4 0 E
0 7
2 0
2
7 1 0
14 A 4 0 C
5 3 G
0
1
2 4 7
D 3 0 F
0
B 0 4 E
2
4 2 3
0
3 1 4
A 4 0 C
5 3 G
0
2 4 1 7
D 3 0 F
0
0 4
B 2 E
4 2 3
0
3 1 4
4 0
A C G
2 3
3
2 4 1 4
D 0 3 F
3
4 0 4
B E 0
2 3
2
3 1 7
1 3
A C G
2 0
3
1
5 1 4
D 0 3 F
3
1 1 7
A 1 3 C
2 G
0 5
3
5 1 2
D 0 3 F
3
36. There being no other path with positive flow an optimal solution has
been reached. As can be seen a maximum flow of 1200 vehicles/day .can
be maintained by the following routings:-
ABEG - 400 vehs
ABFG - 200 vehs
ADFG - 300 vehs
ACDEG - 300 vehs
37. Alternative routes can be found but the maximum flow through the
network cannot exceed 1200 vehicles per day.
147
CDM/OR/NWM
8
10
D 7
B 3
6
1
10
2
A 4 F G
10 1 2
C
2
8
E
12
39. The maxiflow network problem is solved using Solver add-in of Excel.
Following points need to be understood before we proceed to solve the
maxiflow problem.
(b) For all intermediate nodes (i.e. nodes B to E)- flow into the
node is equal to flow out of the node.
(c) Flow on any given arc cannot exceed the arc capacity.
40. Set up the Excel sheet as shown in Fig 2. Following points need to be
kept in mind.
(a) In col B, under Node Name, first enter the source node name
and then below it the sink node name.
(b) In col C, under Node No, assign no 1 to the source node and
highest node no to the sink (7 in the present example).
148
CDM/OR/NWM
42. Click on Tools, Solver. The Solver window will appear. Fill the
information in Solver window as shown in Fig 3.
43. Click on the options button and the Solver Options window appears.
In the Solver Options window check the Assign Linear Model and Assume
Non-Negative Check boxes as shown in Fig 4 and click on OK.
149
CDM/OR/NWM
44. In the Solver window click on Solve. The results will appear as shown
in Fig 5. Click on OK in Solver results window. Solver results and sensitivity
analysis can be viewed in the same manner as for LP or Transportation
problems.
Alternate Method
various nodes of the network. Fill the arc capacities between various nodes
in the upper table. For example, from node A to node B arc capacity of 10
will be entered in the cell D3. Cells corresponding to the arcs that do not
exist should be left blank. For example, no arc exists between node A and
node D. Accordingly, cell F3 should be left blank.
46. Fill in the formulae in various cells as shown in Fig 6 above. The cells
in the lower table (C12:I18) act as variables to determine the actual flow in
various arcs. Make entries in Solver window as shown in Fig 7. Note that net
flow in all intermediate nodes (i.e. values in cell L13 to L17) is equal to 0 and
outflow from source node is maximised. The other set of constraints ensures
that actual flows do not exceed the capacities.
47. Repeat the step as in para 6. Click on Solve in Solver window and the
result will be displayed as in Fig 8. The values indicated in the lower table
(C12:I18) indicate actual flows in various arcs in order to achieve maximum
flow through the network. For example, actual flow of 9 units takes place
from A to B against actual capacity of 10 units. Total outflow from source and
hence the entire network is 17 units.
151
CDM/OR/NWM
Fig. 7 Solver Window Entries for Maximal Flow Problems (Alternate Method)
48. The following data in respect of charging sets has been collected: -
152
CDM/OR/NWM
Age in Years
4-5
0-1 1-2 2-3 3-4
Maintenance 10,000
7,500 8,300 10,900 8,500
Cost
Year end
14,000 6,000 9,000 3,500 2,500
salvage value
49. No charging set is kept more than 5 years. The new charging set
costs Rs 21,000 and only new charging sets are purchased as
replacements. (High maintenance cost in third year and better salvage value
at end of third year is because of a major overhaul of the equipment). It is
proposed to discard the current type of charging set after 9 years due to
anticipated change in technology.
50. Determine a replacement policy for the current stock of charging sets
2 years old, that will minimise, the total cost over the, next 9 years.
153
CDM/OR/QM
QM FOR WINDOWS
Introduction
Aim
Characteristics
Use of Package
Main Menu
Tool
Bar
Format
Bar
Instruction
Toolbar
Data
Area
Status
Bar
Utility
Bar
6. The main menu bar has seven menu options of File, Edit, View,
Module, Format, Tools, and Window. Initially only four options are enabled
i.e. File, View, Module and Tools. The other options will become enabled as
a module is chosen or as a problem is started. All options are explained in
the succeeding paragraphs.
7. File. File contains the usual options that one finds in Windows 98.
(a) New. This is chosen to begin a new problem/file.
(b) Open. This is used to open/load a previously saved file. File
selection is the standard Windows common dialog type. Notice that
the extension for files in the QM for Windows system is given by the
first three letters of the module name. For example, all linear
programming files have the extension *.lin.
155
CDM/OR/QM
(c) Save. Save will replace the file without asking you if you care
about overwriting the previous version of this file.
(d) Save As. Save as will prompt you for a file name before
saving. You can also specify the drive, such as C: or A:. This option is
very similar to the option to load a data file.
(e) Save as Excel File. Save as Excel File saves a file as an
Excel file with both the data and appropriate formulae for the solutions
and is available for some but not all of the modules.
(f) Save as HTML. Save as HTML saves the table as an HTML
formatted file that can immediately be placed on the Internet.
(g) Print. Print will display a print menu screen with four tabs.
(i) The Information tab allows you to select which of the
output tables should be printed.
(ii) The Page Header tab allows you to control the
information displayed at the top of the page.
(iii) The Layout tab controls the printing style. Information
may be printed as plain ASCII text or as a table (grid)
resembling the table on the screen.
(iv) The Printer tab allows certain print settings to be
changed.
(h) Exit. The last option on the File menu is Exit. This will exit the
programme if you are on the data screen or exit the solution screen
and return to the data screen if you are on the solution screen. This
can also be achieved by pressing the Edit command button on the
solution screen.
8. Edit. The commands under Edit have three purposes. The first four
commands are used to insert or delete rows or columns. The next command
is used to copy an entry from one cell to all cells below it in the column. The
last two entries can be used to copy the data table to other Windows
programs.
9. View. View has several options that enable you to customize the
appearance of the screen. The toolbar can be displayed or not. The
Instruction bar can be displayed at its default location above the data or
below the data, as a floating window, or not at all. The Status bar can be
displayed or not. Colours can be set to monochrome (black and white) or
from this state to their original colours.
10. Module. The Module selection contains a list of following
programmes listed in alphabetical order:-
(a) Assignment.
(b) Breakeven/Cost-Volume Analysis.
(c) Decision Analysis.
(d) Forecasting.
(e) Game Theory.
156
CDM/OR/QM
Solving a Problem
Conclusion
(Blank Page)
159
CDM/OR/LPS
Introduction
Illustrative Example
restricted to 30. The requirement is to find the best mix of aircraft sorties of
the two types of aircraft to deliver maximum bomb load on the target.
Max Z = 2A + 3B
Subject to
Subject to
Where S1, S2, S3 and S4 are the slack variables used to convert the
inequalities in Para 5 into equations.
the optimal point is reached. There are two rules that govern the selection of
next corner point in the simplex method.
(a) The next corner point must be adjacent to the current one.
11. The above procedure will now be illustrated by means of the example
given at Para 4 above. The constraint equation and the objective function
can be summarized in Tableau as follows:-
162
CDM/OR/LPS
Tableau 1
Obj Fn Cj 2 3 0 0 0 0
Coeff
Basic Qty A B S1 S2 S3 S4
Cj (2) (4)
Variables
(1) (3)
S1 0 400000 10000 20000 1 0 0 0
S2 0 30 1 1 0 1 0 0
S3 0 26 1 0 0 0 1 0
S4 0 15 0 1 0 0 0 1
Net Evaluation Row (5) 2 3 0 0 0 0
(a) S1, S2, S3, S4, are the basic variables when A and B have
been set equal to zero in equation in Para 7. This yields the basic
feasible solution which evaluates to zero and has values for all the
slack variables (S1, S2, S3, S4) (Refer Column (1))
(b) The values of the variables S1, S2, S3, S4 as obtained from
constraints equations (after putting A, B = 0 is expressed in this
column. (Refer Column (2)).
(d) The entries in the body of the table are the structural
coefficients. For example introduction of one unit of variable A into
basic solution would replace 10000 units of S1, one unit of S2 and
one unit of S3.
Note:-
Key Column
Key Column
S3 0 26 1 0 0 0 1 0 26/0 = --
S4 0 15 0 1 0 0 0 1 15/1 = 15
Key Number
Least RR
Key Row
RR Value
Entering Variable : B
Leaving Variables : S4
12. Since both A and B variables have positive value in NER, it indicates
that there is an opportunity available to improve the current basic solution.
Since variable B has the highest opportunity cost, it is selected as the
entering variable and column headed by B declared as key column.
13. At this point the leaving variable must be one of the current basic
variables S1, S2, S3 and S4. This is achieved by using the feasibility
condition that selects the leaving variable as the current basic variable
whose value will reach zero level when entering variable B reaches its
maximum value at the adjacent corner point. Since the replacement ratio of
B to S1 is 20,000, it means 400000/20,000 = 20 units of B can replace S1
from the basic solution. Likewise 30/1 = 30 units of B can replace S2 and
15/1 = 15 units of S4. Since none of the variables can assume negative
values, at most 15 units of B can be introduced i.e., the least of the
replacement ratio. Hence S4 is designated as the leaving variable. Row S4
164
CDM/OR/LPS
is called the Key Row. The coefficient at the intersection of Key Column and
Key Row is called the Key Number.
14. After determining the entering and leaving variables (by applying
optimality and feasibility conditions), the next iteration (new basic solution) is
determined by using two types of computations:-
16. For applying type 1 computation to the starting tableau, divide the S4
equation by the key number i.e., 1 since B takes the place of S4 in the basic
column. Type 1 computation will lead to the following changes in the starting
tableau:-
Cj 2 3 0 0 0 0
Basic Cj Qty A B S1 S2 S3 S4
S1
S2
S3
B 3 15 0 1 0 0 0 1
(a) S1 Equation
Old S1 equation (400000 10000 20000 1 0 0 0 )
- (20000) x new key row - 300000 0 -20000 0 0 0 -20000
= new S1 equation (100000 10000 0 1 0 0 -20000
165
CDM/OR/LPS
(b) S2 Equation
Old S2 equation (30 1 1 0 1 0 0)
-(1) X new key row (-15 0 -1 0 0 0 -1)
= new S2 equation (15 1 0 0 1 0 -1)
(c) S3 Equation
Old S3 equation (26 1 0 0 0 1 0)
(d) NER
Old NER equation (2 3 0 0 0 0)
-(3) X new key row (0 3 0 0 0 -3)
= new NER (2 0 0 0 0 -3)
Basic Cj Cj 2 3 0 0 0 0 Replacement
Variables Qty A B S1 S2 S3 S4 Ratio
S1 0 100,000/10000 =
100,000 10000 0 1 0 0 -20000
10
S2 0 15 1 0 0 1 0 -1 15/1 = 15
S3 0 26 1 0 0 0 1 0 26/1 = 26
B 3 15 0 1 0 0 0 1 15/0 = -
NER 2 0 0 0 0 -3 -
Entering variable : A
Leaving variable : S1
19. Since NER still has a positive entry steps 1 to 3 are repeated.
Entering variables is A. S1 having least Replacement Ratio, is identified as
leaving variable and row S1 is the key row. Key number is 10000.
21. Type 2 computation for other than key row results in the following: -
(a) S2 equation
Old S2 equation (15 1 0 0 1 0 -1)
- (1) X new key row (-10 -1 0 -1 0 0 +2)
10,000
= new S2 equation (5 0 0 -1 1 0 1)
10000
166
CDM/OR/LPS
(b) S3 equation
Old S3 equation (26 1 0 0 0 1 0)
-(1) X new key row (-10 -1 0 1 0 0 +2)
10000
(c) B equation
Old B equation (15 0 1 0 0 0 1)
-(0) X new key row (0 0 0 0 0 0 0)
= new B equation (15 0 1 0 0 0 1)
Tableau 3
Basic Cj Cj 2 3 0 0 0 0 Replacement
Variables Qty A B S1 S2 S3 S4 Ratio
A 2 10 1 0 1 0 0 -2 -5
10000
S2 0 5 0 0 -1 1 0 1 5/1 = 5
10000
S3 0 16 0 0 -1 0 1 2 16/2 = 8
10000
B 3 15 0 1 0 0 0 1 15/1 = 15
NER 0 0 -2 0 0 1
10000
Entering variable : S4
Leaving variable : S2
Tableau 4
Basic Cj Cj 2 3 0 0 0 0
Variables Qty A B S1 S2 S3 S4
A 2 20 1 0 1 2 0 0
10000
S4 0 5 0 0 1 1 0 1
10000
S3 0 6 0 0 1 -2 1 0
10000
B 3 10 0 1 1 -1 0 0
10000
1
NER 0 0 -1 0 0
10000
24. Since all entries in NER are either zero or negative, optimal solution
has been reached. The value of the objective function is Z = 2(20) + 3(10) =
70 tonnes.
26. In illustrative example all constraints were of less than equal to type
and the slack variables associated with the constraints were used as starting
basic feasible solution. However if the original constraint is an equation of
the greater than or equal to type we no longer have a ready basic feasible
solution. This is resolved by using artificial variables in inequality constraints.
168
CDM/OR/LPS
Special Cases
(a) One or more constraints essential for the problem have been
omitted.
(Blank Page)
171
CDM/OR/IP
INTEGER PROGRAMMING
Introduction
X1 - X2 3 1/2
X1 + X2 16 1/2
and that the simplex method has identified the optimal non-integer solution
as X1 = 10, X2 = 6 1/2. Notice that it is impossible to round of X2 to 6 or 7
(or any other integer) and retain feasibility. This can only be done by
changing the integer value of X1 . It is easy to imagine how such difficulties
can be compounded when there are numerous constraints and variables.
Maximise - - Z = X1 + 5 X2
Subject to the restrictions,
- X1 + l0 X2 20
- X1 2
and X 1 and X 2 are non-negative integers. Either the graphical or the
simplex method may be used to find that the optimal non-integer solution is
X 1 = 2, X 2 = 9 / 5, with Z = 11. If a graphical solution were not available
(which it would not be with more than three decision variables), then the
variable with the non-integer value, X 2 = 9 / 5, would normally be rounded off
in the feasible direction to X 2 = 1. The resulting integer solution is X 1 = 2,
X 2 = 1, which yields Z = 7. Notice that this is far from the optimal solution,
(X 1 , X 2 ) = (0, 2) where Z 10.
7. Begin with the original linear programming problem without the integer
restriction. Find the optimal solution by the simplex method. If all of the
variables have integer values, it is the optimal solution to the corresponding
integer programming problem. If not, then modify the original linear
173
CDM/OR/IP
Maximise 3T + 5C
Sub to 1T + 4C 9
2T + 3C 11 T, C 0
Contribution 3 5 0 0
Programme Qty
per Unit T C S1 S2
S1 0 9 1 4 1 0
S2 0 11 2 3 0 1
Contribution 3 5 0 0
Programme Qty
per Unit T C S1 S2
C 5 7/5 0 1 2/5 - 1/5
T 3 17/5 1 0 -3/5 4/5
NER 0 0 -1/5 -7/5
Now we see that both C and T have non-integer values in the solution
while C and T refers to an item which must be a definite integer :-
4/3 = 1+ 1/3
5/4 = 1+ 1/4
2/3 = 0+ 2/3
-2/3 = -1 + 1/3
The C Row is
If the left side is equal to 2/5 plus some integer (0, 1, 2 etc.), then left side
by itself is greater than or equal to 2/5, so we write :-
Contribution 3 5 0 0 0
Programme Qty
per Unit T C S1 S2 S3
C 5 7/5 0 1 2/5 -1/5 0
T 3 17/5 1 -0 -3/5 4/5 0
S3 0 -2/5 0 0 -2/5 -4/5 1
NER 0 0 -1/5 -7/5 0
175
CDM/OR/IP
S1 variable comes in and S3 goes out. From this point onwards, the
procedure is same as in the simplex, in this particular problem we find the
optimal integer solution after this iteration as shown below. There are no
more positive values in the NER, so we know the optimal solution has been
reached.
Contribution 3 5 0 0 0
Programme Qty
per Unit T C S1 S2 S3
C 5 1 0 1 0 -1 1
T 3 4 1 0 0 2 -3/2
S1 0 1 0 0 1 2 -5/2
NER 0 0 0 -1 -1/2
Z max. = 4 x 3 + 1 x 5 = 17
Although this simple example was solved in a single iteration and we got
integer solution, larger problems may require much iteration.
Steps of Procedure
15. (a) Step 1. Solve the original problem with the Simplex Algorithm.
(b) Step 2. If the solution has all integer values, it is optimal for the
integer programme. If not, look at the row having non-integer value of
the variable.
(c) Step 3. Transform this row into integer and fraction values and
introduce the new positive slack variable in this row.
(f) Step 6. Solve the simplex tableau and apply test of integer
values. If not, go back to Step 2.
176
CDM/OR/IP
Conclusion
16. The major 'hang up' with integer programming problem is not their
formulation but their efficient solution. Therefore, there are other solutions
methods also available in case the problem could not be solved by one
solution method. Each method has its own advantages and disadvantages.
What works well for one problem may fail with a very similar problem.
However, ultimately one will reach a solution.
177
CDM/OR/LTT
Table 1
----------------------------------------------------------------------------------------------------
To j
From 1 2 ... n ai
----------------------------------------------------------------------------------------------------
t 11 t 12 t 1n
1 a1
----------------------------------------------------------------------------------------------------
t 21 t 22 t 2n
i 2 a2
----------------------------------------------------------------------------------------------------
. .
. .
----------------------------------------------------------------------------------------------------
t m1 t m2 t mn
m am
----------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------
bj b1 b2 ... bn m n
a1= bj
i=1j=1
----------------------------------------------------------------------------------------------------
time units. Thus, cell (1, 3) is eliminated since it has t13 > = 20. The
closed path for x24 is as shown in Table 3.
Table - 3
----------------------------------------------------------------------------------------------------
To j
From 1 2 3 4 ai
----------------------------------------------------------------------------------------------------
1 10 5 20 + 11
12 3 - 15
----------------------------------------------------------------------------------------------------
1 + 7 9 - 20
i 2 5 15 5 25
----------------------------------------------------------------------------------------------------
12 14 16 18
3 5
----------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------
bij 12 8 15 10
----------------------------------------------------------------------------------------------------
Table - 4
----------------------------------------------------------------------------------------------------
To j
From 1 2 3 4 ai
----------------------------------------------------------------------------------------------------
1 12 10 5 20 3 11 15
- +
----------------------------------------------------------------------------------------------------
i 2 1 8 7 15 9 2 20 25
+ -
----------------------------------------------------------------------------------------------------
12 14 16 18
3 5 5
----------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------
bj 12 8 15 10
----------------------------------------------------------------------------------------------------
Table 5
----------------------------------------------------------------------------------------------------
To j
From 1 2 3 4 ai
----------------------------------------------------------------------------------------------------
1 10 10 5 20 5 11 15
- +
----------------------------------------------------------------------------------------------------
i 2 2 1 8 7 15 9 20
25
----------------------------------------------------------------------------------------------------
12 14 16 5 18 5
3 + -
----------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------
bij 12 8 15 10
----------------------------------------------------------------------------------------------------
Table -6
----------------------------------------------------------------------------------------------------
To j
From 1 2 3 4 ai
----------------------------------------------------------------------------------------------------
10 5 11
1 5 10 15
----------------------------------------------------------------------------------------------------
1 7 9 20 25
i 2 2 8 15
----------------------------------------------------------------------------------------------------
12 14 16 18
3 5 5
---------------------------------------------------------------------------------------------------
bj 12 8 15 10
----------------------------------------------------------------------------------------------------
8. From the solution in Table 6, it follows that no closed path can be
constructed for x31 without increasing the present minimum time. The
above plan is thus optimal and the total shipment time is 12. Details of the
plan are:-
X11 = 5 with t11 = 10,
X14 = 10 with t14 = 11,
X21 = 2 with t21 = 1,
X22 = 8 with t22 = 7,
X23 = 15 with t23 = 9,
X31 = 5 with t31 = 12.
181
CDM/OR/DP
DYNAMIC PROGRAMMING
Introduction
.96
B E
.98 .93
Fwd
.95
Tps
A .97 G
Fmn C .97 .95
HQ
.98
F
.94
D
.96
B E
.98 .93
Fwd
.95
Tps
A .97 G
Fmn C .97 .95
HQ
.98
F
.94
D
Figure 2 : Telecommunication Network Problem Broken into
Three Stages
The reliabilities of the paths E-G and F-G are obtained directly from
Figure 2 as .93 and .95, respectively. Thus, given that we are at node E or
F, the optimal decision is clear (Table 1 refers).
E E-G .93
F F-G .95
183
CDM/OR/DP
A to B A to C A to D
11. The previous calculations may seem like complete enumeration and
for very small examples such as this one, dynamic programming can
approach complete enumeration. However, for larger problems, many
computations are avoided by using dynamic programming and it is more
efficient than complete enumeration.
Principle of Optimality
13. An optimal policy has the property that whatever the initial state and
initial decision are, the remaining decisions must constitute an optimal policy
with regard to the state resulting from the first decision.
185
CDM/OR/DP
14. The relationships among stage, state, and policy is illustrated by the
serial diagram in Figure 3.
15. We can further exemplify the meaning of stages, states, policy, and
the principle of optimality by describing each of them in terms of the example
of Figure 2. The stages of the problem consisted of groups of nodes that had
the common property of being a specific number of arcs away from the
destination. Within each stage, a state simply consists of a particular node.
For each possible state (node) we had to determine the, optimal policy,
which consisted of the choice of the best arc leading to the next stage.
19. Disadvantages.
Conclusion
**********