Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Different probability flows between simulations
  • From: Michael Behrisch <oss@xxxxxxxxxxx>
  • Date: Wed, 21 Oct 2020 21:39:40 +0200
  • Autocrypt: addr=oss@xxxxxxxxxxx; prefer-encrypt=mutual; keydata= xsDiBFLSvucRBACGsasS4GeIWs1CFNTOYmp3ScQ2ZTJLJWQxhPliwtHTzLsErYu9Y7e8qDov iHFviYyaNuceUNoACm1e4MT4eu0DmM2Wk3y/jjD6hfm7L0EZNPxQhj+CJf2oZAm2ezCe7/si xZ2d7TCO8yWavOGbF0EVi/ZDIJqVgupu6WBpv/NCewCg65HQiS1wm+1w1MdFYxKCmXzbv08D /iWXX3tzabbCrLlUum8hBgBpJEHRtlic2uaGsKm8Fize4tfLZkTBbTYLYXfcx2Oq9+lINPTW h9jnbCjAjErRWLTjNTQjel0JnDryCnqabub/R3wScR/EHRDBeS9L6YRj0xdVd2qIaArtSYRR auKPNc4M2qZNEFSM37cXC7avhpdeA/99oJf4qyVly4RxHmekAmj9UJjRx17x9xX8t9uzUuSt AeTh+kQ3o5jK7veU6/F/+pPyi96EOzym9BJA8pgXC8hLWNjOajI10filkdQ26QsfHOpUdPSZ 4Duyw9Ayj8loagEnnAONmU/xE0QlyVBANIut0W+SNqPScYXfnBbVOaG3Hc0mTWljaGFlbCBC ZWhyaXNjaCA8bWljaGFlbEBiZWhyaXNjaC5kZT7CZgQTEQIAJgIbIwcLCQgHAwIBBhUIAgkK CwQWAgMBAh4BAheABQJS0sKXAhkBAAoJEDwQ/pbRcKYp+SEAoMJSvUzfk3u6EA1nMlMVSk85 nHhoAJ0VE5xLi2ni8j9wdx+uga7XGLtjhs7ATQRS0r7nEAQAkQLdzlu3i/Ddziadm2c/60ZX bcY3FYhHHfsKUHC/QING+lu3uHG0nPaElPTAHTr8UdFMbmpXkRs9+1v1RAvHBWW95BbUXZeu oBsoCm+4Jdktu+PeVxGKhOwQRdR30A4y/bIeRn7iMzkZKoQh0lE3ZEbs0T8TUHBGBUqwEhIv Y0MAAwUD/RXrkwtUiR61/bT96eMaxGtO15AqvlM8DYQ3Xs6EH09QlGzr/i0+usi01wGoh13p YGjzEDtTqO+lNs9AtS7nZAHA3cCWzLmdEXw6EY7IH4X7zOpKoj+JtLNjUd2Nzvhyl48LT217 g8GmCACL6Wo/G+fZ+30Mny+gWbDtEGXNIv7fwkkEGBECAAkFAlLSvucCGwwACgkQPBD+ltFw pimNZQCgnN5oibnjl7r2SVle6hgUMcckfN4AoMYRjy/Tqz9tq8TSUqNcOTjlMR7D
  • 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>
  • User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0

Hi,
I just tested the most recent build with --random and it works as expected.

Best regards,
Michael

Am 21.10.20 um 20:32 schrieb Tiago Silva:
> Dear Andras and Lokesh,
> 
> Thanks for your reply! Unfortunately, even with seed and random my
> simulation is generating the same flow in different simulation runs. I
> tested this in v1_7_0 tag and in master branch with all current
> changes. Is this working for you? If so, it's probably a problem in my
> build...
> 
> thanks in advance!
> 
> Em qua., 21 de out. de 2020 às 13:56, Lokesh Das <lokeshcsedu@xxxxxxxxx
> <mailto:lokeshcsedu@xxxxxxxxx>> escreveu:
> 
>     Hi Tiago,
> 
>     From the heading, it seems that you want to change the vehicle
>     injection probability in every simulation run. If it is, you can do
>     it in two ways: i) manually- every time change probability value in
>     route file or ii) dynamically- change it using TraCI API. However,
>     if you want with the same probability every simulation should have
>     given you a different flow, just change the default seed value
>     (23423; see https://sumo.dlr.de/docs/Simulation/Randomness.html).
>     You can do it using <random value = "true" /> in *.sumocfg file. It
>     simply uses the system current time as a seed value. 
> 
>     Thanks,
>     Lokesh
> 
>     On Wed, Oct 21, 2020 at 8:15 AM Tiago Silva
>     <tiago.silva1230@xxxxxxxxx <mailto:tiago.silva1230@xxxxxxxxx>> wrote:
> 
>         hello, 
> 
>         I'm generating a flow of vehicles with probability='0.3' as seen
>         in the code below:
> 
>         / <flow id='flow_2' color="0,0,1" begin='0' end='4500'
>         probability='0.3' type='vehicleType_1'>
>                   <route edges='5to1 1to3'/>
>         </flow>/
> 
>         It works correctly and generates the random flows I need during
>         the simulation. However, I noticed that if I execute the
>         simulation again it will generate the same random flow as the
>         previous execution. Can you tell me if this is the expected
>         behavior of random flow? I need to generate different flows in
>         each simulation execution. Is there any way to do this?
> 
>         Thanks in advance!
> 
>         -- 
>         Att.
>         Tiago Alves Silva
> 
>         _______________________________________________
>         sumo-user mailing list
>         sumo-user@xxxxxxxxxxx <mailto:sumo-user@xxxxxxxxxxx>
>         To unsubscribe from this list, visit
>         https://www.eclipse.org/mailman/listinfo/sumo-user
> 
>     _______________________________________________
>     sumo-user mailing list
>     sumo-user@xxxxxxxxxxx <mailto:sumo-user@xxxxxxxxxxx>
>     To unsubscribe from this list, visit
>     https://www.eclipse.org/mailman/listinfo/sumo-user
> 
> 
> 
> -- 
> Att.
> Tiago Alves Silva
> 
> 
> _______________________________________________
> sumo-user mailing list
> sumo-user@xxxxxxxxxxx
> To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
> 


Attachment: signature.asc
Description: OpenPGP digital signature


Back to the top