Skip to main content

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

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!


Back to the top