CPN Models of Transport Systems Michal Zarnay Slovakia
Department of Transport Networks, University of Zilina2/38 Michal Zarnay Department of Transport Networks Faculty of Management Science and Informatics University of Zilina Slovak Republic
Department of Transport Networks, University of Zilina3/38 Department of Transport Networks modelling by means of optimisation and simulation focus mainly on transport systems Villon – tool for simulation of complex transport nodes
Villon
CPN Model of Railway Marshalling Yard Technology
Department of Transport Networks, University of Zilina6/38 CPN Model of Railway Marshalling Yard Technology Aim Timed version Un-timed version
Department of Transport Networks, University of Zilina7/38 CPN Model of Railway Marshalling Yard Technology To test abilities of CPN for modelling of technological process in transportation systems
Department of Transport Networks, University of Zilina8/38 Model’s Characteristics resources used: –tracks –locomotives –personnel 2 technological flowcharts –incoming train processing –outgoing train processing
Incoming Train Processing
Outgoing Train Processing
Department of Transport Networks, University of Zilina11/38 CPN Model of Railway Marshalling Yard Technology Aim Timed version Un-timed version
Department of Transport Networks, University of Zilina12/38 Coloured Petri Net Model of Marshalling Yard 1 principal net and 3 subnets 72 transitions 137 places Short demonstration
Department of Transport Networks, University of Zilina13/38 Findings Coloured Petri net is able to model technological handling of train in marshalling yard and has some advantages Size and complexity of models for reasonable transport nodes is big + state space explosion
Department of Transport Networks, University of Zilina14/38 State Space Explosion depends on: –number of incoming trains in the model –number of wagons in a train –number of potential destination stations for wagons –if the trains and wagons are labeled uniquely
Department of Transport Networks, University of Zilina15/38 Table 1 Change in number of incoming trains – timed model, both incoming and outgoing trains have 10 wagons and all wagons have the same destination Processed incoming trains13 Nodes in state space Arcs in state space Calculation time [s]01286
Department of Transport Networks, University of Zilina16/38 Table 2 Change in number of wagons in incoming train – 1 incoming train only, 10 wagons in outgoing trains and all wagons have the same destination timed modelnon-timed model Processed wagons Nodes in state space Arcs in state space Calculation time [s]
Department of Transport Networks, University of Zilina17/38 Table 3 Change in number of different colours for resources - timed model, only technology of incoming train is carried out, 10 wagons in incoming train; all wagons have the same destination 3 incoming trains1 incoming train Modelling of tracks individuallygroupindividuallygroup Nodes in state space Arcs in state space Calculation time [s]
Department of Transport Networks, University of Zilina18/38 Table 4 Change in number of different colours for resources - timed model, both technologies carried out, 10 wagons in incoming train; all wagons have the same destination 1 incoming train Modelling of tracks individuallygroup Nodes in state space Arcs in state space Calculation time [s] 20
Department of Transport Networks, University of Zilina19/38 Table 5 Variable state space size for random number of wagons between 10 and 15 for incoming train – non-timed model, 1 incoming train; all wagons have the same destination and 10 wagons in outgoing train Wagons in 1 incoming train Nodes in state space Arcs in state space Calculation time [s]
Department of Transport Networks, University of Zilina20/38 State Space Explosion depends on: –number of incoming trains in the model –number of wagons in a train –number of potential destination stations for wagons –if the trains and wagons are labeled uniquely
CPN Model of Simple Transportation System with Banker's Algorithm for Deadlock Avoidance
Department of Transport Networks, University of Zilina22/38 CPN Model of Simple Transp. System with Banker's Algorithm Aim Without deadlock avoidance algorithm With Banker’s algorithm State space issues
Department of Transport Networks, University of Zilina23/38 CPN Model of Simple Transp. System with Banker's Algorithm To study deadlock situations in simulation of transport nodes’ technology and To find a method to avoid them
Department of Transport Networks, University of Zilina24/38 Model’s Characteristics concurrent activities in a process flexible routing available in process repeated allocation and de-allocation of resources during execution of a process professions for handling of resources
Department of Transport Networks, University of Zilina25/38 Station Layout
Technology Flowchart: Version 1
Technology Flowchart: Version 2
Department of Transport Networks, University of Zilina28/38 CPN Model of Simple Transp. System with Banker's Algorithm Aim Without deadlock avoidance algorithm With Banker’s algorithm State space issues
Department of Transport Networks, University of Zilina29/38 Banker’s Algorithm deadlock avoidance algorithm three versions: –A – basic algorithm –B – shorter calculation for some states –C – more complicates – accepts more states
Department of Transport Networks, University of Zilina30/38 CPN Model of Simple Transp. System with Banker's Algorithm Aim Without deadlock avoidance algorithm With Banker’s algorithm State space issues
Department of Transport Networks, University of Zilina31/38 Results (1) – Table Deadlock States -ABC 2 trains (I) trains (I) trains (I)00 2 trains (II) trains (II) trains (II)000
Department of Transport Networks, University of Zilina32/38 Results (2) – Table State Space Size -ABC 2 trains (I) trains (I) trains (I) trains (II) trains (II) trains (II)
Department of Transport Networks, University of Zilina33/38 Results (3) – Table Calculation Time [s] -ABC 2 trains (I) trains (I) trains (I) trains (II) trains (II) trains (II)
Department of Transport Networks, University of Zilina34/38 Issues in State Space Analysis For large configurations: SS calculation froze –cursor feedback: hourglass –processor utilization: minimal
Department of Transport Networks, University of Zilina35/38 Summary – Banker’s Alg. Model was used for Banker’s algorithm implementation for deadlock avoidance –state space reduction: same size for A and B C less restrictive than A and B –calculation time: B can get solution in shorter time than A longest for C
Department of Transport Networks, University of Zilina36/38 Summary – Use of CPN CPN –not used for deadlock avoidance –used for quick model building = environment for testing of the Banker’s algorithm
Department of Transport Networks, University of Zilina37/38 Future Plans Implementation of Banker’s algorithm in specialised simulation tool Villon Looking into possibilities of DAP based on Petri net structure –category of RAS used is complex
Thank you for your attention!