battery_plot_mruns.py#

This script makes a plot of the state of charge (SoC) of all ambulances for multiple runs.

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

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

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

  • PLOT_NAME (str) – The name of the plot if it is saved.

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

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

  • NUM_AMBULANCES (int) – The number of ambulances.

  • BATTERY_CAPACITY (int) – The maximum battery capacity of the ambulances in kWh.

  • NUM_COLS (int) – The numner of columns the plot should have.

  • SAVE_PLOT (bool) – Whether the plot should be saved or not.

  • COLOUR_RUNS (list[str]) – The colours of the simulation runs. The first run is coloured according to the first colour, the second run according to the second colour, etc.

  • XLIM (int) – The limit of the x-axis.