Solver-class | R Documentation |
This class is used to represent solvers for optimization. Only experts should use the fields and methods for this class directly.
prioritizr::ConservationModifier
-> Solver
prioritizr::ConservationModifier$get_data()
prioritizr::ConservationModifier$get_internal()
prioritizr::ConservationModifier$print()
prioritizr::ConservationModifier$repr()
prioritizr::ConservationModifier$set_data()
prioritizr::ConservationModifier$set_internal()
prioritizr::ConservationModifier$show()
run()
Run the solver to generate a solution.
Solver$run()
list
of solutions.
calculate()
Perform computations that need to be completed before applying the object.
Solver$calculate(...)
...
Additional arguments.
x
optimization_problem()
object.
Invisible TRUE
.
set_variable_ub()
Set the upper bound for a decision variable.
Solver$set_variable_ub(index, value)
index
integer
value indicating the index of the decision
variable.
value
numeric
new bound value.
Invisible TRUE
.
set_variable_lb()
Set the lower bound for a decision variable.
Solver$set_variable_lb(index, value)
index
integer
value indicating the index of the decision
variable.
value
numeric
new bound value.
Invisible TRUE
.
solve()
Solve an optimization problem.
Solver$solve(x, ...)
x
optimization_problem()
object.
...
Additional arguments passed to the calculate()
method.
Invisible TRUE
.
clone()
The objects of this class are cloneable with this method.
Solver$clone(deep = FALSE)
deep
Whether to make a deep clone.
Other classes:
ConservationModifier-class
,
ConservationProblem-class
,
Constraint-class
,
Decision-class
,
Objective-class
,
OptimizationProblem-class
,
Penalty-class
,
Portfolio-class
,
Target-class
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.