Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Change the volume of traffic flows in TraCI

in traci.start you can also pass the "--scale" option to upscale/downscale all traffic.

Am Fr., 31. Juli 2020 um 08:09 Uhr schrieb Harald Schaefer <fechsaer@xxxxxxxxx>:
Hi Reza,

i would write a small python script, which modifies your xml file
(search in the internet for 'python insert random number in xml file')

Best  regards,

Harald

Am 31.07.20 um 02:52 schrieb MohamadReza-Haghani:
> Hi Giuliana,
>
> Thank you. That was really a great help. I intend to use a random number for
> volume in each run. I searched about that if a random number can be
> generated in xml and found a command. However, it did not worked and gave
> the following error in Python.
>
> "Error: Attribute 'number' in definition of flow 'f1' is not of type int."
>
> Do you know whether a random number can be generated in xml? Please find
> attached a screenshot of the route file.
>
> Best,
> Reza.
>
> <http://sumo-user-mailing-list.90755.n8.nabble.com/file/t374/Capture.png>
>
>
>
> --
> Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/
> _______________________________________________
> 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