#include <ActiveSet.hpp>
Public Member Functions | |
ActiveSet (Index nr) | |
void | reset (void) |
void | active (Index ref, Bound::bound_t type, const Index row) |
Index | activeRow (Index ref, Bound::bound_t type) |
Index | activeRow (const ConstraintRef &cst) |
void | unactiveRow (Index row) |
void | freeze (Index ref) |
Index | nbActive (void) const |
Index | size (void) const |
bool | isFreezed (Index ref) const |
bool | isActive (Index ref) const |
bool | wasActive (Index ref, const Bound::bound_t type) const |
Bound::bound_t | whichBound (Index ref, bool checkActive=false) const |
double | sign (Index ref) const |
Index | map (Index ref) const |
Index | mapInv (Index row) const |
Matrix< Index, Dynamic, 1 > | getIndirection (void) const |
Index | where (Index ref) const |
Index | whichConstraint (Index row) const |
void | dampBoundValue (const ConstraintRef &cst, const double &value) |
std::pair< double, double > | getBoundDamping (const Index &cst) |
void | disp (std::ostream &os, bool classic=true) const |
void | permuteRows (const VectorXi &P) |
operator Matrix< Index, Dynamic, 1 > (void) const | |
Protected Types | |
typedef std::vector< Index > | mapinv_vector_t |
Protected Member Functions | |
bool | isRowFree (Index row) |
Index | getAFreeRow (void) |
void | freeARow (Index row) |
Protected Attributes | |
cstref_vector_t | cstMap |
mapinv_vector_t | cstMapInv |
std::vector< bool > | freerow |
std::vector< bool > | freezed |
Matrix< Bound::bound_t, Dynamic, 1 > | activated |
VectorXd | dampingInf |
VectorXd | dampingSup |
Index | nba |
typedef std::vector<Index> soth::ActiveSet< Indirect >::mapinv_vector_t [protected] |
soth::ActiveSet< Indirect >::ActiveSet | ( | Index | nr | ) | [inline] |
void soth::ActiveSet< Indirect >::active | ( | Index | ref, |
Bound::bound_t | type, | ||
const Index | row | ||
) | [inline] |
Reimplemented in soth::SubActiveSet< ActiveSet< Indirect >, Indirect >.
References soth::Bound::BOUND_DOUBLE, soth::Bound::BOUND_INF, soth::Bound::BOUND_NONE, and soth::Bound::BOUND_SUP.
Index soth::ActiveSet< Indirect >::activeRow | ( | Index | ref, |
Bound::bound_t | type | ||
) | [inline] |
Reimplemented in soth::SubActiveSet< ActiveSet< Indirect >, Indirect >.
Index soth::ActiveSet< Indirect >::activeRow | ( | const ConstraintRef & | cst | ) | [inline] |
Reimplemented in soth::SubActiveSet< ActiveSet< Indirect >, Indirect >.
References soth::ActiveSet< Indirect >::activeRow(), soth::ConstraintRef::row, and soth::ConstraintRef::type.
Referenced by soth::ActiveSet< Indirect >::activeRow().
void soth::ActiveSet< Indirect >::dampBoundValue | ( | const ConstraintRef & | cst, |
const double & | value | ||
) | [inline] |
References soth::Bound::BOUND_INF, soth::Bound::BOUND_SUP, soth::ConstraintRef::row, and soth::ConstraintRef::type.
Referenced by soth::Stage::dampBoundValue().
void soth::ActiveSet< Indirect >::disp | ( | std::ostream & | os, |
bool | classic = true |
||
) | const [inline] |
Reimplemented in soth::SubActiveSet< ActiveSet< Indirect >, Indirect >.
References soth::Bound::BOUND_INF, and soth::Bound::BOUND_SUP.
Referenced by soth::operator<<().
void soth::ActiveSet< Indirect >::freeARow | ( | Index | row | ) | [inline, protected] |
void soth::ActiveSet< Indirect >::freeze | ( | Index | ref | ) | [inline] |
References soth::Bound::BOUND_NONE, and soth::Bound::BOUND_TWIN.
Referenced by soth::Stage::freezeSlacks().
unsigned int soth::ActiveSet< Indirect >::getAFreeRow | ( | void | ) | [inline, protected] |
std::pair< double, double > soth::ActiveSet< Indirect >::getBoundDamping | ( | const Index & | cst | ) | [inline] |
Referenced by soth::Stage::checkBound().
VectorXi soth::ActiveSet< Indirect >::getIndirection | ( | void | ) | const [inline] |
Reimplemented in soth::SubActiveSet< ActiveSet< Indirect >, Indirect >.
bool soth::ActiveSet< Indirect >::isActive | ( | Index | ref | ) | const [inline] |
bool soth::ActiveSet< Indirect >::isFreezed | ( | Index | ref | ) | const [inline] |
References soth::Bound::BOUND_TWIN.
Referenced by soth::Stage::freezeSlacks().
bool soth::ActiveSet< Indirect >::isRowFree | ( | Index | row | ) | [inline, protected] |
Index soth::ActiveSet< Indirect >::map | ( | Index | ref | ) | const [inline] |
Reimplemented in soth::SubActiveSet< ActiveSet< Indirect >, Indirect >.
Index soth::ActiveSet< Indirect >::mapInv | ( | Index | row | ) | const [inline] |
Reimplemented in soth::SubActiveSet< ActiveSet< Indirect >, Indirect >.
Index soth::ActiveSet< Indirect >::nbActive | ( | void | ) | const [inline] |
soth::ActiveSet< Indirect >::operator Matrix< Index, Dynamic, 1 > | ( | void | ) | const [inline] |
Reimplemented in soth::SubActiveSet< ActiveSet< Indirect >, Indirect >.
void soth::ActiveSet< Indirect >::permuteRows | ( | const VectorXi & | P | ) |
void soth::ActiveSet< Indirect >::reset | ( | void | ) | [inline] |
Reimplemented in soth::SubActiveSet< ActiveSet< Indirect >, Indirect >.
References soth::Bound::BOUND_NONE, and soth::CONSTRAINT_VOID.
double soth::ActiveSet< Indirect >::sign | ( | Index | ref | ) | const [inline] |
References soth::Bound::BOUND_DOUBLE, and soth::Bound::BOUND_INF.
Referenced by soth::Stage::eactive(), and soth::Stage::Jactive().
Index soth::ActiveSet< Indirect >::size | ( | void | ) | const [inline] |
void soth::ActiveSet< Indirect >::unactiveRow | ( | Index | row | ) | [inline] |
Reimplemented in soth::SubActiveSet< ActiveSet< Indirect >, Indirect >.
References soth::Bound::BOUND_NONE, and soth::CONSTRAINT_VOID.
bool soth::ActiveSet< Indirect >::wasActive | ( | Index | ref, |
const Bound::bound_t | type | ||
) | const [inline] |
Index soth::ActiveSet< Indirect >::where | ( | Index | ref | ) | const [inline] |
Reimplemented in soth::SubActiveSet< ActiveSet< Indirect >, Indirect >.
Bound::bound_t soth::ActiveSet< Indirect >::whichBound | ( | Index | ref, |
bool | checkActive = false |
||
) | const [inline] |
References soth::Bound::BOUND_DOUBLE, and soth::Bound::BOUND_NONE.
Referenced by soth::Stage::computeInitialJY(), soth::Stage::eactive(), and soth::Stage::which().
Index soth::ActiveSet< Indirect >::whichConstraint | ( | Index | row | ) | const [inline] |
Reimplemented in soth::SubActiveSet< ActiveSet< Indirect >, Indirect >.
Matrix<Bound::bound_t,Dynamic,1> soth::ActiveSet< Indirect >::activated [protected] |
cstref_vector_t soth::ActiveSet< Indirect >::cstMap [protected] |
mapinv_vector_t soth::ActiveSet< Indirect >::cstMapInv [protected] |
VectorXd soth::ActiveSet< Indirect >::dampingInf [protected] |
VectorXd soth::ActiveSet< Indirect >::dampingSup [protected] |
std::vector<bool> soth::ActiveSet< Indirect >::freerow [protected] |
std::vector<bool> soth::ActiveSet< Indirect >::freezed [protected] |
Index soth::ActiveSet< Indirect >::nba [protected] |