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
  • From: "LONG, Meng [Student]" <meng.long@xxxxxxxxxxxxxxxx>
  • Date: Wed, 20 Dec 2023 10:34:52 +0000
  • Accept-language: zh-CN, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=connect.polyu.hk; dmarc=pass action=none header.from=connect.polyu.hk; dkim=pass header.d=connect.polyu.hk; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=TUuKjxKotwEm67Ul5GCs9N1bKVHtA+d7KCL3vIQHe7g=; b=I/j3UGk+v4iE45e6TsNhkpLEkagDclMaIYvWCMAc0qLWpNfKlcPK/IqQJHZh8XtcvFHpshgjWd6nDAOpJHwWRSmMQRbcHlFdtVkTGoHgBH+4tcILBr8xhlsrIlbiqA6bFGny5IpAI17GPLrwBWXZIG3meGzpZJdc1v+5HxAsU3x3WATgFK5OejbxO7reoJhNijeXlLNUSbJM2OFugeTInGnk7570Eomh6dfl1qxj/Ph03Sc0XVS0gZg+ixn4ic9A+ae38wz/XnoXgyrq5WEOvnfYTi3TMUUHKrr6oQx3nj34NyT3aLokYRdMFtTshg5hVzNpxzGVrWjARr13mT97Kg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IWXeNVpt/wm645ft/zXcA2HD4Jr7H+CPh6fslNqhkYDUo0thDFaFu1RZijcKGGt8UcdL3RHJXvMG9l46mj9mZTCcBesYgG/kRduwrU8qQQbuI0n30kYngpUzBQkpc4V9JIxZflvuIKZthek4olPYyatMAAZln2v+VG34Tpc3IPSHGWpFUvpS5ZxG7vU9N1mucJx0LxMeRSV5H7xogyMDagE6b79FiUYK5OWtQr0r3YDq+C+TprwTl1We3pc3Q52TsZE0YV1eWM1mqzxj1woVpbH9kG0fvLKViXCn5PYokLfkCZ9vXQHVx7NnS9mI9lBEjAmPJOjmP9Re5jJk6IpcbQ==
  • Delivered-to: sumo-user@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/sumo-user/>
  • List-help: <mailto:sumo-user-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/sumo-user>, <mailto:sumo-user-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/sumo-user>, <mailto:sumo-user-request@eclipse.org?subject=unsubscribe>
  • Msip_labels:
  • Thread-index: AQHaMYI1vlrBZThNR0mb4flW8UUei7CvF5CAgALZKAY=
  • Thread-topic: [sumo-user] od2trips erros and TAZ definition in a large network

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 <sumo-user-bounces@xxxxxxxxxxx> 代表 manos kampitakis via sumo-user <sumo-user@xxxxxxxxxxx>
发送时间: 2023年12月18日 22:20
收件人: Sumo project User discussions <sumo-user@xxxxxxxxxxx>
抄送: manos kampitakis <mankampitakis@xxxxxxxxx>
主题: 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


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.


Back to the top