
Location allocation (continuous problem)
allocation.Rd
This function is used to allocate facilities in a continuous location problem. It uses the accumulated cost algorithm to find the optimal location for the facilities based on the demand, travel time, and weights for the demand, and target travel time threshold and share of the demand to be covered.
Usage
allocation(
demand_raster,
traveltime_raster = NULL,
bb_area,
facilities = facilities,
weights = NULL,
objectiveminutes = 10,
objectiveshare = 0.99,
heur = "max",
dowscaling_model_type,
mode,
res_output
)
Arguments
- demand_raster
A raster object with the demand for the service.
- traveltime_raster
The output of the traveltime function. If not provided, the function will run the traveltime function first.
- bb_area
A boundary box object with the area of interest.
- facilities
A sf object with the existing facilities.
- weights
A raster with the weights for the demand.
- objectiveminutes
The objective travel time in minutes.
The share of the demand to be covered.
- heur
The heuristic approach to be used. Options are "max" (default) and "kd".
- dowscaling_model_type
The type of model used for the spatial downscaling of the travel time layer.
- mode
The mode of transport.
- res_output
The spatial resolution of the friction raster (and of the analysis), in meters. If <1000, a spatial downscaling approach is used.