An Intelligent Search Technique To Train Scheduling Problem Based On Genetic Algorithm
An Intelligent Search Technique To Train Scheduling Problem Based On Genetic Algorithm
Abstract: Genetic algorithms are generally used to occur and on which track each train should be at
solve NP-complete problems, which include the train any given time to achieve certain predetermined
scheduling problem. Train scheduling consists of objectives such as minimum overall train delay,
finding optimal arrival, departure, and dwelling and safety of train movement. Given the above
times at the train stations. The objective is to
stated difficulties, we develop a genetic
minimize the associated delay that is the waiting
times at the station. In this paper, we present an algorithm, which can solve dispatching problem
application of genetic algorithms to a generic train by producing “good enough” solutions.
scheduling problem. The necessary algorithmic This paper presents the application of genetic
solution is described together with some empirical
algorithm (GA) to minimize delays at the
observations about the performance of our train
scheduling model. It is concluded that our model is intermediate and final train stations. The term
able to produce useful results in terms of minimizing delay describes the deviation of trains from its
delays and producing optimal schedules. scheduled departure and arrival times. The train
dispatching model is formulated subject to
1. INTRODUCTION operational constraints for safe operations of
trains between the stations. It is concluded that
One of the most challenging and difficult the model is able to produce useful results in
problems in dispatching trains is to resolve train terms of optimal schedules in reasonable time
conflicts. Conflicts arise due to deviation from for the test applications shown here. The article
the pre-established time schedules. Most of the is organized as follows.
railway systems rely on the established
schedules, which are made by the planners after First the problems in the optimal train
every two to three years. Any disruption of dispatching are presented. Section 2 focuses on
railway traffic in such an environment may the recent and old work done to solve train
cause the system to be unstable with a high scheduling problems. The basic formulation of
operating cost due to increasing interference our model is highlighted in section 3 and its GA
delays. Therefore, conflict has to be resolved based solution is given in section 4.
timely and effectively to minimize the losses. Subsequently, section 5 and 6 discuss the
Optimizing train schedules is a combinatorial implementation of results and conclusions
problem, which is NP-complete with time respectively.
complexity of O(2n), where n is the number of
conflicts [8]. For example, a problem instance 2. LITERATURE REVIEW
with 30 meets has 230 approximately 1 billion
possible solutions while an instance with 40 In the recent years, the complexities in the
meets has 240 approximately 1 trillion possible railway system are growing and numbers of
solutions. Therefore, emphasis is given finding researchers are focusing on optimal train
efficient heuristics in order to find the solution scheduling problems. The effort is mainly spent
in polynomial times. This means that the on developing mathematical models and to
computation time and memory requirement to obtain the solution in the desired time limits.
solve such a problem increases exponentially The techniques used to realize the models can be
with the problem size [2]. The optimum characterized into three groups: Mathematical
dispatching problem determines, by solving programming, Simulation techniques and
these conflicts, where meets and passes should Knowledge-based systems. In early seventies,
Authorized licensed use limited to: UNIVERSIDADE DE SAO PAULO. Downloaded on June 01,2021 at 01:05:10 UTC from IEEE Xplore. Restrictions apply.
Szpigel [10] developed the linear programming
model to determine the over taking and crossing , (1)
positions of trains provided the departure times Minimum dwell time at stations: The minimum
and upper velocities. Suader et. al, [9] proposed time for train q staying at stations is to
a decision support system for train dispatching allow for boarding and alighting, etc. Dwell time
that enumerates all feasible meet locations and for every station may not be the same. Thus if
selects the one, which minimizes total delay.
Peterson and Taylor [7] developed a dispatch train q arrives at station s at time it can
algorithm which calculates the crosses, transit
times of segments and determines which trains depart after the time .
takes the siding in order to minimize the total
travel times. Kraft et al [9] used different
approach and gave optimal dispatching of trains (2)
based on train priorities, delay penalty and track
running times of the trains. Branch and bound
approach was used to resolve the conflicts.
and ,
Kraay et al [6] proposed mathematical model
based on the conservation of fuel and to
Minimum headways: The safety time interval
minimize the delay of trains. Heuristics were
required for safe train operation, i.e. headways
used to find the solution of realistic size
has to be not less than the minimum headways.
problems. Jovanoic and Harker [4] formulated a
Headways are ensured between the trains during
model “SCAN” named as schedule analysis
meet and pass on entering or exiting the links.
based on combinatorial optimization and
We set out 0-1 integer variables.
simulation.
Constraints are formulated for the safe trains M (1 − hpqs ) + Aqs ≥ Aps + V Aenter (3)
operation on single track and to avoid the
conflicts between the trains traversing in the Constant M is chosen large enough so that
same direction and in opposite direction. equation constraints are satisfied. The term
Running time constraints: The running time of M (1 − hpqs ) = 0, if hpqs = 1 which makes sure
train q on link l is adjusted as the time of exit
that the constraint is necessary if and only if,
form the link ( X qs ) must be greater or equal to p follows q on link s.
the time of entry (arrival) to the link ( Aqs ) plus
the minimum time needed to traverse the link Exiting link headways: As above, to ensure the
minimum headway between train p and q on
( V t min ).
exiting from link s .
594
Authorized licensed use limited to: UNIVERSIDADE DE SAO PAULO. Downloaded on June 01,2021 at 01:05:10 UTC from IEEE Xplore. Restrictions apply.
M (1 − hpqs ) + X qs ≥ X ps + V X exit (4) ∑∑ ⎡⎣δ
q∈T s∈S
A
qs ( Aqs ) +δ X qs ( X qs ) + δ t qs (rqs ) + δ w qs ( wqs ) ⎤⎦
Usually there are bounds on the desirable
departure and arrival times of some trains or all (7)
trains at initial and final stations. Considering all the constraints and cost terms
defined above the train scheduling problem can
be stated as,
Aqs ≥ Aqs ≥ Aqs (5) Minimize P, equation (7), by choosing the values
( )
of X qs , Aq , s , hpqs , subject to (1) - (7), hpqs = 0 or
X qs ≥ X qs ≥ X qs (6)
1, for all p, q ∈ Tl , s ∈ S .
Where Aqs and Aqs are the earliest and the latest 4. SOLVING THE OPTIMAL TRAIN
arrival time, X qs and X qs are the earliest and the SCHEDULING PROBLEM
In literature, train scheduling problem has been
latest exit time of train q on link s respectively.
formulated in different ways, one is a job-shop
Then the earliest exit time from link s scheduling. For example, each segment of the
is X qs = Aq , s + V t min , and the earliest departure train paths is regarded as working procedure in
job-shop and each section of working line as
time on link s + 1 is Aq , s +1 = X qs + V w dwell , and
working machine. Train scheduling is also
so on. Similarly, we can work forward to represented as a network flow problem and
compute bounds for all later stations. The latest mainly as a mixed integer-programming
exit X qs and latest Aqs arrival time is calculated problem. For the details refer to the survey paper
[1]. The later formulation drew much attention
in the same manner explained above.
and has been thoroughly studied by many
researchers. All the solutions to this mixed
Objective function: The objective function
integer-programming problem are the variants of
includes solving the conflicts between trains in
branch and bound method, usually combined
order to minimize the travel times, dwell time at
with simulations. A small example is given to
stations. Trains are scheduled with a
illustrate the procedure. Four trains ( p, q , m, n )
prespecified departure time given with some
flexibility in the time table. The deviation of traversing between station 1 and 4, (see Fig. 2).
trains from its scheduled times causes a cost, or Three conflicts are resolved at the locations
revenue loss. This cost is written as designed for trains to meet or overtake known as
sidings or passing loops. Sidings are provided at
δ d qs ( Aqs ) and is assumed convex with minimum stations or between the lines segments to
at the scheduled departure time. Similarly there optimize the railway schedules.
are usually costs associated with the arrival
To find the optimal solution, using branch and
times ( X qs ), running times on links (rqs ) and
bound means the traversal of the solution tree of
dwelling times at stations ( wqs ) . all the possible solutions in train diagram, shown
in Figure 2. Finding an initial solution and an
upper bound to total cost function and then
Where rqs = X qs − Aqs
exploration of other branches of the tree until the
wqs = Aq , s +1 − X qs branches are fathomed. This method is prone to
what is called “combinatorial explosion” a
These costs are also included in the objective situation where for slightly larger instances of a
function. problem, the effort required grows
disproportionately. Therefore, emphasis is given
The general objective function now to be finding efficient heuristics like genetic algorithm
minimized can be written as: (GA) in order to find the solution in polynomial
Minimize P, i.e. times.
4.2 Genetic Algorithm
595
Authorized licensed use limited to: UNIVERSIDADE DE SAO PAULO. Downloaded on June 01,2021 at 01:05:10 UTC from IEEE Xplore. Restrictions apply.
Holland, [3] firstly developed genetic schedule as genes in the chromosome. It
algorithm (GA) as search algorithm based on contains mainly three attributes: the delayed
mechanics on natural selection and genetic rules train, the train passed by and the segment in
which train conflict occurs. This representation
will give the train schedule solution with
minimum chromosome length. There can be
different possibilities to make the feasible
solutions depending upon which train is given
priority over other (see Fig.3). Child train
schedule solutions are produced from the two
parents train schedule solutions.
596
Authorized licensed use limited to: UNIVERSIDADE DE SAO PAULO. Downloaded on June 01,2021 at 01:05:10 UTC from IEEE Xplore. Restrictions apply.
style is illustrated in Figure 4). In train There are variety of ways to choose the
scheduling problem it is desirable to have a coefficient Cmax .It may be chosen as a input
mutation which has good chance to improve the coefficient, as the largest g value observed thus
solution. far, as the largest g value in the current
population,
597
Authorized licensed use limited to: UNIVERSIDADE DE SAO PAULO. Downloaded on June 01,2021 at 01:05:10 UTC from IEEE Xplore. Restrictions apply.
initial and intermediate stations in the range of performance of the scheduling implementation.
10 to 30 trains in the schedule. Fig. 6 shows the It is concluded that the model is able to produce
number of violating constraints and the useful results in terms of minimizing total delays
generations. The running time, dwelling time and producing optimal schedules in reasonable
and the minimum headway constraints converge time.
to zero after 15 to 25 generations. It shows that
our model will prevent the violation of these
constraints and reduce the total delays.
The crossover types and the mutation rate are
varied to see the effect on schedule performance.
However, we found out that the single point
crossover produces good results faster. Results
for these tests were averaged over 10 runs for
each train problem instance.
REFERENCES
[1] Cordeau, J.F., Toth, P., Vigo, D., 1998. A survey of
optimization models for train routing and scheduling.
Transportation Science 32, 380–404.
[2] Garey, M.R., Jonhson, D.S., 1979. Computers and
Intractability: A Guide to the Theory of NP-
completeness. W.H. Freeman, San Francisco, CA.
Fig. 6. Illustration of violating constraints [3] Holland J.H., Adaptation in natural and Artificial
Systems. An Arbor, MI:Uni. Michigan Press, (1975).
As the GA based solutions involve a random [4] Jovanovic, D., Harker, P.T., 1990. A decision support
component for which the solution can vary at system for train dispatching: an optimization-based
methodology. Journal of the Transportation Research
each run. This is demonstrated in the Fig.7. Our Forum XXXI, 25-37.
model produced satisfactory results in terms of [5] Komaya, K., 1992. An integrated framework of
minimizing the delays at the intermediate and simulation and scheduling in railway systems. In:
final train stations (see Fig.7). The schedule Murthy, T.K.S., Allan, J., Hill, R.J., Sciutto, G., Sone,
fitness indicates the delay in seconds for S. (Eds.), Computers in Railways III, Vol. 1:
Management. Computational Mechanics Publications,
different simulations. After 35 generations there Southampton, Boston, pp. 611-622.
is no improvement found in the schedule to [6] Kraft, E.R., 1987. A branch and bound procedure for
minimize the delays. In our tests the total delay optimal train dispatching. Transportation Research
at the intermediate and final station reduces from Forum 28, 263–267.
35 min (2100 sec.) to 12 min. (700 sec.) as well [7] Petersen, E.R., Taylor, A.J., Martland, C.D., 1986. An
the cost associated to these delays are introduction to computer-assisted train dispatch.
Journal of Advanced Transportation 20, 63-72.
minimized.
Peterson and Taylor (1986)
[8] Sahin, I., 1999. Railway traffic control and train
6. CONCLUSION scheduling based on inter-train conflict management.
This paper presents the application of genetic Transportation Research B 33, 511–534.
algorithm (GA) to minimize delay at the [9] Sauder, R.L., Westerman, W.W., 1983. Computer aided
intermediate and final train stations. The train train dispatching: decision support through
optimization. Interfaces 13, 24-37.
dispatching model is formulated subject to
[10] Szpigel B., 1973. Optimal train scheduling on a single
operational constraints for safe operations of track railway. In: Ross, M. (Ed.). OR'72, North
trains between the stations. Then we present Holland Publishing Co. pp. 343-352.
some empirical observations about the
598
Authorized licensed use limited to: UNIVERSIDADE DE SAO PAULO. Downloaded on June 01,2021 at 01:05:10 UTC from IEEE Xplore. Restrictions apply.