Write problem
Save the mathematical formulation for a conservation planning problem()
to a file for mixed integer programming solvers. Note that this function
requires the Rsymphony package to be installed.
write_problem(x, path)
x |
|
path |
|
Invisible TRUE
indicating success.
## Not run: # set seed for reproducibility set.seed(500) # load data data(sim_pu_raster, sim_features, sim_pu_zones_stack, sim_features_zones) # create minimal problem p <- problem(sim_pu_raster, sim_features) %>% add_min_set_objective() %>% add_relative_targets(0.1) %>% add_binary_decisions() # save problem to file (using the Rsymphony R package) write_problem(p, "model.lp") ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.