Description Usage Arguments Details Value Examples
Compile a ConservationProblem-class
into an
OptimizationProblem-class
object.
1 2 3 4 |
x |
|
... |
not used. |
compressed_formulation |
|
In nearly all cases, the default argument to
formulation
should be used. The only situation where manually
setting the argument to formulation
is desireable is during testing.
Manually setting the argument to formulation
will at best
have no effect on the problem. At worst, it may result in
an error, a mis-specfied problem, or unnecessarily long
solve times.
OptimizationProblem-class
object.
1 2 3 4 5 6 7 8 9 10 11 12 13 | # build minimal conservation problem
p <- problem(sim_pu_raster, sim_features) %>%
add_min_set_objective() %>%
add_relative_targets(0.1)
# compile the conservation problem into an optimization problem
o <- compile(p)
# print the optimization problem
print(o)
# print the optimization problem
print(o)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.