Dear Jakob,

thank you for your very fast response!

One thing, however, is still not 100% clear to me. If I use the functions
in the following order:

setAdaptedTraveltime(begTime=1, endTime=1000, time=20)
setAdaptedTraveltime(begTime=10, endTime=11, time=30)
# at step 10:
rerouteTraveltime(currentTravelTimes=True)
# should use 30 for the edge, right?
# at step 12 (or 11 - is endTime inclusive?)
rerouteTraveltime(currentTravelTimes=True)
                                          # should use 20 for the edge,
right?

So my question is: Does the second call to setAdaptedTraveltime only
overwrite the individual data storage for the specififc time steps and
leave the individual data storage for the other steps untouched, or does
the second call mean the individual storage for other time steps gets
deleted?

Regards,
Moritz



On Thu, Nov 19, 2015 at 10:07 AM, Jakob Erdmann <namdre.s...@googlemail.com>
wrote:

> Hello,
> whenever there are no vehicles on an edge the current travel times default
> to the minimum travel time.
> The endTime parameter ensures that the vehicle will fall back to another
> data source after that time.
> An overview of rerouting methods and the used weights can now be found at
> http://sumo.dlr.de/wiki/Simulation/Routing
>
> regards,
> Jakob
>
> 2015-11-19 6:26 GMT+01:00 Moritz Reinhardt <moritz.reinha...@univie.ac.at>
> :
>
>> 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
>>
>
>
------------------------------------------------------------------------------
_______________________________________________
sumo-user mailing list
sumo-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to