=Paper= {{Paper |id=Vol-1929/paper5 |storemode=property |title=Design and Implementation Issues of a Time-dependent Shortest Path Algorithm for Multimodal Transportation Network |pdfUrl=https://ceur-ws.org/Vol-1929/paper5.pdf |volume=Vol-1929 |authors=Abdelfattah Idri,Mariyem Oukarfi,Azedine Boulmakoul,Karine Zeitouni |dblpUrl=https://dblp.org/rec/conf/pkdd/IdriOBZ17 }} ==Design and Implementation Issues of a Time-dependent Shortest Path Algorithm for Multimodal Transportation Network== https://ceur-ws.org/Vol-1929/paper5.pdf
    Design and implementation issues of a time-dependent
    shortest path algorithm for multimodal transportation
                           network

    Abdelfettah IDRI1*, Mariyem OUKARFI2, Azedine BOULMAKOUL2 and Karine
                                   ZEITOUNI3
      1
        LIM Lab. IOS, National School of business and Management, Casablanca, Morocco
                                 abdelfattah.id@gmail.com
      2
        LIM Lab. IOS, Computer Sciences Department, Faculty of Sciences and Technology
                              Mohammedia, Mohammedia, Morocco
                                oukarfi.mariyem@gmail.com
                              azedine.boulmakoul@yahoo.fr
        3
          David Lab. University of Versailles Saint-Quentin-en-Yvelines, Versailles, France
                                 karine.Zeitouni@uvsq.fr



          Abstract. In recent years the structure of transportation networks has become
          more complex as a result of the fast development of the social and economical
          infrastructure. When dealing with time dependent multimodal context, transport
          planning represents a fundamental problem and more specifically for hazardous
          materials. Several approaches have been proposed that strive to reduce the fi-
          nancial costs, travel time and vehicle operating costs. Our work tends to focus
          on potential improvements related to resolve the shortest path problem. This
          paper handles the design and implementation issues of our monolithic approach
          solving the time dependent multimodal transportation problem aimed at calcu-
          lating the shortest path from a source node to a destination node. The algorithm
          on which relies our approach is target oriented and focuses basically on the re-
          duction of the search space by considering a virtual path from the source to the
          destination as well as a user defined constraint defining a dynamically extenda-
          ble corridor-like restricted search zone that can be applied on either the Eucli-
          dian distance or the travel cost function . The specification details of the algo-
          rithm have been already presented in our previous work and will be out the
          scope of this paper. Especially, this work highlights the aspects related to the
          different dimensions of the search space, namely the time, the mode and the
          constraint parameter.

          Keywords. Time dependent Multimodal transport network,
          search dimension, constraint based shortest path.


1         Introduction

   Travelers are often faced to a common route planning problem known in the public
transport system as the scheduling decision. It involves the use of different public
transport means. The complexity relates in general to the specific schedule of each
transport service, the connectivity level of the nodes defining the public transport
network and the density of this later. This problem is formulated as the determination
of the shortest path between the source and the destination regarding the traveler pre-
ferences in terms of travel costs and the transport infrastructure requirements.
   A transport network is called multimodal when at least two different means of
transport are required to perform a travel between a source and a destination. To find
the optimal route manually is not an easy task regarding the constraints mentioned
above that’s why there is a need to compute the shortest path in a dynamic environ-
ment.


2      Related works

    Several optimizations approaches have been proposed to improve the calculation of
the shortest path in a time dependent multimodal transport network varying from
classical solution relying on speed up techniques Bast et al. [1], to solutions introduc-
ing the time dependency component Cooke and Halsey [2], Pyrga et al. [3] and Baka-
lov et al. [4]. More developed approaches were introduced to extend a single mode to
multimodal transport network Schultes et al. [5] and Pajor et al. [6]. Other relevant
solutions relies on the graph techniques like the concept of the hypergraphs Bielli et
al. [7], the transfer graph Ayed et al. [8] and the hierarchical graph Zhang et al. [9].
    In this paper, we will focus on the design and implementation aspects based specif-
ically on our previous work that expresses a constraint based shortest path algorithm
in a time dependent multimodal context Idri et al. [10]. This algorithm assumes a
straightforward virtual path from the source to the destination and drives the search
process in such a way that only the nodes within the corridor defined by a pre-
calculated constraint D and the virtual path will be considered for the final solution.
When the algorithm needs extra nodes to converge to a solution, the search space will
be expanded progressively by increasing the constraint D until a solution is found if it
exists.


3      Definitions

    In the following, a transport network is considered as a direct graph and is denoted
as G = (V, E, M, T), where V = {v1,…,vk} is a set of vertices, E = {e1,…,em} is a set
of edges, M = {m1,…,mk} is a set of modes and T = {t1,…,tn} is a set of travels. Each
travel tj is represented with a couple (tjd, tja) specifying the departure and the arrival
time. In a time-dependent multimodal context, an edge el can be defined as a tuple (vi,
vj, mk) expressing that there is a connection between node e i and node ej using mode
mk. To highlight time-dependency, an edge is mapped to a timetable that is defined as
a set of travels involving all the possibilities of traveling from node ei to node ej using
mode mk. This defines a cost function that is applied to the edge el at instant t Cel(t).
Note that multiple modes can be applied to the same edge. A path is then a set of con-
nected edges from the start node to the target node P = {e s ,…, et }.
                      Table 1. Sample multimodal transport network

                   Mode 1                                   Mode 2
    Edge       Timetable  Cost function        Edge     Timetable Cost function
    ae          13            2              ed        14           7
                 34            4                       12  15         3
    ec          35            1              af        46           4
                 48            1                         79           1
    cb          68            5              fc        67           1
                7  10          2                         89           5
    ga          23            7              ga        39           1
                9  11          6                        8  11        10
    bg         9  10          1              bg      10  11         5
               10  11          1                       13  15         8

   A sample transport network is given in Table 1. This network contains two modes
and a set of edges related to their timetables and cost function which is considered as
the travel time in our case. But it can represent the financial cost as well, or any other
preferred variable and the same rules remain valid. Whenever we need to demonstrate
specific aspects, we will refer to this sample network.


4      Constraint based shortest path algorithm

   This section describes formally our approach by specifying the algorithm and its
input parameters.
   Figure 1 shows a recursive version of the constraint based shortest path algorithm
(CBSPA) as introduced in our previous work [10]. When the algorithm is executed, it
starts with a restricted search space defined by the user-defined constraint d which
defines the threshold distance of the search space: the distance of a given node to the
virtual path defined between the source and the target node. The constraint d is in-
creased with a step parameter Δd whenever no nodes can be captured within a given
iteration until the overall maximal distance Dmax is reached. The function OneS-
tepMMTDSP(v,t) generates the next iteration candidates based on the timetable of the
vertex v assumed Vs and Vt represent the start and the target nodes. The algorithm
works on a time-dependent multimodal network G(V,E,M,T) as defined above.
    Algorithm CBSPA (u, d, path ,Q , t)
      Output: shortest path
       // (VsVt): virtual path which is calculated based
    on the coordinates (Euclidean case: straight line
    between Vs and Vt) or the minimal/mean value of the
    cost function (in our case, the travel time)
       // Q: the set of the neighbors of u satisfying
    the constraint control, a parameter needed to for-
    ward the intermediate results
       // t: start time; u: start node
       // 𝑑 = 𝑛1 𝑑𝑖𝑠𝑡 𝑣𝑖 , 𝑉𝑠𝑉𝑡 𝑛 : represents the mean dis-
    tance(cost) from all nodes to the virtual path
       // Dmax: represent the maximum value of d, that’s
    the distance (cost) to the farthest node of the
    network
    1    If u = Vt then
    2      Return path
    3    Else
    4     Let Q = {v ∈ Neighbors(u)/ dist(v,(VsVt)) ≤ d}
           In
    5      if Q = Ø then
    6        If d < Dmax then
    7          CBSPA (u, d+Δd ,path,Q,t)
    8        Else
    9          Let w = predecessor(u) in
    10         CBSPA(w,d+Δd, path\{u},Q,t)
    11     Else
    12       Let Qnew = 𝑣⋲𝑄 𝑂𝑛𝑒𝑆𝑡𝑒𝑝𝑀𝑀𝑇𝐷𝑆𝑃(𝑣, 𝑡) in
    13       Let Q = {v ∈ Qnew/dist(v,(VsVt))[ Node id: 2 ] ]           ]======>[ Node id: 7 ] ]
                                   [                                  [
                                   [ start node: [ Node id: 1 ]]      [ start node: [ Node id: 3 ]]
                                   [ end node: [ Node id: 5 ]]        [ end node: [ Node id: 2 ]]
                                   [ travel : 1 ===> 3 ===> 2]        [ travel : 6 ===> 8 ===> 5]
                                   [ mode : 1]                        [ mode : 1]
                                   [ start node: [ Node id: 5 ]]      [ start node: [ Node id: 2 ]]
                                   [ end node: [ Node id: 3 ]]        [ end node: [ Node id: 7 ]]
                                   [ travel : 3 ===> 5 ===> 1]        [ travel : 9 ===> 10 ===> 1]
                                   [ mode : 1]                        [ mode : 1]
                                   [ start node: [ Node id: 3 ]]      [ Total cost : 6]
                                   [ end node: [ Node id: 2 ]]        ]
                                   [ travel : 6 ===> 8 ===> 5]        time :0 s
                                   [ mode : 1]                        Final D: 5
                                   [ Total cost : 8]
                                   ]
                                   time :0 s
                                   Final D: 10



                              Fig. 6. CBSPA result models

   Figure 7 shows how the search process behaves regarding the constraint parameter
d and the network density expressed in the total nodes number. The final constraint
value reached within a search process reflects the iteration number performed to
achieve the next node. It is clear that the iteration number refers to the level of the
search space reduction. That’s, as long as the maximal value of the constraint parame-
   AMI Routerter is not reached; this means the search space is restricted accordingly
to the number of iterations. Figure 7 shows also that there is an impact of the network
size on the iteration number at least with the samples used in these tests.




         Fig. 7. Impact of the network density on the constraint parameter iterations


8      Large scale networks

   Our approach to deal with large scale networks is based on parallel distributed ar-
chitecture that relies on a Manager/Agent model. This model fits well with our needs
as it is scalable and each agent runs in an independent way (parallel). Multiple agents
cooperate to deliver partial solutions which are gathered by the manager that builds up
the complete solution. Figure 8 exposes a distributed architecture relying on a
CORBA framework as it offers object-oriented facilities and distributed event man-
agement that supports Asynchronous Method Invocation (AMI). A model based on
Map/Reduce architecture may also give similar results.

                                            Manager



                          Dispatcher        Communicati        Collector
                                            on Manager




                                          AMI Router



                        Agent 1             Agent i            Agent n



                                  Fig. 8. CORBA Architecture
   Each agent is assigned the task to compute elementary paths starting from a given
intermediate node Vi (initially the start node). These paths are represented by the set
of the next nodes directly connected to Vi and satisfying the algorithm constraints.
The manager is responsible for dispatching the tasks, collecting the elementary re-
sults, building the complete solution as well as covering the communication issues
with the agents.


9      Conclusion

    In this paper we treated some design and implementation aspects regarding our ap-
proach dealing with the time-dependant multimodal transport problem expressed as
finding the shortest path algorithm. Especially, we focused on the design techniques
to solve the problem in the context of the different search dimensions including the
user defined constraint that influences the search process and the final results. To
address the big data issue in this context, we adopted a parallel distributed architec-
ture that guarantees the scalability and improves the performance of the algorithm.
    We intend in our future work to investigate deeply the behavior of existing algo-
rithms when embedding this approach within these algorithms in a parallel distributed
architecture.
References
 1. Bast, H. et al., “Route planning in transportation networks.” Technical Report MSR-TR-
    2014-4. Microsoft Research, Microsoft Co. (2009).
 2. Cooke, K. & Halsey, E., “The Shortest Route through a Network with Time-Dependent In-
    termodal Transit Times”. Journal of Mathematical Analysis and Applications, 14, 493-498
    (1966).
 3. Pyrga, E., Schulz, F., Wagner, D., &Zaroliagis, C. 2008.“Efficient models for timetable in-
    formation in public transportation systems”. Journal of Experimental Algorithmics (JEA),
    12, 2-4, (2008).
 4. Bakalov, P., Hoel, E., &Heng, W. L., Time dependent transportation network models. In
    Data Engineering (ICDE), 31st International Conference on (pp. 1364-1375). IEEE (2015).
 5. Schultes, D., “Route planning in road networks”. Ph.D Thesis of Karlsruhe Institute of
    Technology (2008).
 6. Pajor, T., “Multi-modal route planning”.Master thesis of Karlsruhe Institute of Technology
    (2009).
 7. Bielli, M., Boulmakoul, A., and Mouncif, H., “Object modeling and path computation for
    multimodal travel systems”. European Journal of Operational Researchpp. 175, 1705–1730
    (2006).
 8. Ayed, H., &Khadraoui, D., “Transfer graph approach for multimodal transport prob-
    lems”.Second International Conference MCO, Metz, France – Luxembourg (2008).
 9. Zhang, L., Yang, H., Wu, D., & Wang, D., “Solving a discrete multimodal transportation
    network design problem”. Transportation Research Part C: Emerging Technologies, 49,
    73-86 (2014).
10. Idri, A., Oukarfi, M., Boulmakoul, A., Zeitouni, K. &Masri, A., “A new time-dependent
    shortest path algorithm for multimodal transportation network”.Procedia Computer
    Science.volume 109, Pages 692–697 (2017).