Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Using flows after loading a simulation state

Great, thank you so much for fixing it. I will try it out soon!

 

 

Von: Jakob Erdmann <namdre.sumo@xxxxxxxxxxxxxx>
Gesendet: Montag, 9. April 2018 12:43
An: Jakob Kaths <jakob.kaths@xxxxxxxx>; Sumo project User discussions <sumo-user@xxxxxxxxxxx>
Betreff: Re: [sumo-user] Using flows after loading a simulation state

 

Hello Jakob,

the aforementioned bug is fixed in the latest development version. When loading simulation state that contains flows, make sure to load the original route files that were used when saving the state. You do not need to manage begin and end time as this is handled by sumo. Just define your flow as

<flow id='South_to_North_Car_0' from="-2000000.0.00" to="-2013000.186.34" begin='0' end='3600' vehsPerHour='1800' type='CarDistribution' departLane='random' departPos='base' departSpeed='max'/>

regards,
Jakob

 

 

2018-04-08 21:53 GMT+02:00 Jakob Erdmann <namdre.sumo@xxxxxxxxxxxxxx>:

Hello Jakob,

yes, this is a bug (https://github.com/DLR-TS/sumo/issues/3971).

It should not be necessary to load flows again after saving.

Thank you for bringing this to my attention.

regards,

Jakob

 

2018-04-06 13:20 GMT+02:00 Jakob Kaths <jakob.kaths@xxxxxxxx>:

Hello everybody,

I’m already bothering you with my next question. I tried creating a saved simulation state and reloading it afterwards, which works in principle, but it seems I can’t use flows afterwards anymore, but would have to define every vehicle explicitly. Is that correct?

A part of my demand definition looks as follows:

This would be before saving the state:

<flow id='South_to_North_Car_0' from="-2000000.0.00" to="-2013000.186.34" begin='0' end='100' vehsPerHour='1800' type='CarDistribution' departLane='random' departPos='base' departSpeed='max'/>

And this after:

<flow id='South_to_North_Car_continuous' from="-2000000.0.00" to="-2013000.186.34" begin='110' end='3600' vehsPerHour='1800' type='CarDistribution' departLane='random' departPos='base' departSpeed='max'/>

So basically, I got the same flows again with a different name and create more vehicles after the state is loaded. However, I receive an error message that the first vehicle with the ID South_to_North_Car_continuous.0 has no valid route.

Is this a bug or is it simply not possible to create flows after the simulation has already begun?

Thanks

Jakob

 

_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user

 

 


Back to the top