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

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