Escolar Documentos
Profissional Documentos
Cultura Documentos
2
K J 1 , J 2 ,, J M , a set of constraints. We reduce the modified cost
M jobs to be performed. matrix into an equivalent canonical
d ( Ai , Aj ) Distance or cost matrix with elements
dij dij i j ;
associated with the node pairs ( Ai , A j )
where,
and (i, j 0, 1, 2,, ( N 1)). i min dij and
j
A salesman starts from station (
j min (dij i ) .
A0 , say) and returns to it after i
completing all the jobs. He completes all The new matrix is non-negative,
the M either by visiting all the N with at least one zero in each row and
stations or a subset of it and at each each column.
station only subset of M jobs can be 4. Mathematical formulation:
completed; also he should not visit a Mathematically, the problem may
station which is already visited. The be stated as
number M and N are positive integers Minimize
which are not necessarily equal. At home Z d ( Ai , A j ) x( Ai , A j )
station no job is available and the travel i j
3
In addition to the mathematical Suppose there are 10 stations
formulation the fixed position constraints ( A0 , A1, A2 ,, A9 ) and 20 jobs
are: ( J1 , J 2 ,, J 20 ) ; each station contains
Station(s) x and y are to be
some job facilities, where an arbitrarily
visited at kth step and lth step,
chosen distance matrix with job facilities
respectively; k and l are any of
at each station, is given in Table 1. Here
1, 2, , n and k l . the distance and job matrix is symmetric;
5. Numerical illustration: but it is equally applicable to an
For illustration, we consider the asymmetric matrix.
following example:
Table 1: Distance and job matrix
Jobs Station A0 A1 A2 A3 A4 A5 A6 A7 A8 A9
A0 6 1 2 3 7 2 14 9 9
J 2 , J 9 , J 10 , J 11 A1 17 4 2 12 8 20 11 13
J 5 , J 14 A2 9 1 18 16 12 18 16
J 3 , J 13 , J 17 A3 7 16 6 11 2 13
J 5 , J 9 , J 11 , J 18 , J 20 A4 7 8 17 13 19
J 3 , J 4 , J 15 A5 5 12 2 4
J 1 , J 9 , J 19 A6 10 17 16
J3, J7 , J9 A7 11 10
J 3 , J 6 , J 9 , J 11 , J 16 A8 8
J 8 , J 12 , J 15 A9
Here, we consider the fixed where i min dij and
j
position relations as:
The stations A6 , A4 , A9 and j min (dij i )
i
A3 must be visited at the Step-1, Step-3,
This new matrix is non-negative
Step-5 and Step-6 respectively. with at least one zero in each row and
6. Computational procedure: each column (cf. Table 3),
i.e.
6.1. Part-I: Formation of modified,
reduced cost matrix and alphabet
table(s): dij xij dij xij ( i j , a constant )
i j i j
Step 1: Modify the cost matrix
(5)
by assigning d ij for which the tour
the second part of the equation (5) can be
between station i and station j is not used as a bias of the matrix or in other
possible, following the fixed position words this part is a fixed part for any
constraints. tour.
Step 2: Reduce the modified cost Step 3: Using the reduced cost
matrix into an equivalent canonical matrix, we list under column i,
matrix (reduced modified cost matrix) (i 0, 1, 2,, ( N 1)) the nodes
(cf. Table 3) with elements
dij dij i j ; {0, 1, 2,, ( N 1)} in order
... J 0(i ) , J1(i ) , , J r(i ) , , J s(i ) , , J N(i )1
such that
... ... (4) rs if dijr dijs . The ordering
4
( J 0 , J1 ,, J N 1 ) so obtained for a given Step 2 : Move out of the current
node i, is defined as the alphabetic order Lk and go to the next block of order k 1
for column i, the table thus formed ;
containing all the columns go to 0.
0, 1, 2,, ( N 1) , is called the alphabet Step 3 : Is V ( Lk ) d (S k ) Vt ?
table (cf. Table 4). If yes, go to 4. If no, go to
Step 4: Construct another table 5.
using the 1st row of reduced cost matrix, Step 4 : Move to next sub-block
arranging the
( 0)
nodes J i , of Lk 1 ,with ak (say); with this new
(i 0,1,2,, ( N 1)) such that r s if Lk .
d r 0 d s 0 . The ordering thus obtained Go to 1.
gives another alphabet table (cf. Table Step 4a : Check for fulfillment of
5). This arrangement of column matrix is fixed position constraints
used for lower bound setting. The Is k < l ? If
alphabet table thus enables us to list the yes go to 5 If no go to 1.
tours in a systematic way such that the Step 5 : Form
values of incomplete words (leaders) at Lk 1 ( Lk ; ak 1 r ) where a k 1
is the
different stages also present a useful first sub-block of Lk ; put
hierarchical structure. We can set lower k k 1 . Go to 0a.
bounds to this incomplete word for Step 6 : Check for the
quick convergence to the optimal completion of all the M
solution. Finally, we obtain an initial jobs. All M jobs are over
*
trial solution S n with value Vt. ?
If yes, go to 7. If no, go to 1.
6.2. Part-II: Lexicographic search: Step 7 :
We start with a trial solution Vt V ( Lk ) d (ak ; A0 ) VT Vt ?
with a sequence T. If yes, go to 8. If no, go to 2 with
Step 0 : k 1 ; Lk is a block k k 1.
just entered. Take a1 as the first Step 8 : Vt VT , Ln T set
*
available entry.
k k 1 and go to 2.
Step 0a : k N ?
Step 9 : Is the first column of the
If yes, go to 6. If no, go
Alphabet Table A, exhausted?
to 1.
If yes, go to 11. If no, go to 10.
Step 1 : Compute V ( Lk ) ; Step 10 : Take the next available
V ( Lk ) Vt ? If yes, go to 3 and entry in Lk ; go to 1.
else go to 1a Step 11 : Search is over; current T
Step 1a : k 1? is the optimal sequence with value Vt .
If yes, go to 9. If no, go to Step 12 : Jobs are assigned in the
2. optimal tour.
Flow chart of the solution procedure (algorithm) has been given in Fig. 1 and Fig. 2.
Start
Cost matrix (d ij )
Start
Is k = N ?
No Yes
2
A9 Step-5
A3 Step-6
Any of Step-2, Step-4, Step-7, Step-8 and
Un-restricted A1 , A2 , A5 , A7 , A8
Step-9
Table 5:
Table 4 : Alphabet table LB
A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 A0
Fixed At At At At
Position Step-6 Step-3 Step-1 Step-5
A6 0 A4 0 A0 0 A1 0 A2 0 A9 0 A5 0 A8 0 A5 0 A3 0 A2 0
A1 A3 2 A4 0 A7 2 A1 1 A8 2 A7 0 A3 1 A7 1 A0 A1 4
A2 A0 4 A7 6 A2 5 A5 6 A0 5 A1 3 A9 1 A9 4 A1 A7 4
A3 A9 9 A3 8 A8 9 A7 11 A4 5 A2 11 A2 2 A0 5 A2 A5 5
A5 10 A8 15 A5 12 A8 18 A7 5 A8 11 A5 2 A1 9 A8 5
3
A4 A8 11 A1 16 A0 A0 A1 10 A0 A0 4 A3 9 A4 A3
A5 A7 13 A5 17 A4 A3 A3 14 A3 A4 7 A2 12 A5 A4
A7 A2 15 A9 17 A6 A6 A2 16 A4 A1 10 A4 15 A6 A6
A8 A6 A6 A8 A9 A6 A9 A6 A6 A7 A9
A9 A8
In the following lexicographic search table (cf. table 6), using fixed position
constraints and lower bounds and deleting the values Vt , the route number 1 gives a trial
solution as Vt 38 and the partial search table is obtained as follows:
Table 6: Lexicographic search table (Partial)
Route
No.
A0
Fixed Step-1 Step-2 Step-3 Step-4 Step-5 Step-6 Step-7 Step-8 Step-9 Step-10 Remark
Position A6 A4 A9 A3
1 A6 ( 0)
0 A5 ( 0)
0 A4 ( 5)
5 A2 ( 5)
0 A9 ( 22)
17 A3 ( 22)
0 A1 ( 22) 0 A8 (33)
11 A7 (34)
1 A0 (38)
4 38 Vt
2 A7 (35) 4
13 Vt
3 A7 ( 24) 4 2 A8 ( 24)4 0 A1 (33) 4 9 A0 (37) 4 37 Vt
27 A6 (0)0 0 A1 (3)0 3 A4 (3)0 0 A5 (9)0 6 A9 (9)0 0 A3 (9)0 0 A7 (11)0 2 A8 (11)0 0 A2 (23)0 12 A0 (23) 0 23 Vt
4
Table 7: Optimum solution
Station Jobs available Jobs to be performed # Jobs to be performed Distance
A0 --- --- --- ---
A6 J 1 , J 9 , J 19 J1 , J 9 , J19 3 2
A1 J 2 , J 9 , J 10 , J 11 J 2 , J10 , J11 3 8
A4 J 5 , J 9 , J 11 , J 18 , J 20 J 5 , J18 , J 20 3 2
A5 J 3 , J 4 , J 15 J 3 , J 4 , J15 3 7
A9 J 8 , J 12 , J 15 J 8 , J12 2 2
A3 J 3 , J 13 , J 17 J13, J17 2 2
A8 J 3 , J 6 , J 9 , J 11 , J 16 J 6 , J16 2 13
A7 J3, J7 , J9 J7 1 10
A2 J 5 , J 14 J14 1 12
A0 --- --- --- 1
Total --- --- 20 59
8. Computational experience:
A computer program of the algorithm has been developed in C languages and is
tested on the system HP COMPAQ dx2280 and Intel Pentium D Processors. Random
numbers are used to construct the cost matrix. The following table (Table: 8) gives the list
of the problems tried along with the average CPU run time (in seconds) for solving them.
Table 8: CPU run time
Serial Number of Number of No. of Problems Tried in the Average CPU Run time (in Sec.)
Number Stations Jobs Respective Dimensions Alphabet Table Search Table
1 5 8 6 0.00000 0.0000
2 8 10 6 0.00000 0.0000
3 10 15 6 0.05494 0.0000
4 12 15 6 0.05494 0.0045
5 15 15 6 0.08932 0.0284
6 18 20 6 0.08932 0.1046
8 20 20 6 0.10989 0.0984
9 25 25 6 0.10989 0.6457
10 30 30 6 0.16483 0.8972
11 40 30 6 0.85389 1.0356
12 50 40 6 1.54920 1.7218
9. Conclusion: Operational
It is seen that the time required Research
for the search of the optimal solution is (APORS), Vol. 20,
No. 1.
fairly less. [2] Ahuja, R.K., : Network Flows.
10. References: Magnanti, T. Theory,
[1] Achuthan, : Capacited L. and Orlin, Algorithms and
N.R., Vehicle Routing J.B. (1993) Applications.
Caccetta, L. Problem: Some Prentice Hall,
and Hill, S.P. New Cutting Englewood Cliffs,
(1998) Planes. Asia- N. J.
Pacific Journal of [3] Ahmed, N : The Oil Tankers
5
and Das, S Dispatching G.A.(1958) Solving Travelling
(2012) Problem Salesman
OPSEARCH, Vol. Problem. Opns.
49, No. 4, 366 Res., Vol.6, pp
385. 791-812.
[4] Ahmed, N : The Problem of [11] Dantzig, G., : Solution of a
and Das, S Maximum Fulkerson, R. Large-Scale
(2013) Attainable Flow in and Johnson, Travelling
Minimum Cost in S. (1954) Salesman Opns.
a Network Res., Vol. 5, pp.
OPSEARCH, Vol. 266-267.
50, No. 2, 197 [12] Das, S. : Routing and
214. (1976) Allied
[5] Ahmed, N : A precedence Combinatorial
and constraints in a Programming
Duttadeka, S travelling Problems (A
(2015) salesman problem lexicographic
(TSP) with Search
multiple job Approach). Ph.
facilities. MAT D. Thesis,
(Journal of Dibrugarh
Statistics and University.
Mathematical Unpublished.
Engineering), Vol. [13] Das, S. : The Most
01, Issue 03, 1 (1978) Economical Route
17. for a Travelling
[6] Bansal, S. P. : Optimal Tour Salesman
and Kumar, with Multiple Job Problem. Paper
S. (1971) Facilities at each presented in XI
Station. Indian Annual
Journal of Convention of
Mathematics, ORSI.
Vol.13, No. 1, pp. [14] Das, S and : A Travelling
45-49. Ahmed, N Salesman Problem
[7] Bellman : On a Routing and (2001) with Multiple Job
(1958) Problem. Facilities
Quarterly Applied OPSEARCH, Vol.
Mathematics, Vol. 38, No. 4, 394
XVI, No. 1, pp. 406.
87-90. [15] Flood, : The Travelling
[8] Christofides, : The Shortest M.M.(1956) Salesman
N. (1970) Hamiltonian Problem. Opns.
Chain of a Res., Vol.4, pp 61-
Graph. SIAM 75.
Journal of Applied [16] Little, D.C.I. : An Algorithm for
Mathematics, 19, et. al. (1963) the Travelling
pp 689-696. Salesman
[9] Clarke, G. : Scheduling of Problem. Opns.
and Wright, Vehicles from a Res., Vol.11, pp
J.W.(1964) Central Depot to a 972-989.
number of [17] Scroggs, R.E. An Algorithm for
Delivery Points. and Tharp, Solving Travelling
Opns. Res., Vol. A.L. ( ) Salesmen
12, pp 568-581. Problems in
[10] Crores, : A Method of Restricted
2
Contexts. Circulated).
(Privately
*****