Thanks so much for your reply!

The first problem has been well solved by using the --vclass option in 
edgesInDistricts.py.

But for the 2nd problem about TAZ definitions, I created a graph and finally 
found 66 sink edges and 60 source edges for the whole network, but my network 
has 9708 edges in total and 137 TAZs. Therefore, lots of TAZs do not have sink 
and source edges, causing errors when executing od2trips. I also tried creating 
an independent graph for each TAZ, and each TAZ would obtain sink and source 
edges. I can get a rou.xml file after executing od2trips, but when I run my 
simulation with this rou.xml file,  the error "no connection between xx and xx" 
happened again as the source edge of TAZ 1 cannot connect to the sink edge of 
other TAZ.

Could you tell me how I can solve this problem?  Thanks a lot!


Best regards,
Meng
________________________________
发件人: sumo-user <[email protected]> 代表 manos kampitakis via 
sumo-user <[email protected]>
发送时间: 2023年12月18日 22:20
收件人: Sumo project User discussions <[email protected]>
抄送: manos kampitakis <[email protected]>
主题: 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 
<[email protected]<mailto:[email protected]>> έγραψε:
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
[https://www.polyu.edu.hk/emaildisclaimer/PolyU_Email_Signature.jpg]

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
[email protected]<mailto:[email protected]>
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user
[https://www.polyu.edu.hk/emaildisclaimer/PolyU_Email_Signature.jpg]

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
[email protected]
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to