Skip to contents

Retrieve the settings of a restopt problem.

Usage

get_settings(problem)

Arguments

problem

restopt_problem() Restoration problem object.

Value

list The settings associated with the restopt problem.

Examples

# \donttest{
#' # 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
)

get_settings(problem)
#> $precision
#> [1] 4
#> 
#> $time_limit
#> [1] 0
#> 
#> $nb_solutions
#> [1] 1
#> 
#> $optimality_gap
#> [1] 0
#> 
#> $solution_name_prefix
#> [1] "Solution "
#> 
# }