humoto
|
Solver class with active set guessing.
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... | |
void | solve (Solution &solution, ActiveSet &active_set, const humoto::OptimizationProblem &hierarchy, const ActiveSet &active_set_guess) |
Solve an optimization problem (using previously specified parameters) More... | |
void | solve (Solution &solution, const humoto::OptimizationProblem &hierarchy, const ActiveSet &active_set_guess) |
Solve an optimization problem (using previously specified parameters) More... | |
void | solve (humoto::Solution &solution, humoto::ActiveSet &active_set, const humoto::OptimizationProblem &hierarchy) |
Solve an optimization problem (using previously specified parameters) More... | |
Protected Member Functions | |
SolverGuessActiveSet () | |
~SolverGuessActiveSet () | |
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 | getActiveSet (humoto::ActiveSet &active_set, const humoto::OptimizationProblem &hierarchy)=0 |
Get active set. 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 | setActiveSet (const humoto::ActiveSet &active_set, const humoto::OptimizationProblem &hierarchy)=0 |
Set active set guess. More... | |
virtual void | solveHierarchy (humoto::Solution &solution, const humoto::OptimizationProblem &hierarchy)=0 |
Solve the hierarchy. More... | |
Protected Attributes | |
t_SolverParameters | parameters_ |
|
inlineprotected |
|
inlineprotected |
|
inlineprotectedvirtualinherited |
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 > >.
|
inlineprotectedinherited |
|
protectedpure virtualinherited |
Get active set.
[out] | active_set | |
[in] | hierarchy |
|
protectedpure virtualinherited |
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.
|
inlineprotectedvirtualinherited |
|
protectedpure virtualinherited |
Set active set guess.
[in] | hierarchy | |
[in] | active_set |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
protectedpure virtualinherited |
Solve the hierarchy.
[out] | solution | solution |
[in] | hierarchy | hierarchy |
Implemented in humoto::qpoases::Solver, humoto::kktsolver::Solver, humoto::qpmad::Solver, and humoto::quadprogpp::Solver.
|
protectedinherited |