Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] od2trips erros and TAZ definition in a large network

Hi,

Regarding the first problem, if you mean bus lanes (only lane) then you can set the departLane (vehicle) attribute to "allowed". If you mean that whole edges where vehicles are disallowed then you can do what Mirko suggested or you can find the set of edges where vehicles are not allowed and delete them from the taz definition xml file (using python for example not by hand).
Regarding the second problem (connectivity), it is not that difficult to solve it. First, you must create a graph (e.g. in networkx) where nodes of the graph will be the edges of your traffic network and the edges of the graph will be the connections of the sumo network. Then, you can retrieve the connectivity of each edge (node): find the set of edges that can be reached by all edges (sink edges) and the set of edges that can reach all other edges (source edges). Then create an xml file with taz definitions where you give the sources and the sinks (see taz definition) (either weighted or uniformly). This will work pretty well if your (traffic network) directed graph is "generally" strongly connected in order to avoid excluding too many edges.

Best regards,
Manos


Στις Δευ 18 Δεκ 2023 στις 10:57 π.μ., ο/η LONG, Meng [Student] via sumo-user <sumo-user@xxxxxxxxxxx> έγραψε:
Hi SUMO expert,

I am using od2trips and tazRelation file to obtain route file , but there are many warnings and errors like below when I execute trip2route:

Error: Mandatory edge '681882530' not reachable by vehicle '64140'.
Error: The vehicle '64140' has no valid route.
Error: No connection between edge '28109408' and edge '86113233#2' found.

I found two reasons: 1) trips of cars are generated on bus lanes (disallow cars); 2) vehicles generate on destination edge ( only can exit the network), so they cannot find connection between the destination edge and other edges. As my network is big and TAZ file is obtained by edgesInDistricts.py, I cannot specify source and sink edge manually for each TAZ. 

Therefore, how can I fix the above two problems? Is there any method to constrain od2trips not assigning cars on bus lane, and any method to specify source and sink edge in a large network? And there may be many other problems I didn't find either. Could you give me any suggestions?

As the attachment size limit, I only attached my original files for your reference. You can run the command following "using commands.txt".


Many thanks,
Meng


Disclaimer:

This message (including any attachments) contains confidential information intended for a specific individual and purpose. If you are not the intended recipient, you should delete this message and notify the sender and The Hong Kong Polytechnic University (the University) immediately. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited and may be unlawful.

The University specifically denies any responsibility for the accuracy or quality of information obtained through University E-mail Facilities. Any views and opinions expressed are only those of the author(s) and do not necessarily represent those of the University and the University accepts no liability whatsoever for any losses or damages incurred or caused to any party as a result of the use of such information.

_______________________________________________
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