Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Loading simulation state resets flow traffic generation

I'm Sorry, I did tried with --save-state.rng and found the wrong behavior, but I sent the wrong python file instead (without the referred option enabled)

Thank you for digging it and double checking


Sincerely,

Marcelo d'Almeida

On Fri, Oct 30, 2020 at 1:27 PM Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:
Hello,
by default state-saving does not store the state of the random number generators. This causes the same sequence of random insertions each time you start the simulation with your probabilistic flow.

It's supposed to work by setting the option --save-state.rng but I just checked and for some reasons it still does not work (https://github.com/eclipse/sumo/issues/7731)

regards,
Jakob

Am Fr., 16. Okt. 2020 um 13:21 Uhr schrieb Marcelo Andrade Rodrigues D Almeida <md@xxxxxxxxx>:
Adding to my previous email,

Currently, I'm working around this issue by converting the flows to individual trips (output route file attached)

Things seems pretty normal after changing it

time:       0 - 20                  2 - 22                  4 - 24                   6 - 26
          Screenshot from 2020-10-16 08-15-04.png          Screenshot from 2020-10-16 08-15-30.png          Screenshot from 2020-10-16 08-15-48.png          Screenshot from 2020-10-16 08-16-01.png

Screenshot from 2020-10-16 08-09-31.png

Screenshot from 2020-10-16 08-11-12.png

Screenshot from 2020-10-16 08-11-41.png

Screenshot from 2020-10-16 08-12-05.png


Sincerely,

Marcelo d'Almeida

On Fri, Oct 16, 2020 at 8:05 AM Marcelo Andrade Rodrigues D Almeida <md@xxxxxxxxx> wrote:
Hi Michael

Please, take a look on these pictures (south-north flow, per example)

time:           0 - 20                      2 - 22                       6 - 26                     7 - 27
          Screenshot from 2020-10-16 07-56-23.png        Screenshot from 2020-10-16 07-56-38.png          Screenshot from 2020-10-16 07-56-53.png          Screenshot from 2020-10-16 07-57-12.png

Note how 'car artefacts' are included. From the first to the last picture, the three first cars seems to be re-included, two from index 0 (rightmost) and one from index 1

Original pictures:
time: 0 - 20
Screenshot from 2020-10-16 07-39-30.png

time: 2 - 22
Screenshot from 2020-10-16 07-41-16.png

time: 6 - 26
Screenshot from 2020-10-16 07-42-29.png

time: 7 - 27
Screenshot from 2020-10-16 07-43-03.png


Sincerely,

Marcelo d'Almeida

On Thu, Oct 15, 2020 at 6:11 PM Michael Behrisch <oss@xxxxxxxxxxx> wrote:
Hi,
maybe I misunderstand the problem, but here the traffic generation seems
to be just fine. There are no duplicate vehicle ids which would occur if
the flow started again from the beginning.

Best regards,
Michael

Am 02.10.20 um 22:21 schrieb Marcelo Andrade Rodrigues D Almeida:
> Hi everyone
>
> At every step, I save the simulation state, load it separately with
> another traci connection, and run 20 steps of the later
>
> I'm using flow to generate traffic and the problem is that the newly
> created connection repeats the traffic generation from the beginning and
> not from where it was loaded
>
> Based on what I saw in the documentation
> https://sumo.dlr.de/docs/Simulation/SaveAndLoad.html
> and these two posts
> https://www.eclipse.org/lists/sumo-user/msg01162.html
> https://www.eclipse.org/lists/sumo-user/msg03476.html
> I understand that the flow should start from the same point it was left
>
> See script attached
>
> SUMO 1.7.0
>
> Sincerely,
>
> Marcelo d'Almeida
>
> _______________________________________________
> sumo-user mailing list
> sumo-user@xxxxxxxxxxx
> To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
>


_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
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