This is a general function to create Rap objects from scratch and solve them to generate solutions.
rap(pus, species, spaces = NULL, formulation = "unreliable", solve = TRUE,
...)SpatialPolygons object representing planning units.
RasterLayer object with species distribution data.
list of RasterLayer or RasterStack objects. Each elements denotes the spatial distribution for each space. Defaults to NULL.
character to indicate if 'unreliable' or 'reliable' formulation should be used to generate prioritisations. Defaults to 'unreliable'.
logical should solutions be generated?
arguments are passed to GurobiOpts, make.RapData, and RapReliableOpts or RapUnreliableOpts functions.
RapSolved object if solve is TRUE, else RapUnsolved.
GurobiOpts, RapReliableOpts, RapUnreliableOpts RapData, RapResults, RapUnsolved, RapSolved.