Specify that the SYMPHONY software should be used to solve a conservation planning problem using the Rsymphony package. This function can also be used to customize the behavior of the solver. It requires the Rsymphony package.
add_rsymphony_solver(x, gap = 0.1, time_limit = 1, first_feasible = 0, verbose = TRUE)
x 


gap 

time_limit 

first_feasible 

verbose 

ConservationProblemclass
object with the solver added
to it.
SYMPHONY is an opensource integer programming solver that is part of the Computational Infrastructure for Operations Research (COINOR) project, an initiative to promote development of opensource tools for operations research (a field that includes linear programming). The Rsymphony package provides an interface to COINOR and is available on CRAN. This solver uses the Rsymphony package to solve problems.
# load data data(sim_pu_raster, sim_features) # create problem p < problem(sim_pu_raster, sim_features) %>% add_min_set_objective() %>% add_relative_targets(0.1) %>% add_binary_decisions()# if the package is installed then add solver and generate solution if (require("Rsymphony")) { # specify solver and generate solution s < p %>% add_rsymphony_solver(time_limit = 10) %>% solve() # plot solutions plot(stack(sim_pu_raster, s), main = c("planning units", "solution"), axes = FALSE, box = FALSE) }#>