humoto
Public Member Functions | Private Attributes | List of all members
humoto::ActiveSet Class Reference

Detailed Description

Active set corresponding to a hierarchy of Constraints.

Definition at line 278 of file active_set.h.

#include <active_set.h>

Public Member Functions

void initialize (const std::size_t number_of_levels, const std::vector< std::size_t > &number_of_constraints)
 Initialize active set. More...
 
void log (humoto::Logger &logger, const LogEntryName &parent=LogEntryName(), const std::string &name="active_set") const
 Log an active set. More...
 
const humoto::ActiveSetConstraintsoperator[] (const std::size_t level_index) const
 Access active set of a given level (const) More...
 
humoto::ActiveSetConstraintsoperator[] (const std::size_t level_index)
 Access active set of a given level. More...
 
void reset ()
 Reset active set. More...
 
void set (const std::size_t level_index, const ConstraintActivationType::Type type)
 Set type of all constraints on the given level. More...
 
std::size_t size () const
 Size of the active set. More...
 

Private Attributes

std::vector< ActiveSetConstraintsdata_
 

Member Function Documentation

◆ initialize()

void humoto::ActiveSet::initialize ( const std::size_t  number_of_levels,
const std::vector< std::size_t > &  number_of_constraints 
)
inline

Initialize active set.

Parameters
[in]number_of_levelsnumber of levels
[in]number_of_constraintsnumber of constraints for each level

Definition at line 353 of file active_set.h.

◆ log()

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

Log an active set.

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

Definition at line 373 of file active_set.h.

◆ operator[]() [1/2]

const humoto::ActiveSetConstraints& humoto::ActiveSet::operator[] ( const std::size_t  level_index) const
inline

Access active set of a given level (const)

Parameters
[in]level_indexindex of the level
Returns
reference to the active set.

Definition at line 292 of file active_set.h.

◆ operator[]() [2/2]

humoto::ActiveSetConstraints& humoto::ActiveSet::operator[] ( const std::size_t  level_index)
inline

Access active set of a given level.

Parameters
[in]level_indexindex of the level
Returns
reference to the active set.

Definition at line 306 of file active_set.h.

◆ reset()

void humoto::ActiveSet::reset ( )
inline

Reset active set.

Definition at line 341 of file active_set.h.

◆ set()

void humoto::ActiveSet::set ( const std::size_t  level_index,
const ConstraintActivationType::Type  type 
)
inline

Set type of all constraints on the given level.

Parameters
[in]level_indexindex of the level
[in]typetype of the constraints

Definition at line 319 of file active_set.h.

◆ size()

std::size_t humoto::ActiveSet::size ( ) const
inline

Size of the active set.

Returns
Size of the active set.

Definition at line 332 of file active_set.h.

Member Data Documentation

◆ data_

std::vector< ActiveSetConstraints > humoto::ActiveSet::data_
private

Definition at line 281 of file active_set.h.


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