This approach is reasonable. Another option would be to use traci.vehicle.setAdaptedTravelTime() to set a high value for the edge that shall be avoided and then call rerouteTravelTime() When done this way only a single vehicle is affected. Alternatives are listed at http://sumo.dlr.de/wiki/Simulation/Routing#Travel-time_values_for_routing
regards, Jakob 2017-03-22 20:12 GMT+01:00 Shekar V <[email protected]>: > Hello > > I'm trying to close and reroute vehicles around a particular edge. I am > able to do this using config/additional files by adding rerouter tags > before the simulation begins without issues. But I'm looking to do this > dynamically as the simulation is running via traci. > > My current plan is to setDisallowed for all the lanes in an edge to > simulate an edge closing and run rerouteTraveltime for all vehicles that > were going to pass through that edge. Is this a reasonable approach? Can > someones suggest an alternative? > > > Thank you > Shekar > ------------------------------------------------------------ > ------------------ > 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
