# NOT RUN {
# 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() %>%
add_cuts_portfolio(10) %>%
add_default_solver(gap = 0.2, verbose = FALSE)
# }
# NOT RUN {
# solve problem and generate 10 solutions within 20 % of optimality
s <- solve(p)
# plot solution
plot(s, axes = FALSE, box = FALSE)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab