humoto
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
humoto::constraints::BoundsUMixin< t_Base > Class Template Reference

Detailed Description

template<class t_Base>
class humoto::constraints::BoundsUMixin< t_Base >

Mixin representing upper bound in an inequality constraint.

Template Parameters
t_BaseBase class: humoto::constraints::ConstraintsBase or humoto::TaskBase wrapped with other mixins.

Definition at line 285 of file constraints_mixins.h.

#include <constraints_mixins.h>

Inheritance diagram for humoto::constraints::BoundsUMixin< t_Base >:
Inheritance graph

Public Member Functions

void copyBoundsTo (Eigen::VectorXd &lb, Eigen::VectorXd &ub, const Location &location) const
 Copy bounds to given vectors. More...
 
Eigen::VectorXd & getUpperBounds ()
 Get upper bounds (ub vectors from 'A*x <= ub'). More...
 
const Eigen::VectorXd & getUpperBounds () const
 Get upper bounds (ub vectors from 'A*x <= ub'). More...
 

Protected Member Functions

 BoundsUMixin ()
 
 ~BoundsUMixin ()
 Protected destructor: prevent destruction of the child classes through a base pointer. More...
 
void logBounds (humoto::Logger &logger, const LogEntryName &parent=LogEntryName(), const std::string &name="constraints") const
 Log bounds. More...
 
void resetBounds (const std::size_t number_of_constraints, const bool initialize_matrices=false)
 Reset bounds of constraints (b, lb, ub) More...
 

Protected Attributes

Eigen::VectorXd ub_
 

Constructor & Destructor Documentation

◆ ~BoundsUMixin()

template<class t_Base>
humoto::constraints::BoundsUMixin< t_Base >::~BoundsUMixin ( )
inlineprotected

Protected destructor: prevent destruction of the child classes through a base pointer.

Definition at line 296 of file constraints_mixins.h.

◆ BoundsUMixin()

template<class t_Base>
humoto::constraints::BoundsUMixin< t_Base >::BoundsUMixin ( )
inlineprotected

Definition at line 297 of file constraints_mixins.h.

Member Function Documentation

◆ copyBoundsTo()

template<class t_Base>
void humoto::constraints::BoundsUMixin< t_Base >::copyBoundsTo ( Eigen::VectorXd &  lb,
Eigen::VectorXd &  ub,
const Location location 
) const
inline

Copy bounds to given vectors.

Parameters
[in]lb
[in]ub
[in]locationoffset and length

Reimplemented in humoto::constraints::BoundsLUMixin< TaskBase >.

Definition at line 347 of file constraints_mixins.h.

◆ getUpperBounds() [1/2]

template<class t_Base>
Eigen::VectorXd& humoto::constraints::BoundsUMixin< t_Base >::getUpperBounds ( )
inline

Get upper bounds (ub vectors from 'A*x <= ub').

Returns
upper bounds.

Definition at line 333 of file constraints_mixins.h.

◆ getUpperBounds() [2/2]

template<class t_Base>
const Eigen::VectorXd& humoto::constraints::BoundsUMixin< t_Base >::getUpperBounds ( ) const
inline

Get upper bounds (ub vectors from 'A*x <= ub').

Returns
upper bounds.

Definition at line 340 of file constraints_mixins.h.

◆ logBounds()

template<class t_Base>
void humoto::constraints::BoundsUMixin< t_Base >::logBounds ( humoto::Logger logger,
const LogEntryName parent = LogEntryName(),
const std::string &  name = "constraints" 
) const
inlineprotected

Log bounds.

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

Reimplemented in humoto::constraints::BoundsLUMixin< TaskBase >, and humoto::constraints::BoundsLUMixin< ContainerBase >.

Definition at line 318 of file constraints_mixins.h.

◆ resetBounds()

template<class t_Base>
void humoto::constraints::BoundsUMixin< t_Base >::resetBounds ( const std::size_t  number_of_constraints,
const bool  initialize_matrices = false 
)
inlineprotected

Reset bounds of constraints (b, lb, ub)

Parameters
[in]number_of_constraintsnumber of constraints
[in]initialize_matricesinitialize matrices using defaults
Note
Initialization: ub is set to humoto::g_infinity

Reimplemented in humoto::constraints::BoundsLUMixin< TaskBase >, and humoto::constraints::BoundsLUMixin< ContainerBase >.

Definition at line 304 of file constraints_mixins.h.

Member Data Documentation

◆ ub_

template<class t_Base>
Eigen::VectorXd humoto::constraints::BoundsUMixin< t_Base >::ub_
protected

Definition at line 288 of file constraints_mixins.h.


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