Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

Solver-class

Solver prototype


Description

This prototype is used to generate objects that represent methods for solving optimization problems. This class represents a recipe to create solver and and is only recommended for use by expert users. To customize the method used to solve optimization problems, please see the help page on solvers.

Fields

$name

character name of solver.

$data

list object optimization problem data.

$parameters

Parameters object with parameters used to customize the the solver.

$solve

function used to solve a OptimizationProblem object.

Usage

x$print()

x$show()

x$repr()

x$get_data(name)

x$set_data(name, value)

x$set_variable_ub(index, value)

x$set_variable_lb(index, value)

x$calculate(op)

x$run()

x$solve(op)

Arguments

x

Solver object.

op

OptimizationProblem object.

Details

print

print the object.

show

show the object.

repr

character representation of object.

get_data

return an object stored in the data field with the corresponding name. If the object is not present in the data field, a waiver object is returned.

set_data

store an object stored in the data field with the corresponding name. If an object with that name already exists then the object is overwritten.

set_variable_ub

set the upper bounds on decision variables in a pre-calculated optimization problem stored in the solver.

set_variable_lb

set the lower bounds on decision variables in a pre-calculated optimization problem stored in the solver.

calculate

ingest a general purpose OptimizationProblem object and convert it to the correct format for the solver.

run

run the solver and output a solution

solve

solve an OptimizationProblem using this object.


prioritizr

Systematic Conservation Prioritization in R

v7.0.1
GPL-3
Authors
Jeffrey O Hanson [aut] (<https://orcid.org/0000-0002-4716-6134>), Richard Schuster [aut, cre] (<https://orcid.org/0000-0003-3191-7869>), Nina Morrell [aut], Matthew Strimas-Mackey [aut] (<https://orcid.org/0000-0001-8929-7776>), Matthew E Watts [aut], Peter Arcese [aut] (<https://orcid.org/0000-0002-8097-482X>), Joseph Bennett [aut] (<https://orcid.org/0000-0002-3901-9513>), Hugh P Possingham [aut] (<https://orcid.org/0000-0001-7755-996X>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.