1
0
mirror of https://github.com/Ahp06/SUMO_Emissions.git synced 2024-09-29 02:46:39 +00:00
4 Configuration file
Axel HUYNH-PHUC edited this page 2019-01-22 17:13:27 +01:00

The configuration file is in JSON format.

default_config.json :

{
        "_SUMOCMD": "sumo",
	
	"emissions_threshold": 500000, 
	"n_steps": 200,
	"window_size":100,
	
	"without_actions_mode": true,
	
	"limit_speed_mode": false,
	"speed_rf": 0.1,
	
	"adjust_traffic_light_mode": false,
	"trafficLights_duration_rf": 0.2,
	
	"weight_routing_mode": false,
	
	"lock_area_mode": false
    
}

You can change many settings through this file:

  • _SUMOCMD : Use 'sumo-gui' to launch the application with the GUI, 'sumo' without.

  • emissions_threshold : threshold of pollutants emissions (in mg) beyond which the program acts on the areas.

  • n_steps : Define the duration of the simulated time, one step corresponding to one simulated second.

  • window_size : size of acquisition window of pollutant emissions in areas.

  • without_actions_mode : Set this mode to True if you want running a reference simulation without acting on areas.

  • limit_speed_mode / speed_rf : The maximum speed in a too polluted area will be multiplied by a factor defined by 'speed_rf'.

  • adjust_traffic_light_mode / trafficLights_duration_rf : The duration of the traffic lights will be multiplied by a factor defined by 'trafficLights_duration_rf'.

  • weight_routing_mode : When an area exceeds the threshold, this mode affects all traffic lanes by assigning them a "weight" corresponding to pollutant emissions on that lane. This mode is not recommended for computing time reasons and it's less efficient.

  • lock_area_mode (NOT FIXED) : Blocks an area that is too polluted to vehicles.