traci.simulation.findRoute uses sumo functionality implemented in the C++
core.
However, you can use python functions to affect the edge weights
(traveltimes) that are used to find the fastest route.
See
https://sumo.dlr.de/wiki/Simulation/Routing#Travel-time_values_for_routing

Am Do., 5. Sept. 2019 um 03:29 Uhr schrieb Raheleh Zarei <
[email protected]>:

> Thanks for your reply.
> Can I customize  the code behind traci.simulation.findRoute in my python
> code?
>
> Thanks
>
> On Wed, Sep 4, 2019 at 1:56 PM Jakob Erdmann <[email protected]>
> wrote:
>
>> The dijstra.py module is not actively developed or tested anymore. I
>> canot vouch for its usefulnes.
>> if you want to find shortest paths on a sumo network you can use
>> traci.simulation.findRoute
>>
>> Am Di., 3. Sept. 2019 um 23:39 Uhr schrieb Raheleh Zarei <
>> [email protected]>:
>>
>>> Hello
>>>
>>> I am writing a program in python, using TracI to connecto to SUMO
>>> simulation data. I need to use the Dijkstra algorithm for my program. I
>>> want to know if I can use the Dijkstra,py in tools folder of  SUMO? How can
>>> I call this script and use its functions?
>>>
>>> Thank you
>>>
>>> --
>>> *RAZ*
>>> _______________________________________________
>>> sumo-user mailing list
>>> [email protected]
>>> To change your delivery options, retrieve your password, or unsubscribe
>>> from this list, visit
>>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>>
>> _______________________________________________
>> sumo-user mailing list
>> [email protected]
>> To change your delivery options, retrieve your password, or unsubscribe
>> from this list, visit
>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>
>
>
> --
> *RAZ*
> _______________________________________________
> sumo-user mailing list
> [email protected]
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
_______________________________________________
sumo-user mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to