Hello,

I'm using TraCI, to reroute vehicles in my simulation on a regular basis.

For the rerouting I have the traveltimes of certain edges. For the others
where I don't have this information I would like to use the minimum time
(expectation using the speedlimit = length/speedlimit).

Now, if I call vehicle.setAdaptedTraveltime(begTime=currentStep,
endTime=ENDSTEP, time=storedValue)for each value I have a value stored for,
and then call vehicle.rerouteTraveltime(currentTravelTimes=True), I think
it will use the current traveltimes instead of the minimum traveltimes for
all other edges, am I right?

The only solution to this problem that comes to my mind is calling
vehicle.setAdaptedTraveltime(begTime=step,
endTime=ENDSTEP, time=length/speedlimit)for every edge for every vehicle
when it is inserted.

Following this approach I have another question: What is the meaning of the
endTime parameter? For further reroutes (x steps later) it could happen
that I don't have data for edges I just adjusted and, hence, would want to
use the minimum (=length/speedlimit) value again. So I guess that after
rerouting I would have to reset all edges I adjusted using
vehicle.setAdaptedTraveltime(begTime=step,
endTime=ENDSTEP, time=length/speedlimit)again?

Or is there a smoother approach to my problem?

Thank you for your help

Moritz
------------------------------------------------------------------------------
_______________________________________________
sumo-user mailing list
sumo-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to