Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Problem about the DUE in simulation
  • From: <yun-pang.floetteroed@xxxxxx>
  • Date: Tue, 30 Jun 2020 17:58:42 +0000
  • Accept-language: de-DE, en-US
  • Delivered-to: sumo-user@xxxxxxxxxxx
  • Ironport-phdr: 9a23:rT1KURwXBWPAq8vXCy+O+j09IxM/srCxBDY+r6Qd0usWI/ad9pjvdHbS+e9qxAeQG9mCtbQc06GG7+igATVGvc/c9ihaMdRlbFwssY0uhQsuAcqIWwXQDcXBSGgEJvlET0Jv5HqhMEJYS47UblzWpWCuv3ZJQk2sfQV6Kf7oFYHMks+5y/69+4HJYwVPmTGxfa5+IA+5oAnMt8Qam5duJro+xhbKrXZDZuBayX91KV6JkBvw+8e98IR//yhMvv4q6tJNX7j9c6kkV7JTES4oM3oy5M3ltBnDSRWA634BWWgIkRRGHhbI4gjiUpj+riX1uOx92DKHPcLtVrA7RS6i76ZwRxD2jioMKiM0/3vWisx0i6JbvQ6hqhliyIPafI2ZKPxzdb7bcNgHR2ROQ9xRWjRBDI2icoUPE+QPM+VWr4b/plsBsRSxCBK2C+/zyD9FnGP60bE43uknDArI3BYgH9ULsHnMq9j0NLoSUeaswKnQ1zrDafxW1S3z6IjMdRAuv+2MXa5ufsrLzkkgCR7Kg06NpozhJTOZzPkCvHaC4udmSOmghHIppRtrrTiz2scjlJPJhoQNx13H9ih3wIU4KNKlREN7b9OpHodcuS+aOoZ4XM4vXWFmtik6xLAJp5O2YCcHxIgjyhDRd/CJfJSF7xHiWeuSPTp1gm9udry4hxa360egy+v8W9Gq31lWqipFk8HMtmsT2BDJ7ciHUPR980G80jiMzwDe8vxILVwumabGKJMszaQ8mocdvEnABCP6hkv7gLeLekgm5OSk8frrbqj8qpOBNYJ5ixvyPrkol8eiG+o3KBIOUHKe+emk0b3j+lD2T6tSg/0tl6nZrIjaJcMGpq6lGwNV0pgs6xK4Dzq+3toWm3cJIl1FdhyHiIbnOFbALurmAfqxjFqjkSlmy+rHPr3nHpXNNGLMnK38crZ58U5Q0hc8ws5H65JVDLEOPu7zV1fsuNDEFBM1Lg+5zun9BNlg2I4TWniDDrGXPa/KtF+H/OMvI+2CZI8Pvzb9LuAo5v7zjX8/gFMdZbOm3Z0YaHyiEPRmJ0KZbmTwgtcdD2gKpA0+Q/L3h1CZTDFTY2yyU7gh6T4lEI6mF5vMRpixgLyd2ye2BoZWZn1DClCLCHvoap6EVOkWaC+JPMBujjgEVbm5S486yx6irgj6y6BoLrmcxysDqJi21MRp//aB0lYt6iMyAs+Z0nmWQidzhGxPQjY32KV2pwt5y0yf0K52hLtDCNlUou5SXx1pCJjH0uZaF9X2DwLdYs+SGhHhXcq5Rzw6StMp2NJIZFxyXNCrjxTG1iztB74Oi72NCptz6b/Z2D3sPMtnmEvAz7Qrs1Q2Xp5PKXG+nfw4sBfMGMjEmEGYj72nM6MG02nI/WaHyGOI+0VZSxJxV6vCGmsCY0yTsM/0/BD+SOr6EqkiNU5c0sOYAqZBbtzxllgAQ+3sbofweWW0zjOhGBDN3rqKY8zkf2IQwDnQEk8Jnygf+WzAOQVoVXTpmH7XEDE7TQGnWEjr6+Qr8H4=
  • Ironport-sdr: Q72uHbZCq1R4TqZxTyRikH8c3kCmuoD+APiziJTJqhF/hIXFcY+ZU9cQiO6Iip5eLd6b8Liwu6 qgGgAd8J2rjA==
  • 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: AQHWTPPpx0k3hmAqk0+2mH2o5/cERKjvaqSQgADb44CAAISrMA==
  • Thread-topic: [sumo-user] Problem about the DUE in simulation

Hi Jane,

 

Your approach sounds quite complicated and I am not sure if I get you points correctly. It is also not clear how steps 1 and 2 exactly interact with each other….

 

You could set all the vehicles keeping the original assigned routes within the first 3600 s in the duaIterate.py so that the traffic state files will be saved for further iterations. The duaIterate will then start to find the DUE for the vehicles departing after 3600 s. But it is not clear where/how/for what your optimization algorithm will be applied…..

 

Another thought is to do as follow:

1.       run sumo for the simulation for the first 3600 s and save the traffic state files

2.       apply your optimization algorithm to get the result as input(?)

3.       pause the sumo simulation and start the duaIterate.py also with the inputs from 2 (?) and the traffic state files in 1 to get the final route file

4.       continue to run sumo and use traci and the routes from 3 to replace the routes of the vehicles in the network.

 

       In this way, you need to put all these steps in a script.

 

Best regards,

Yun-Pang

 

Von: sumo-user-bounces@xxxxxxxxxxx [mailto:sumo-user-bounces@xxxxxxxxxxx] Im Auftrag von Jane Cheung
Gesendet: Dienstag, 30. Juni 2020 03:52
An: Sumo project User discussions
Betreff: Re: [sumo-user] Problem about the DUE in simulation

 

Yun-Pang, 

 

Thanks for your reply! 

In my case, I also want to do other optimization at 3600 s which will also change the route. In other words, there' are two steps I want  to

1) First, do my specific optimization algorithm that will influence the traffic flow from 3601s-7200s,

2) then, use duaIterate.py  to get the equilibrium traffic flow based on the optimized traffic time in step 1).


The problem that confused me is how could I use duaIterate.py to generate the optimized routes in step 2) during the simulation?

What I can do is to use  duaIterate.py before simulation and use the last step iterated  ROUTE file as the ROUTE file in sumo.cfg (as you reply in email )and run sumo.exe at my defined simulation start time, like 0s. I wonder is there some methods I could do  duaIterate.py( iterations = 50) at 3600s and then reload  duaIterate.py( iterations = 50) generated route file and let the simulation continue with that route?

 

Appreciated!

 

Best regard,

 

Jane Cheung

 

On Mon, Jun 29, 2020 at 7:16 PM <yun-pang.floetteroed@xxxxxx> wrote:

Dear Jane,

 

To get an assignment result, which is reached or closed to a DUE state, you can use duaIterate.py under the Directory “tool\assign” of your SUMO Directory.  The duaIterate.py will do the traffic assignment with the DUE-objective iteratively until the defined number of iterations is reached. At each iteration, the traffic state in the previous iteration will be used for traffic assignment.

 

To facilitate the whole assignment process you can also use SUMO’s rerouting options at the same time so that simulation objects can consider the latest traffic information for mode/route choice during simulation. In order to do that you need to give the following commands in addition to the required inputs (as indicated “…” below) when running duaIterate.py, where 1.0 means all vehicles have the rerouting devices, and 300 means the traffic information is updated every 5 mins for vehicles with rerouting device. Of course, you can adjust these values according to your need.

 

duaIterate.py .... sumo--device.rerouting.probability 1.0 sumo--device.rerouting.period 300

 

After running the duaIterate.py you can check the route travel times of the simulation objects in the last file ‘*.alt.xml’ , which is an alternative route file generated by the duarouter at each iteration. If the time difference is larger than your threshold, you can increase the number of iterations in the duaIterate.py and re-run the script.

 

 

I hope, this helps.

 

Best regards,

Yun-Pang

 

Von: sumo-user-bounces@xxxxxxxxxxx [mailto:sumo-user-bounces@xxxxxxxxxxx] Im Auftrag von Jane Cheung
Gesendet: Sonntag, 28. Juni 2020 04:28
An: Sumo project User discussions
Betreff: [sumo-user] Problem about the DUE in simulation

 

Dear all,

Could anyone give me some suggestions on how to reroute routes for vehicles that have not finished their journeys with DUE algorithm during simulation?

For example, 

After the simulation running 5min( the duration for the simulation is 20min ), I would like to refresh the routes for all vehicles moving or going to insert in my network. After refresh routes, the traffic flow state is in DUE.

How could I realize it?

 

Any kind of help would be appreciated!

 

Best regards! 

 

Jane Cheung

_______________________________________________
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