humoto
|
Base solver class.
t_SolverParameters | class representing parameters of the solver, should inherit from SolverParametersBase |
#include <solver.h>
Public Member Functions | |
void | setParameters (const t_SolverParameters ¶meters) |
Construct solver with specified parameters. More... | |
void | solve (humoto::Solution &solution, const humoto::OptimizationProblem &hierarchy) |
Solve an optimization problem (using previously specified parameters) More... | |
void | solve (humoto::Solution &solution, const humoto::OptimizationProblem &hierarchy, const t_SolverParameters ¶meters) |
Solve an optimization problem (using previously specified parameters) More... | |
Protected Member Functions | |
Solver () | |
~Solver () | |
Protected destructor: prevent destruction of the child classes through a base pointer. More... | |
virtual void | checkInputs (const humoto::OptimizationProblem &hierarchy) const |
Checks input, does nothing by default, may include extra checks in mixins. More... | |
void | checkResults (const humoto::Solution &solution) const |
Check return status and crash if it indicates a failure and crashing is enabled. More... | |
virtual void | initialize (const humoto::OptimizationProblem &hierarchy, const humoto::SolutionStructure &sol_structure)=0 |
Initialize solver. More... | |
virtual void | reset () |
Reset solver. More... | |
virtual void | solveHierarchy (humoto::Solution &solution, const humoto::OptimizationProblem &hierarchy)=0 |
Solve the hierarchy. More... | |
Protected Attributes | |
t_SolverParameters | parameters_ |
|
inlineprotected |
|
inlineprotected |
|
inlineprotectedvirtual |
Checks input, does nothing by default, may include extra checks in mixins.
[in] | hierarchy |
Reimplemented in humoto::QPSolverMixin< humoto::Solver< SolverParameters > >, and humoto::QPSolverMixin< humoto::SolverGuessSolutionActiveSet< SolverParameters > >.
|
inlineprotected |
|
protectedpure virtual |
Initialize solver.
[in] | hierarchy | hierarchy |
[in] | sol_structure | solution structure |
Implemented in humoto::qpoases::Solver, humoto::kktsolver::Solver, humoto::qpmad::Solver, and humoto::quadprogpp::Solver.
|
inlineprotectedvirtual |
|
inline |
|
inline |
|
inline |
|
protectedpure virtual |
Solve the hierarchy.
[out] | solution | solution |
[in] | hierarchy | hierarchy |
Implemented in humoto::qpoases::Solver, humoto::kktsolver::Solver, humoto::qpmad::Solver, and humoto::quadprogpp::Solver.
|
protected |