humoto
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
humoto::qpmad::Solver Class Reference

Detailed Description

QP solver.

Definition at line 79 of file solver.h.

#include <solver.h>

Inheritance diagram for humoto::qpmad::Solver:
Inheritance graph

Public Member Functions

 Solver ()
 Default constructor (with default parameters) More...
 
 Solver (const SolverParameters &parameters)
 Set parameters. More...
 
 ~Solver ()
 Destructor. More...
 
void log (humoto::Logger &logger, const LogEntryName &parent=LogEntryName(), const std::string &name="qpmad") const
 Log a QP problem. More...
 
void setParameters (const SolverParameters &parameters)
 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 SolverParameters &parameters)
 Solve an optimization problem (using previously specified parameters) More...
 

Protected Member Functions

virtual void checkInputs (const humoto::OptimizationProblem &hierarchy) const
 
void checkResults (const humoto::Solution &solution) const
 Check return status and crash if it indicates a failure and crashing is enabled. More...
 
virtual void reset ()
 Reset solver. More...
 

Protected Attributes

SolverParameters parameters_
 

Private Member Functions

void initialize (const humoto::OptimizationProblem &hierarchy, const humoto::SolutionStructure &sol_structure)
 Initialize solver. More...
 
void solveHierarchy (humoto::Solution &solution, const humoto::OptimizationProblem &hierarchy)
 Solve the hierarchy. More...
 

Private Attributes

humoto::QPProblem_ILU_ALU qp_problem_
 
::qpmad::Solver solver
 

Constructor & Destructor Documentation

◆ Solver() [1/2]

humoto::qpmad::Solver::Solver ( )
inline

Default constructor (with default parameters)

Definition at line 151 of file solver.h.

◆ ~Solver()

humoto::qpmad::Solver::~Solver ( )
inline

Destructor.

Definition at line 159 of file solver.h.

◆ Solver() [2/2]

humoto::qpmad::Solver::Solver ( const SolverParameters parameters)
inlineexplicit

Set parameters.

Parameters
[in]parametersparameters

Definition at line 169 of file solver.h.

Member Function Documentation

◆ checkInputs()

virtual void humoto::QPSolverMixin< humoto::Solver< SolverParameters > >::checkInputs ( const humoto::OptimizationProblem hierarchy) const
inlineprotectedvirtualinherited

Reimplemented from humoto::Solver< SolverParameters >.

Definition at line 469 of file solver.h.

◆ checkResults()

void humoto::Solver< SolverParameters >::checkResults ( const humoto::Solution solution) const
inlineprotectedinherited

Check return status and crash if it indicates a failure and crashing is enabled.

Parameters
[in]solution

Definition at line 85 of file solver.h.

◆ initialize()

void humoto::qpmad::Solver::initialize ( const humoto::OptimizationProblem hierarchy,
const humoto::SolutionStructure sol_structure 
)
inlineprivatevirtual

Initialize solver.

Parameters
[in]hierarchyhierarchy
[in]sol_structuresolution structure

Implements humoto::Solver< SolverParameters >.

Definition at line 89 of file solver.h.

◆ log()

void humoto::qpmad::Solver::log ( humoto::Logger logger,
const LogEntryName parent = LogEntryName(),
const std::string &  name = "qpmad" 
) const
inline

Log a QP problem.

Parameters
[in,out]loggerlogger
[in]parentparent
[in]namename

Definition at line 182 of file solver.h.

◆ reset()

virtual void humoto::Solver< SolverParameters >::reset ( )
inlineprotectedvirtualinherited

Reset solver.

Reimplemented in humoto::qpoases::Solver.

Definition at line 110 of file solver.h.

◆ setParameters()

void humoto::Solver< SolverParameters >::setParameters ( const SolverParameters &  parameters)
inlineinherited

Construct solver with specified parameters.

Parameters
[in]parametersparameters

Definition at line 141 of file solver.h.

◆ solve() [1/2]

void humoto::Solver< SolverParameters >::solve ( humoto::Solution solution,
const humoto::OptimizationProblem hierarchy 
)
inlineinherited

Solve an optimization problem (using previously specified parameters)

Parameters
[out]solution
[in]hierarchy

Definition at line 155 of file solver.h.

◆ solve() [2/2]

void humoto::Solver< SolverParameters >::solve ( humoto::Solution solution,
const humoto::OptimizationProblem hierarchy,
const SolverParameters &  parameters 
)
inlineinherited

Solve an optimization problem (using previously specified parameters)

Parameters
[out]solution
[in]hierarchy
[in]parametersparameters

Definition at line 173 of file solver.h.

◆ solveHierarchy()

void humoto::qpmad::Solver::solveHierarchy ( humoto::Solution solution,
const humoto::OptimizationProblem hierarchy 
)
inlineprivatevirtual

Solve the hierarchy.

Parameters
[out]solutionsolution
[in]hierarchyhierarchy

Implements humoto::Solver< SolverParameters >.

Definition at line 98 of file solver.h.

Member Data Documentation

◆ parameters_

SolverParameters humoto::Solver< SolverParameters >::parameters_
protectedinherited

Definition at line 67 of file solver.h.

◆ qp_problem_

humoto::QPProblem_ILU_ALU humoto::qpmad::Solver::qp_problem_
private

Definition at line 84 of file solver.h.

◆ solver

::qpmad::Solver humoto::qpmad::Solver::solver
private

Definition at line 82 of file solver.h.


The documentation for this class was generated from the following file: