MEXCLP.py#
This is an implemenation of the MEXCLP model.
By solving MEXCLP (Maximum Expected Coverage Location Problem), ambulances are assigned to bases to maximize on-time arrivals. Below, all parameters are discussed.
- Parameters:
q (float) – Input parameter called the busy fraction. Can be interpreted as the probability that any ambulance is busy at any time.
NUM_AMBULANCES (int) – The number of ambulances that should be assigned to bases.
TIME_THRESHOLD (float) – Represents the threshold for the driving time in minutes.
DATA_DIRECTORY (str) – The folder, relative to the
ROOT_DIRECTORY
(automatically determined), where the input data is located.OUTPUT_DIRECTORY (str) – The folder, relative to the
ROOT_DIRECTORY
(automatically determined), where the output files should be saved.NODES_FILE (str) – The name of the file that contains the data with the nodes of the region.
BASE_LOCATIONS_FILE (str) – The name of the file that contains the nodes where bases are located.
TRAVEL_TIMES_FILE (str) – The name of the file that contains the data with the siren travel times between nodes.
RESULTS_FILE (str) – The name of the lp and csv output files.
SOLVER_NAME (str) – The name of the solver that should be used. Examples are “GUROBI_CMD” and “PULP_CBC_CMD”.