Hi Jakob,
I attach example files of additional file and rerouter file for the simplest 
case. Would you mind having a look at them and tell me if I am wrong in 
defining the files? The simulation runs normally except that there are no 
reroutes at all. 
Thank you very much.Best regards,Nguyen 
      From: Jakob Erdmann <[email protected]>
 To: nguyen tran <[email protected]> 
Cc: "[email protected]" <[email protected]> 
 Sent: Wednesday, March 18, 2015 5:22 AM
 Subject: Re: [sumo-user] reroute not work
   
attach the file(s) itself instead of pasting

2015-03-18 13:07 GMT+01:00 nguyen tran <[email protected]>:



Hi Jakob,
Thank you for your quick reply. I'm terribly sorry that my output file was a 
mess but you still tried to help me. In the example, it is a cyclic route and I 
have to specify which vehicle follow which route in the additional file. In my 
case, after finishing a route, cars will choose another route starting from 
that destination with a probability. Because the network is quite large, I 
wrote it according to the "Assigning a new route" in 
http://sumo.dlr.de/wiki/Simulation/Rerouter. I wrote the additional file 
describing all routes in the network and all rerouters with their specific 
ending edges and their IDs. After that, I wrote the rerouter definition files 
which define which possible routes to choose from those ending edges. The 
rerouters in the definition file are recognized by their IDs.  Would you please 
point out which part looks strange to you? I really appreciate it!This is just 
an unrelated question but how should I write the xml part so that it wouldn't 
cause an inconvenience like that any more?
Thank you for your patience and your time.Best regards,Nguyen
      From: Jakob Erdmann <[email protected]>
 To: nguyen tran <[email protected]> 
Cc: "[email protected]" <[email protected]> 
 Sent: Wednesday, March 18, 2015 12:34 AM
 Subject: Re: [sumo-user] reroute not work
   
your inputs look a bit strange.
Try using this simple example as a template:
http://sumo.dlr.de/trac.wsgi/browser/trunk/sumo/tests/sumo/extended/rerouter/cyclic_route/simple_example/input_additional.add.xml



2015-03-18 5:26 GMT+01:00 nguyen tran <[email protected]>:

Hi All,
I created a additional xml file and a definition reroute file for rerouting 
purpose but the simulation doesn't work. Cars only finish their routes from 
generated route file and disappear. May I ask if there is anything wrong with 
the files that I created?

<additional>   <route edges="10toM9_10 M9_10to9 9toM9_13 M9_13to13" 
id="Route10to13"/>   <route edges="10toM10_11 M10_11to11 11toM11_15 M11_15to15" 
id="Route10to15"/>   ... (list all available routes)  <rerouter edges="M1_2to1" 
file="Grid_L300_N3.rerou.xml" id="Rerouter1" probability="1"/>   <rerouter 
edges="M1_2to2 M2_3to2 M2_6to2" file="Grid_L300_N3.rerou.xml" id="Rerouter2" 
probability="1"/>  ...(list all ending edges when cars will choose a new route 
from the above route list)</additional>
<rerouter>   <rerouter id="Rerouter1">      <interval begin="0" end="3600">     
    <routeProbReroute id="Route1to2" probability="0.076923"/>         
<routeProbReroute id="Route1to3" probability="0.076923"/>         ... (list all 
possible route from the ending edges)      </interval>   </rerouter>   
<rerouter id="Rerouter2">...</rerouter>
Thank you.Best regards,Nguyen


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user




   



  
<?xml version="1.0" encoding="utf-8"?>
<rerouter>
   <rerouter id="Rerouter0">
      <interval begin="0" end="3600">
         <routeProbReroute id="Route1to3" probability="0.5"/>
         <routeProbReroute id="Route1to4" probability="0.5"/>
      </interval>
   </rerouter>
   <rerouter id="Rerouter0">
      <interval begin="0" end="3600">
         <routeProbReroute id="Route3to1" probability="0.5"/>
         <routeProbReroute id="Route3to4" probability="0.5"/>
      </interval>
   </rerouter>
   <rerouter id="Rerouter0">
      <interval begin="0" end="3600">
         <routeProbReroute id="Route4to1" probability="0.5"/>
         <routeProbReroute id="Route4to3" probability="0.5"/>
      </interval>
   </rerouter>
</rerouter>
<?xml version="1.0" encoding="utf-8"?>
<additional>
   <route edges="1toM1_3 M1_3to3" id="Route1to3"/>
   <route edges="1toM1_2 M1_2to2 2toM2_4 M2_4to4" id="Route1to4"/>
   <route edges="2toM1_2 M1_2to1" id="Route2to1"/>
   <route edges="2toM1_2 M1_2to1 1toM1_3 M1_3to3" id="Route2to3"/>
   <route edges="2toM2_4 M2_4to4" id="Route2to4"/>
   <route edges="3toM1_3 M1_3to1" id="Route3to1"/>
   <route edges="3toM3_4 M3_4to4" id="Route3to4"/>
   <route edges="4toM2_4 M2_4to2 2toM1_2 M1_2to1" id="Route4to1"/>
   <route edges="4toM3_4 M3_4to3" id="Route4to3"/>
   <rerouter edges="M1_2to1 M1_3to1" file="Grid_L300_N1.rerou.xml" id="Rerouter1" probability="1"/>
   <rerouter edges="M1_3to3 M3_4to3" file="Grid_L300_N1.rerou.xml" id="Rerouter3" probability="1"/>
   <rerouter edges="M2_4to4 M3_4to4" file="Grid_L300_N1.rerou.xml" id="Rerouter4" probability="1"/>
</additional>
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to