Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Reroute by Effort

It's 1) and you are thinking correctly. However, you could define effort values that change over time. In this case the travel time is taken into account when retrieving the effort while en route.

Am Fr., 21. Aug. 2020 um 10:26 Uhr schrieb marcelreppi <marcelreppi@xxxxxxxxx>:
Hello,

I have a question on what values the routing algorithm considers when I call
traci.vehicle.rerouteEffort(vid).

Assume I set a custom edge effort for every edge.
When I call the function does the routing algorithm

1) ONLY consider the custom edge effort?
2) consider the traveltime IN COMBINATION with custom edge efforts?

I was assuming it would be 1) and I just wanted to make sure.

If it is 1) and I would want to optimize traveltime AND edge efforts I would
have to set an edge effort like this: traci.edge.setEffort(eid,
traci.edge.getTraveltime(eid) + myCustomEffort)

Am I thinking correctly or am I doing something wrong?

Best regards
Marcel



--
Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top