Instead of loading the finished routes into sumo, you can load the trips (add randomTrips option --validate to ensure that all trips can reach their destination). When loading trips into sumo, they will pick a suitable route at departure, taking into account congestion. You can add further options to trigger periodic rerouting: http://sumo.dlr.de/wiki/Demand/Automatic_Routing
regards, Jakob 2018-08-11 21:11 GMT+02:00 mohsen hs <mohsenh...@yahoo.com>: > Hello there, > > I generated some random trips and then used duarouter to generate the > routes. In the simulation, I can see that the vehicles are not clever > enough to change their path to the destination with a less congested route, > although they exactly do they have been told to do by the route. How can I > overcome this problem either by Traci or through the shell? > > An example is shown below. > > Many thanks > Mohsen > > py randomTrips.py -n map10_limitedWellington.net.xml -b 0 -e 600 -p > 0.01449 --vehicle-class private --seed 1 --max-distance 6000 -o > tripsv12018_p41400_e600_10_limitedWellingtonjt.trips.xml > > duarouter > --trip-files=tripsv12018_p41400_e600_10_limitedWellingtonjt.trips.xml > --net-file=map10_limitedWellington.net.xml --repair.from t --repair.to > t --repair t --seed 1 --remove-loops t --routing-algorithm astar > --output-file=mapv12018_p41400_e600lw.rou.xml > > > [image: Inline image] > > > _______________________________________________ > sumo-user mailing list > sumo-user@eclipse.org > To change your delivery options, retrieve your password, or unsubscribe > from this list, visit > https://dev.eclipse.org/mailman/listinfo/sumo-user > >
_______________________________________________ sumo-user mailing list sumo-user@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/sumo-user