Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] How to assign routes based on multiple attributes or modified cost?

Hello,
for your example scenario 1), the proposed methods are feasible.
A third alternative is to use the new option --weights.edge-priority (in the latest development version) which combines travel time and edge priority with a configurable weighing factor.
A fourth alternative is to define edge permissions in a way that prevents a particular vehicle class to use them. Then compute routes with the both vehicle classes (the one that can use the express lane and the one that cannot) and perform the price/traveltime tradeoff in your own code.
For scenario 2) the fourth method is currently the only practical way. Send routing queries  (findIntermodalRoute) that use different combinations of allowed modes to compute their distance/traveltime and then do your own comparison regarding price.

regards,
Jakob


Am Do., 26. März 2020 um 21:34 Uhr schrieb Zhenglin Wei <zhenglin@xxxxxxxxxxxxxx>:
Dear SUMO,

Hi, I am looking for a way to do route choice based on multiple attributes like time and price etc. Specifically, I am wondering if it is possible to, instead of the default cost "travel time", use customized cost on the route (say cost_new = time + price ect).

I did some research on the internet and I think there are potentially two ways:
1. using sumolib to fully customize the weight file
2. using TraCI to retrieve the estimated travel time and using route by effort function.

Can anyone tell me if they are feasible? An example scenario would be like
1. on vehicle level (no inter-modal routing), given a pair of O-D, a vehicle needs to decide whether to use an express lane with a little price but faster or to use a slower crowded lane with no cost.
2. on a personal level (inter-modal routing), given a pair of OD, a person needs to decide whether to take a bus with less fee or take a taxi with much more price, etc.

Any help would be appreciated!

Sincerely,
Forrest
_______________________________________________
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