optimization_parser.py#

This script calculates the utilization and probability that at least one charger is available at each charging location and then proposes on which charging location a charger can be removed. For details, see the manuscript.

Parameters:
  • DATA_DIRECTORY (str) – The folder, relative to the ROOT_DIRECTORY (automatically determined), where the input data is located.

  • SIM_RESULTS_DIRECTORY (str) – The folder, relative to the ROOT_DIRECTORY (automatically determined), where the simulation output files are located.

  • OUTPUT_DIRECTORY (str) – The folder, relative to the ROOT_DIRECTORY (automatically determined), where the output files should be saved.

  • SAVE_OUTPUT (bool) – Whether the output should be saved or not.

  • NUM_RUNS (int) – The number of runs that should be parsed.

  • SCENARIO (str) – The scenario. Corresponds to the SCENARIO that was used in the simulation run.

  • SIMULATION_AMBULANCE_OUTPUT_FILE_NAME (str) – The name of the file where the ambulance dataframe is saved. Note that the run number is automatically added by the script in a for-loop.

  • CHARGING_SCENARIO_FILE (str) – The name of the file that contains the charging scenario data.

  • HOSPITAL_FILE (str) – The name of the file that contains the nodes where hospitals are located.

  • AMBULANCE_BASE_LOCATIONS_FILE (str:) – The name of the file that contains the assignment of ambulances to bases.

  • OUTPUT_FILE_NAME (str) – The name of the file where the result dataframe will be saved if SAVE_OUTPUT=True.

  • OUTPUT_FILE_NAME_2 (str) – The name of the file where the location where a charger can be removed is saved if SAVE_OUTPUT=True.

  • RUN_PARAMETERS_FILE_NAME (str) – The name of the text file with the script parameters if SAVE_OUTPUT=True.