This function creates a RapUnsolved() object using a GurobiOpts(), a RapReliableOpts() or RapUnreliableOpts() object, and a RapData() object.

RapUnsolved(opts, data)

Arguments

opts

RapReliableOpts() or RapUnreliableOpts() object.

data

RapData() object.

Value

RapUnsolved() object.

Examples

# \dontrun{
# set random number generator seed
set.seed(500)

# load data
cs_pus <- sf::read_sf(
 system.file("extdata", "cs_pus.gpkg", package = "raptr")
)
cs_spp <- terra::rast(
  system.file("extdata", "cs_spp.tif", package = "raptr")
)

# create inputs for RapUnsolved
ro <- RapUnreliableOpts()
rd <- make.RapData(cs_pus[seq_len(10), ], cs_spp, NULL,
                   include.geographic.space = TRUE,n.demand.points = 5L)

# create RapUnsolved object
ru <- RapUnsolved(ro, rd)

# print object
print(ru)
#> RapUnsolved object
#> Parameters
#>   BLM: 0
#> Data
#>   Number of planning units: 10
#>   Number of species: 4
#>   Number of attribute spaces: 1
# }