humoto
Public Types | Public Member Functions | Public Attributes | Protected Attributes | List of all members
humoto::QPProblem_ILU_ALU Class Reference

Detailed Description

A QP problem with constraints of a specific type.

Definition at line 450 of file qp_problem.h.

#include <qp_problem.h>

Inheritance diagram for humoto::QPProblem_ILU_ALU:
Inheritance graph

Public Types

enum  HessianType { HESSIAN_UNDEFINED = 0, HESSIAN_GENERIC = 1, HESSIAN_DIAGONAL = 2, HESSIAN_LOWER_TRIANGULAR = 3 }
 
enum  Status { UNDEFINED = 0, INITIALIZED = 1, MODIFIED = 2 }
 

Public Member Functions

const humoto::constraints::ContainerALUgetGeneralConstraints () const
 get container with general constraints More...
 
const Eigen::VectorXd & getGradient () const
 Const accessor. More...
 
Eigen::VectorXd & getGradient ()
 Non-const accessor. More...
 
const Eigen::MatrixXd & getHessian () const
 Const accessor. More...
 
Eigen::MatrixXd & getHessian ()
 Non-const accessor. More...
 
HessianType getHessianType () const
 Hessian type. More...
 
const humoto::constraints::ContainerILUgetSimpleBounds () const
 get container with simple bounds More...
 
const Eigen::VectorXd & getSolutionLowerBounds () const
 Get LB vector: 'LB <= X'. More...
 
const Eigen::VectorXd & getSolutionUpperBounds () const
 Get UB vector: 'X <= UB'. More...
 
Status getStatus () const
 Status of the objective. More...
 
void initializeConstraints (const HierarchyLevel &hlevel, const humoto::SolutionStructure &sol_structure)
 Generates (general) objective containing all constraints on this level. More...
 
void initializeObjective (const humoto::HierarchyLevel &hlevel, const bool initialize_upper_triangular_part=true)
 Generates (general) objective containing all constraints on this level. More...
 
void log (humoto::Logger &logger, const LogEntryName &parent=LogEntryName(), const std::string &name="qp_problem") const
 Log a QP problem. More...
 
void regularize (const double regularization_factor)
 Adds regularization to the Hessian. More...
 

Public Attributes

humoto::constraints::ContainerILU bounds_
 
humoto::constraints::ContainerALU general_constraints_
 
Eigen::VectorXd lb_
 Simple bounds on variables. More...
 
Eigen::VectorXd ub_
 

Protected Attributes

Eigen::VectorXd g_
 Gradient vector. More...
 
Eigen::MatrixXd H_
 Hessian. More...
 
HessianType hessian_type_
 
Status status_
 

Member Enumeration Documentation

◆ HessianType

Enumerator
HESSIAN_UNDEFINED 
HESSIAN_GENERIC 
HESSIAN_DIAGONAL 
HESSIAN_LOWER_TRIANGULAR 

Definition at line 29 of file qp_problem.h.

◆ Status

Enumerator
UNDEFINED 
INITIALIZED 
MODIFIED 

Definition at line 22 of file qp_problem.h.

Member Function Documentation

◆ getGeneralConstraints()

const humoto::constraints::ContainerALU& humoto::QPConstraints_ILU_ALU::getGeneralConstraints ( ) const
inlineinherited

get container with general constraints

Returns
constraints container

Definition at line 250 of file qp_problem.h.

◆ getGradient() [1/2]

const Eigen::VectorXd& humoto::QPObjective::getGradient ( ) const
inlineinherited

Const accessor.

Returns
objective component

Definition at line 108 of file qp_problem.h.

◆ getGradient() [2/2]

Eigen::VectorXd& humoto::QPObjective::getGradient ( )
inlineinherited

Non-const accessor.

Returns
objective component

Definition at line 132 of file qp_problem.h.

◆ getHessian() [1/2]

const Eigen::MatrixXd& humoto::QPObjective::getHessian ( ) const
inlineinherited

Const accessor.

Returns
objective component

Definition at line 98 of file qp_problem.h.

◆ getHessian() [2/2]

Eigen::MatrixXd& humoto::QPObjective::getHessian ( )
inlineinherited

Non-const accessor.

Returns
objective component

Definition at line 120 of file qp_problem.h.

◆ getHessianType()

HessianType humoto::QPObjective::getHessianType ( ) const
inlineinherited

Hessian type.

Returns
Hessian type

Definition at line 157 of file qp_problem.h.

◆ getSimpleBounds()

const humoto::constraints::ContainerILU& humoto::QPConstraints_ILU_ALU::getSimpleBounds ( ) const
inlineinherited

get container with simple bounds

Returns
constraints container

Definition at line 240 of file qp_problem.h.

◆ getSolutionLowerBounds()

const Eigen::VectorXd& humoto::QPConstraints_ILU_ALU::getSolutionLowerBounds ( ) const
inlineinherited

Get LB vector: 'LB <= X'.

Returns
LB vector

Definition at line 260 of file qp_problem.h.

◆ getSolutionUpperBounds()

const Eigen::VectorXd& humoto::QPConstraints_ILU_ALU::getSolutionUpperBounds ( ) const
inlineinherited

Get UB vector: 'X <= UB'.

Returns
UB vector

Definition at line 270 of file qp_problem.h.

◆ getStatus()

Status humoto::QPObjective::getStatus ( ) const
inlineinherited

Status of the objective.

Returns
status

Definition at line 145 of file qp_problem.h.

◆ initializeConstraints()

void humoto::QPConstraints_ILU_ALU::initializeConstraints ( const HierarchyLevel hlevel,
const humoto::SolutionStructure sol_structure 
)
inlineinherited

Generates (general) objective containing all constraints on this level.

Parameters
[in]hlevelhierarchy level
[in]sol_structurestructure of the solution

Definition at line 225 of file qp_problem.h.

◆ initializeObjective()

void humoto::QPObjective::initializeObjective ( const humoto::HierarchyLevel hlevel,
const bool  initialize_upper_triangular_part = true 
)
inlineinherited

Generates (general) objective containing all constraints on this level.

Parameters
[in]hlevelhierarchy level
[in]initialize_upper_triangular_part

Definition at line 56 of file qp_problem.h.

◆ log()

void humoto::QPProblemBase< QPConstraints_ILU_ALU >::log ( humoto::Logger logger,
const LogEntryName parent = LogEntryName(),
const std::string &  name = "qp_problem" 
) const
inlineinherited

Log a QP problem.

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

Definition at line 434 of file qp_problem.h.

◆ regularize()

void humoto::QPObjective::regularize ( const double  regularization_factor)
inlineinherited

Adds regularization to the Hessian.

Parameters
[in]regularization_factor

Definition at line 168 of file qp_problem.h.

Member Data Documentation

◆ bounds_

humoto::constraints::ContainerILU humoto::QPConstraints_ILU_ALU::bounds_
inherited

Definition at line 208 of file qp_problem.h.

◆ g_

Eigen::VectorXd humoto::QPObjective::g_
protectedinherited

Gradient vector.

Definition at line 43 of file qp_problem.h.

◆ general_constraints_

humoto::constraints::ContainerALU humoto::QPConstraints_ILU_ALU::general_constraints_
inherited

Definition at line 207 of file qp_problem.h.

◆ H_

Eigen::MatrixXd humoto::QPObjective::H_
protectedinherited

Hessian.

Definition at line 40 of file qp_problem.h.

◆ hessian_type_

HessianType humoto::QPObjective::hessian_type_
protectedinherited

Definition at line 45 of file qp_problem.h.

◆ lb_

Eigen::VectorXd humoto::QPConstraints_ILU_ALU::lb_
inherited

Simple bounds on variables.

Definition at line 212 of file qp_problem.h.

◆ status_

Status humoto::QPObjective::status_
protectedinherited

Definition at line 46 of file qp_problem.h.

◆ ub_

Eigen::VectorXd humoto::QPConstraints_ILU_ALU::ub_
inherited

Definition at line 213 of file qp_problem.h.


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