Abstract class defining the comparison for a function value and doing a saturation, necessary for inequality constraint. More...
#include <hpp/core/comparison-type.hh>
Public Types | |
enum | Type { Equality, EqualToZero, Superior, Inferior, DoubleInequality } |
typedef std::vector< Type > | VectorOfTypes |
Public Member Functions | |
virtual bool | operator() (vectorOut_t value, matrixOut_t jacobian) const =0 |
Return the result of the comparison. | |
virtual bool | operator() (vectorOut_t value) const =0 |
Return the result of the comparison. | |
virtual bool | constantRightHandSide () const |
Return whether the right hand side of the comparison is constant. | |
Static Public Member Functions | |
static ComparisonTypePtr_t | createDefault () |
Abstract class defining the comparison for a function value and doing a saturation, necessary for inequality constraint.
used to compare two vector. They are used in ConfigProjector to implement inequality constraint.
typedef std::vector<Type> hpp::core::ComparisonType::VectorOfTypes |
virtual bool hpp::core::ComparisonType::constantRightHandSide | ( | ) | const [inline, virtual] |
Return whether the right hand side of the comparison is constant.
Reimplemented in hpp::core::Equality.
static ComparisonTypePtr_t hpp::core::ComparisonType::createDefault | ( | ) | [static] |
Referenced by hpp::core::ProblemSolver::addNumericalConstraint().
virtual bool hpp::core::ComparisonType::operator() | ( | vectorOut_t | value, |
matrixOut_t | jacobian | ||
) | const [pure virtual] |
Return the result of the comparison.
[in,out] | value | the value that will be compared and saturated. |
[in,out] | jacobian | the jacobian to be saturated depending on the value. |
Implemented in hpp::core::DoubleInequality, hpp::core::Inequality< T >, hpp::core::ComparisonTypes, hpp::core::EqualToZero, and hpp::core::Equality.
virtual bool hpp::core::ComparisonType::operator() | ( | vectorOut_t | value | ) | const [pure virtual] |
Return the result of the comparison.
[in,out] | value | the value that will be compared and saturated. |
Implemented in hpp::core::DoubleInequality, hpp::core::Inequality< T >, hpp::core::ComparisonTypes, hpp::core::EqualToZero, and hpp::core::Equality.