Model

Discrete-event simulation model for generating patient calls.

Usage

Source

Model(
    run_number,
    config,
)

The model creates one call-generation process per patient category and records generated patients during a single simulation run.

Methods

Name Description
__init__() Initialise the simulation model.
generate_patients() Generate patients.
request_ambulance() Simulate ambulance response.
run() Run the simulation model.
warm_up() Reset results collection after the warm-up period.

__init__()

Initialise the simulation model.

Usage

Source

__init__(run_number, config)
Parameters
run_number: int

Simulation run identifier.

config: object
Configuration object containing model parameters.

generate_patients()

Generate patients.

Usage

Source

generate_patients()

request_ambulance()

Simulate ambulance response.

Usage

Source

request_ambulance(patient)
Parameters
patient: Patient
Patient requesting ambulance transport.

run()

Run the simulation model.

Usage

Source

run()

Starts one patient-generation process for each category and runs the simulation until the configured run length.


warm_up()

Reset results collection after the warm-up period.

Usage

Source

warm_up()