read_CHWplacement_sol.Rd
This function tranforms the output of a Gurobi opitimisation into map coordinates
read_CHWplacement_sol(
population.raster,
friction.raster,
shp,
name,
buffer,
radius,
capacity.name,
access.raster,
popurb.raster,
is.inside,
filepath,
write = F,
check = TRUE
)
raster map containing population densities
raster map containing friction surface
shapefile of the area of interest
name (character) of the .sol file
buffer around current HF
dimension of the radius around the point (same dimension as T.GC, e.g minutes)
name (character) given to the capacity definition (for folder naming purposes)
raster map containing the distance to HF layer
raster map containing the urban population layer (urban pixels show the population in the pixel and the rural pixels are NA). Can be created with DefineUrban.
whether CHW are placed inside the buffer (if FALSE, they are placed outside)
directory where to store the MPS file
if TRUE, the output is written as a csv file in filepath
Run sanity checks?
a MPS file containing the optimisation program