Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Changing vType parameters in flowrouter-generated simulation

You can let flowrouter write a type attribute. See:
See https://sumo.dlr.de/wiki/Tools/Detector#Generating_vehicles_with_additional_parameters
Then define the <vType> in an extra additional file and include it in your simulation.
In your optimization loop, you only need to re-generated the file with the vType.

regards,
Jakob


Am Mi., 20. Feb. 2019 um 15:04 Uhr schrieb Fredrik Nilsson <frnilss@xxxxxxxxxxxxxxxxxxx>:
Hi,

I'm trying to iteratively update my driver parameters as part of an optimization. I have used flowrouter to generate route and flow files and so now I wonder, how can I add these parameters?

I tried to add a line at the beginning of the route tag like
<vType id="type1" accel="0.8" decel="4.5" sigma="0.5" length="5" maxSpeed="70"/>

but this does not changing this line doesnt affect the outcome of the simulation at all. I assume this is because no where is it explicitly defined that this vType with id "type1" is to be used.

Since I have my flows and routes seperetly, should I have added this to the flow file and then used  type="type1"?

If so that's okay, but is there no way to "globally" change the parameters of the driver model being used? It would save me parsing and updating millions of lines of xml code.

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

Back to the top