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

Detailed Description

QP solver.

Definition at line 54 of file solver.h.

#include <solver.h>

Inheritance diagram for humoto::quadprogpp::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="quadprogpp") 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_AB_AL qp_problem_
 
QuadProgpp::Solver solver
 

Constructor & Destructor Documentation

◆ Solver() [1/2]

humoto::quadprogpp::Solver::Solver ( )
inline

Default constructor (with default parameters)

Definition at line 120 of file solver.h.

◆ ~Solver()

humoto::quadprogpp::Solver::~Solver ( )
inline

Destructor.

Definition at line 128 of file solver.h.

◆ Solver() [2/2]

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

Set parameters.

Parameters
[in]parametersparameters

Definition at line 138 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::quadprogpp::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 64 of file solver.h.

◆ log()

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

Log a QP problem.

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

Definition at line 151 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::quadprogpp::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 73 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_AB_AL humoto::quadprogpp::Solver::qp_problem_
private

Definition at line 59 of file solver.h.

◆ solver

QuadProgpp::Solver humoto::quadprogpp::Solver::solver
private

Definition at line 57 of file solver.h.


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