Hi Adam, duarouter is not looking for the shortest route but for the fastest (without considering traffic delays), so you may have (theoretically) fast roads in your network, like motorways, which get jammed when running the simulation, delaying the car. Also traffic lights can be a reason for such a mismatch.
Best regards, Michael Am 21.04.2017 um 17:38 schrieb Ádám Pintér: > Hi all, > > I'm investigating DUAROUTER's path and i've got a misunderstanding. > > I created rou file by duarouter script, using this code: > duarouter --trip-files trips.xml --net-file road.net.xml --output-file > result.rou.xml > > It supposed to give the shortest route, as i know. > > 1st case > - normally i run the simulation > simulation time 1693 > first car's route length 10752 > > 2nd case > - in this case i put extra code into sumo.cfg, but nothing else: > > <routing> > > <device.rerouting.probability value="1.0"/> > <device.rerouting.period value="1"/> > </routing> > > simulation time: 573 > first car's route length 5165 > > ---- > I checked by tripinfo-output in both simulation the first car's departLane > and arrivalLane are the same. Duration and routeLength are different. > > I don't understand why I don't get the shortest route in the first case > when i use DUAROUTER. > I use rerouting device to get a faster way in my simulation and then i > would like to compare with duarouter, but in my opinion i can't get shorter > route than duarouter's path. > > Can you give me some explanation, does rerouting device change something > else? > > Thank you in advance, > Adam > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > sumo-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/sumo-user > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ sumo-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sumo-user
