# NOT RUN {
# create problem with proportion decisions
p <- problem(sim_pu_raster, sim_features) %>%
add_min_set_objective() %>%
add_relative_targets(0.1) %>%
add_proportion_decisions()
# }
# NOT RUN {
# solve problem
s <- solve(p)
# plot solutions
plot(s, main = "solution", axes = FALSE, box = FALSE)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab