Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Defining variables in .rou file?

there is currently no way to use variables in the input files for SUMO.
You might find this useful though:

On 27.03.20 12:35, Maytheewat Aramrattana wrote:
Dear all,

I would like to know if there is anyway of defining variables in .rou.xml file in SUMO configuration? What I would ideally like to do is to have something like the following in the .rou file:

my_accel = 3.1
my_sigma_1 = 0.5
my_sigma_2 = 1.0

<vType id="type1" accel=my_accel  decel="4.5" sigma=my_sigma_1  length="5" maxSpeed="70"/>
<vType id="type2" accel=my_accel  decel="4.5" sigma=my_sigma_1  length="5" maxSpeed="70"/>
<vType id="type3" accel=my_accel  decel="4.5" sigma=my_sigma_2 length="5" maxSpeed="70"/>
<vType id="type4" accel=my_accel  decel="4.5" sigma=my_sigma_2 length="5" maxSpeed="70"/>
<vType id="type5" accel=my_accel  decel="4.5" sigma=my_sigma_2 length="5" maxSpeed="70"/>

instead of changing them one-by-one every time. Perhaps there is a better way that I did not know? Thank you for your help in advance.

Best Regards,
Maytheewat Aramrattana

sumo-user mailing list
To unsubscribe from this list, visit

Back to the top