Hello, - the values passed to edge.setEffort() function only applies to rerouting using the function vehicle.rerouteEffort() (this uses arbitrary time-dependent weights for routing but traveltimes are still used to determine at what time which weights are to be used) - the more common application is to route according to the shortest travel time using vehicle.rerouteTraveltime(). For an explanation on how to set the weight values, see here: http://sumo.dlr.de/wiki/Simulation/Routing#Travel-time_values_for_routing
regards, Jakob 2016-12-05 9:55 GMT+01:00 Hui Xiong Ng <[email protected]>: > Hi, > > I would like to ask, if I would like to enforce different weight at > different period of the simulation is my below implementation correct? > > Call method* setEffort*(self, edgeID, effort, begin=None, end=None). > > If I apply the following; > setEffort(edge_1, 200, 10, 20) > setEffort(edge_1, 100, 50, 60) > > During time step 10 - 20(inclusive), the weight of "edge_1" will be 200. > During time step 50 - 60(inclusive), the weight of "edge_1" will be 100. > In other time step, other than 10-20 & 50-60, the weight will be the > default weight, which is traveltime. > > Is my understanding correct? > > Thank you. > ------------------------------------------------------------ > ------------------ > _______________________________________________ > sumo-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/sumo-user > ------------------------------------------------------------------------------ _______________________________________________ sumo-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sumo-user
