Skip to contents

Retrieve the aggregation method of a restopt problem.

Usage

get_aggregation_method(problem)

Arguments

problem

restopt_problem() Restoration problem object.

Value

character The aggregation method of the restopt problem.

Examples

if (FALSE) { # \dontrun{
#' # load data
habitat_data <- rast(
  system.file("extdata", "habitat_hi_res.tif", package = "restoptr")
)

# create problem
problem <- restopt_problem(
       existing_habitat = habitat_data,
       aggregation_factor = 4,
       habitat_threshold = 0.7,
       lossless_aggregation = TRUE
)

get_aggregation_method(problem)
} # }