Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] [EXTERNAL] Re: Define Input/Output Edges and Assign Random Traffic to Network
  • From: Xun Liu <xliu8@xxxxxxxxxxxxx>
  • Date: Fri, 16 Oct 2020 03:19:11 +0000
  • Accept-language: de-DE, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=villanova.edu; dmarc=pass action=none header.from=villanova.edu; dkim=pass header.d=villanova.edu; 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-SenderADCheck; bh=lq9sut5UirA4MNyrMHNf657jJCE4IR9s98i4WsiXMSE=; b=Km+NoC6KKRy9dM7CpXNfTQ7ddUDrG3n6jF9QKLXc8kI9vLAg3L7pZuOLhp04j2ZbXhh6zce5mv5jtu7ANWWzN0SAh1kXjtMUQmnoMB/iMWv/ROcqlsy2jKFNbcrH6LR815upnPMxxbXb3YDbtAfx+UjLbJ11WE3INzCtrVV+BfE1krwLHS29ClC6G3NiFT70WOawFCxR9ifUlL+lZzxqfsB1LaUtYYwVaK7PLXie5L7pk/mNB6T0Ng5n/NmvurotNq0FJj3SgDLSxBzP9YqIFwz/MtEcTWRKseVQ2eWFi7QpHv79vepPIK+X4C5FpKg17d1L9drMyDfmjM9L7LVosA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aJmT4DHsn11NpNNEzOHdBuJCCWMWIoia8fB1108iDl7Lg7+PxYE+QPwVGUxvl+JSdRVtYbGN6zQDkwqAhcEsrkPvtDGUJXUMYivZCzw8HCJ2eGIqPEkDAdGsALZ+mCbN5du8lXQaIKYqmDFUE/X8FkAn+TBWSWk7AV9VOJeEVDfhD4kleoWUxgRe5MZ3I//9iqtUC7sTxUTDzNaQ+MRvLY4UutvvDhVu1t6BxifVBAEw2eci9sM5ppkp15G4Ubn7MKOznr8iJ4yLviAROz6zEWCrXITZmPmqjZu0pN2goAb3ci9LhXQhkGn0JybGpfLT1AXBpKQ6ZFJgoIM/tac+OQ==
  • 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>
  • Thread-index: AdajaKyZIPc/75W7SOK04vd3U+YA2g==
  • Thread-topic: [sumo-user] [EXTERNAL] Re: Define Input/Output Edges and Assign Random Traffic to Network

Hello Michael,

Thanks for your response! You are right, I want to assign a random traffic flow into the network. The Inlet- and Outlet-edges of the network have defined manually. The traffic flow into the network from the inlet edge, after several time and move, it flow out from an outlet edge. The path of the traffic was based on the network edge connection and when vehicle met an intersection with more branches, it turn randomly. 

I have found a solution using: randomTrips.py --weights-prefix, which could achieve this goal. But I met another problem by output the edge data, I want to use this "meandata" to get some edge information: 
https://sumo.dlr.de/docs/Simulation/Output/Lane-_or_Edge-based_Traffic_Measures.html#meandata_definition
But I am confused about how to define it. Should I write it into an additional file and load it with CMD command, such as:
randomTrips.py --weights-prefix -a <additionala file> ?

Best,
Xun

-----邮件原件-----
发件人: sumo-user-bounces@xxxxxxxxxxx 代表 Michael Behrisch
发送时间: 2020年10月15日 16:29
收件人: sumo-user@xxxxxxxxxxx
主题: Re: [sumo-user] [EXTERNAL] Re: Define Input/Output Edges and Assign Random Traffic to Network

Hi Xun,
I do not fully understand wha you are trying to achieve. The sources and destinations are given and you want to assign them randomly to each other? Or do you want random volumes between fixed pairs? The routes should be shortest paths or the vehicles should turn randomly (according to given probabilities) in the network but eventually reach a given destination?

Best regards,
Michael

Am 14.10.20 um 23:51 schrieb Xun Liu:
> Hello Melanie,
> 
>  
> 
> Thanks for your response!
> 
>  
> 
> I have read this page about how to import O/D Matrices. The function 
> that I am trying to accomplish is that a random traffic flow is 
> assigned from the source edges and the traffic flow probabilities or 
> directions inside the network(between source edges and interior edges, 
> interior edges on different tier or from interior edges to the sink 
> edges) would be determined based on the road network randomly and 
> automatically. And at the end it would flow out from the respective sink edge.
> 
>  
> 
> I used the randomTrip.py and implemented an additional file with it. 
> In the additional file I set up the TAZ with my source and sink edge 
> information. However, the random route it generate still start from 
> random edge, but not the assigned source edge. Do you have some advice 
> to accomplish this function and could you please help me to solve this 
> problem?
> 
>  
> 
> In the attachment is the additional file with TAZ information. Thanks!
> 
>  
> 
> Best,
> 
> Xun
> 
>  
> 
> *发件人:*sumo-user-bounces@xxxxxxxxxxx *代表 *Melanie.Weber@xxxxxx
> *发送时间:*2020年10月14日1:40
> *收件人:*sumo-user@xxxxxxxxxxx
> *主题:*[EXTERNAL] Re: [sumo-user] Define Input/Output Edges and Assign 
> Random Traffic to Network
> 
>  
> 
> Hello Xun,
> 
>  
> 
> Maybe  
> https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsumo
> .dlr.de%2Fdocs%2FDemand%2FImporting_O%2FD_Matrices.html&amp;data=04%7C
> 01%7Cxliu8%40villanova.edu%7C207ce08dd0514f256f8408d871491cee%7C765a8d
> e5cf9444f09cafae5bf8cfa366%7C0%7C1%7C637383906371087489%7CUnknown%7CTW
> FpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6
> Mn0%3D%7C2000&amp;sdata=aQY4N5J3RqfG91vtWEZHhfCY%2BPEgLIZ56xcpxHWeZY0%
> 3D&amp;reserved=0 
> <https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsum
> o.dlr.de%2Fdocs%2FDemand%2FImporting_O%2FD_Matrices.html&amp;data=04%7
> C01%7Cxliu8%40villanova.edu%7C207ce08dd0514f256f8408d871491cee%7C765a8
> de5cf9444f09cafae5bf8cfa366%7C0%7C1%7C637383906371087489%7CUnknown%7CT
> WFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI
> 6Mn0%3D%7C2000&amp;sdata=aQY4N5J3RqfG91vtWEZHhfCY%2BPEgLIZ56xcpxHWeZY0
> %3D&amp;reserved=0>
> can help you.
> 
>  
> 
> Kind Regards,
> 
> Melanie
> 
>  
> 
> *Von:*sumo-user-bounces@xxxxxxxxxxx
> <mailto:sumo-user-bounces@xxxxxxxxxxx> <sumo-user-bounces@xxxxxxxxxxx 
> <mailto:sumo-user-bounces@xxxxxxxxxxx>> *Im Auftrag von *Xun Liu
> *Gesendet:* Mittwoch, 14. Oktober 2020 01:28
> *An:* sumo-user@xxxxxxxxxxx <mailto:sumo-user@xxxxxxxxxxx>
> *Betreff:* [sumo-user] Define Input/Output Edges and Assign Random 
> Traffic to Network
> 
>  
> 
> Hello everyone,
> 
>  
> 
> I met a problem about how to define the In-/Output Edges of a network.
> Now I have the ID of the In- and Output edges, could I use Traffic 
> Assignment Zone(TAZ) file to define the In- and Output. And how could 
> I assign a random traffic flow from the Input Edges into the network?
> 
>  
> 
> Best,
> 
> Xun
> 
> 
> _______________________________________________
> sumo-user mailing list
> sumo-user@xxxxxxxxxxx
> To unsubscribe from this list, visit 
> https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.
> eclipse.org%2Fmailman%2Flistinfo%2Fsumo-user&amp;data=04%7C01%7Cxliu8%40villanova.edu%7C207ce08dd0514f256f8408d871491cee%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C1%7C637383906371087489%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&amp;sdata=vSnZjyRrgl5xfqfP37zRJzV3UZ9YTlYhdFHbDRK4B0Q%3D&amp;reserved=0
> 


Attachment: measure.add.xml
Description: measure.add.xml


Back to the top