you are mixing two different styles of input: either a) the intervals are children of the <rerouter> element within the additional-file or b) the <rerouter> uses the 'file' attribute and that definition file has <interval> elements as children of the root element
in your case the definition file has <rerouters> elements as children of the root element and that doesn't work. 2015-03-18 13:55 GMT+01:00 nguyen tran <[email protected]>: > 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 > > > > > > > > ------------------------------------------------------------------------------ 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
