ambulance_simulation.run_simulation#

ambulance_simulation.run_simulation(SIMULATION_PARAMETERS: dict[str, Any], SIMULATION_DATA: dict[str, Any]) None#

Performs a single simulation run.

Parameters:
  • SIMULATION_PARAMETERS (dict[str, Any]) – The simulation parameters. The parameter ENGINE_TYPE is at least necessary. Note that methods that are called within this method may require more parameters. See main.py for parameter explanations.

  • SIMULATION_DATA (dict[str, Any]) – The simulation data. output_ambulance, output_patient, nr_times_no_fast_no_regular_available, TIME_LAST_ARRIVAL are at least necessary. See main.py and the input data section on the ELASPY website for explanations. Note that methods that are called within this method may require more data.

Raises:

Exception

  1. If the patient queue is not empty after completing the simulation run. 2. If the input data (SIMULATION_DATA) has been changed during the simulation run.