Manages working sets of bounds (= box constraints). More...
#include <Bounds.hpp>
Public Attributes | |
int | n |
BooleanType | noLower |
BooleanType | noUpper |
SubjectToStatus | status [NVMAX] |
SubjectToType | type [NVMAX] |
Protected Member Functions | |
returnValue | clear () |
returnValue | clear () |
returnValue | copy (const Bounds &rhs) |
returnValue | copy (const Bounds &rhs) |
returnValue | setupAll (SubjectToStatus _status) |
returnValue | setupAll (SubjectToStatus _status) |
Protected Member Functions inherited from SubjectTo | |
returnValue | addIndex (Indexlist *const indexlist, int newnumber, SubjectToStatus newstatus) |
returnValue | addIndex (Indexlist *const indexlist, int newnumber, SubjectToStatus newstatus) |
returnValue | addIndex (Indexlist *const indexlist, int newnumber, SubjectToStatus newstatus) |
returnValue | addIndex (Indexlist *const indexlist, int_t newnumber, SubjectToStatus newstatus) |
returnValue | clear () |
returnValue | clear () |
returnValue | copy (const SubjectTo &rhs) |
returnValue | copy (const SubjectTo &rhs) |
returnValue | removeIndex (Indexlist *const indexlist, int removenumber) |
returnValue | removeIndex (Indexlist *const indexlist, int removenumber) |
returnValue | removeIndex (Indexlist *const indexlist, int_t removenumber) |
returnValue | removeIndex (Indexlist *const indexlist, int removenumber) |
returnValue | swapIndex (Indexlist *const indexlist, int number1, int number2) |
returnValue | swapIndex (Indexlist *const indexlist, int number1, int number2) |
returnValue | swapIndex (Indexlist *const indexlist, int number1, int number2) |
returnValue | swapIndex (Indexlist *const indexlist, int_t number1, int_t number2) |
Protected Attributes | |
Indexlist | fixed |
Indexlist | free |
Indexlist | freee |
int | nBV |
int | nFV |
int | nUV |
int | nV |
Protected Attributes inherited from SubjectTo | |
int | n |
int_t | n |
BooleanType | noLower |
BooleanType | noUpper |
SubjectToStatus | status [NVMAX+NCMAX] |
SubjectToStatus * | status |
SubjectToType | type [NVMAX+NCMAX] |
SubjectToType * | type |
Manages working sets of bounds (= box constraints).
Manages working sets of bounds (i.e. box constraints).
This class manages working sets of bounds by storing index sets and other status information.
This class manages working sets of bounds (= box constraints) by storing index sets and other status information.
This class manages working sets of bounds (= box constraints) by storing index sets and other status information.
This class manages working sets of bounds (= box constraints) by storing index sets and other status information.
Definition at line 50 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/INCLUDE/Bounds.hpp.
BEGIN_NAMESPACE_QPOASES Bounds::Bounds | ( | ) |
Default constructor.
Definition at line 47 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/SRC/Bounds.cpp.
Bounds::Bounds | ( | const Bounds & | rhs | ) |
Copy constructor (deep copy).
rhs | Rhs object. |
Definition at line 59 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/SRC/Bounds.cpp.
Bounds::~Bounds | ( | ) |
Destructor.
Definition at line 73 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/SRC/Bounds.cpp.
Bounds::Bounds | ( | ) |
Default constructor.
Bounds::Bounds | ( | const Bounds & | rhs | ) |
Copy constructor (deep copy).
rhs | Rhs object. |
Bounds::~Bounds | ( | ) |
Destructor.
Bounds::Bounds | ( | ) |
Default constructor.
Bounds::Bounds | ( | int | _n | ) |
Constructor which takes the number of bounds.
_n | Number of bounds. |
Definition at line 58 of file external_packages/qpOASES-3.0beta/src/Bounds.cpp.
Bounds::Bounds | ( | const Bounds & | rhs | ) |
Copy constructor (deep copy).
rhs | Rhs object. |
|
virtual |
Destructor.
Bounds::Bounds | ( | ) |
Default constructor.
Bounds::Bounds | ( | int_t | _n | ) |
Constructor which takes the number of bounds.
_n | Number of bounds. |
Bounds::Bounds | ( | const Bounds & | rhs | ) |
Copy constructor (deep copy).
rhs | Rhs object. |
|
virtual |
Destructor.
|
protected |
Frees all allocated memory.
Definition at line 439 of file external_packages/qpOASES-3.0beta/src/Bounds.cpp.
|
protected |
Frees all allocated memory.
|
protected |
Copies all members from given rhs object.
rhs | Rhs object. |
|
protected |
Copies all members from given rhs object.
rhs | Rhs object. |
Definition at line 448 of file external_packages/qpOASES-3.0beta/src/Bounds.cpp.
returnValue Bounds::flipFixed | ( | int_t | number | ) |
Flip fixed bound.
returnValue Bounds::flipFixed | ( | int | number | ) |
Flip fixed bound.
Definition at line 228 of file external_packages/qpOASES-3.0beta/src/Bounds.cpp.
|
inline |
Returns a pointer to fixed variables index list.
|
inline |
Returns a pointer to fixed variables index list.
|
inline |
Returns a pointer to fixed variables index list.
|
inline |
Returns a pointer to fixed variables index list.
|
inline |
Returns a pointer to free variables index list.
|
inline |
Returns a pointer to free variables index list.
|
inline |
Returns a pointer to free variables index list.
|
inline |
Returns a pointer to free variables index list.
|
inline |
Returns number of bounded (but possibly free) variables.
|
inline |
Returns number of bounded (but possibly free) variables.
|
inline |
Returns number of bounded (but possibly free) variables.
|
inline |
Returns number of bounded (but possibly free) variables.
|
inline |
Returns number of free variables.
|
inline |
Returns number of free variables.
|
inline |
Returns number of free variables.
|
inline |
Returns number of free variables.
|
inline |
Returns number of implicitly fixed variables.
|
inline |
Returns number of implicitly fixed variables.
|
inline |
Returns number of implicitly fixed variables.
|
inline |
Returns number of implicitly fixed variables.
|
inline |
Returns number of fixed variables.
|
inline |
Returns number of fixed variables.
|
inline |
Returns number of fixed variables.
|
inline |
Returns number of fixed variables.
|
inline |
Returns number of unbounded variables.
|
inline |
Returns number of unbounded variables.
|
inline |
Returns number of unbounded variables.
|
inline |
Returns number of unbounded variables.
|
inline |
Returns number of variables.
|
inline |
Returns number of variables.
|
inline |
Returns number of variables.
|
inline |
Returns number of variables.
returnValue Bounds::init | ( | int | n | ) |
Pseudo-constructor takes the number of bounds.
n | Number of bounds. |
Definition at line 103 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/SRC/Bounds.cpp.
returnValue Bounds::init | ( | int | n | ) |
Pseudo-constructor takes the number of bounds.
n | Number of bounds. |
returnValue Bounds::init | ( | int | _n = 0 | ) |
Initialises object with given number of bounds.
_n | Number of bounds. |
returnValue Bounds::init | ( | int_t | _n = 0 | ) |
Initialises object with given number of bounds.
_n | Number of bounds. |
returnValue Bounds::moveFixedToFree | ( | int | _number | ) |
Moves index of a bound from index list of fixed to that of free bounds.
_number | Number of bound to be freed. |
returnValue Bounds::moveFixedToFree | ( | int | _number | ) |
Moves index of a bound from index list of fixed to that of free bounds.
_number | Number of bound to be freed. |
Definition at line 197 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/SRC/Bounds.cpp.
returnValue Bounds::moveFixedToFree | ( | int_t | number | ) |
Moves index of a bound from index list of fixed to that of free bounds.
number | Number of bound to be freed. |
returnValue Bounds::moveFixedToFree | ( | int | number | ) |
Moves index of a bound from index list of fixed to that of free bounds.
number | Number of bound to be freed. |
returnValue Bounds::moveFreeToFixed | ( | int | _number, |
SubjectToStatus | _status | ||
) |
Moves index of a bound from index list of free to that of fixed bounds.
_number | Number of bound to be fixed. |
_status | Status of bound to be fixed. |
returnValue Bounds::moveFreeToFixed | ( | int | _number, |
SubjectToStatus | _status | ||
) |
Moves index of a bound from index list of free to that of fixed bounds.
_number | Number of bound to be fixed. |
_status | Status of bound to be fixed. |
Definition at line 217 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/SRC/Bounds.cpp.
returnValue Bounds::moveFreeToFixed | ( | int | number, |
SubjectToStatus | _status | ||
) |
Moves index of a bound from index list of free to that of fixed bounds.
number | Number of bound to be fixed. |
_status | Status of bound to be fixed. |
returnValue Bounds::moveFreeToFixed | ( | int_t | number, |
SubjectToStatus | _status | ||
) |
Moves index of a bound from index list of free to that of fixed bounds.
number | Number of bound to be fixed. |
_status | Status of bound to be fixed. |
Assignment operator (deep copy).
rhs | Rhs object. |
Definition at line 81 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/SRC/Bounds.cpp.
Assignment operator (deep copy).
rhs | Rhs object. |
Assignment operator (deep copy).
rhs | Rhs object. |
Assignment operator (deep copy).
rhs | Rhs object. |
returnValue Bounds::print | ( | ) |
Prints information on bounds object (in particular, lists of free and fixed bounds.
returnValue Bounds::print | ( | ) |
Prints information on bounds object (in particular, lists of free and fixed bounds.
Definition at line 400 of file external_packages/qpOASES-3.0beta/src/Bounds.cpp.
|
virtual |
Rotates forward type and status of all bounds by a given offset. This offset has to lie within the range [0,n]. Example for offset = 2:
rotate( {b1,b2,b3,b4,b5,b6} ) = {b3,b4,b5,b6,b1,b2}
offset | Rotation offset within the range [0,n]. |
Implements SubjectTo.
|
virtual |
Rotates forward type and status of all bounds by a given offset. This offset has to lie within the range [0,n]. Example for offset = 2:
rotate( {c/b1,c/b2,c/b3,c/b4,c/b5,c/b6} ) = {c/b3,c/b4,c/b5,c/b6,c/b1,c/b2}
offset | Rotation offset within the range [0,n]. |
Implements SubjectTo.
Definition at line 325 of file external_packages/qpOASES-3.0beta/src/Bounds.cpp.
|
inline |
Sets number of bounded (but possibly free) variables.
n | Number of bounded (but possibly free) variables. |
|
inline |
Sets number of bounded (but possibly free) variables.
n | Number of bounded (but possibly free) variables. |
|
inline |
Sets number of implicitly fixed variables.
n | Number of implicitly fixed variables. |
|
inline |
Sets number of implicitly fixed variables.
n | Number of implicitly fixed variables. |
|
inline |
Sets number of unbounded variables.
n | Number of unbounded variables |
|
inline |
Sets number of unbounded variables.
n | Number of unbounded variables |
|
protected |
Initially adds all numbers of new (i.e. not yet in the list) bounds to to the index set corresponding to the desired status; the order depends on the SujectToType of each index.
_status | Desired initial status for all bounds. |
|
protected |
Initially adds all numbers of new (i.e. not yet in the list) bounds to to the index set corresponding to the desired status; the order depends on the SujectToType of each index.
_status | Desired initial status for all bounds. |
Definition at line 462 of file external_packages/qpOASES-3.0beta/src/Bounds.cpp.
returnValue Bounds::setupAllFree | ( | ) |
Initially adds all numbers of new (i.e. not yet in the list) bounds to to the index set of free bounds; the order depends on the SujectToType of each index.
Definition at line 156 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/SRC/Bounds.cpp.
returnValue Bounds::setupAllFree | ( | ) |
Initially adds all numbers of new (i.e. not yet in the list) bounds to to the index set of free bounds; the order depends on the SujectToType of each index.
returnValue Bounds::setupAllFree | ( | ) |
Initially adds all numbers of new (i.e. not yet in the list) bounds to to the index set of free bounds; the order depends on the SujectToType of each index.
returnValue Bounds::setupAllFree | ( | ) |
Initially adds all numbers of new (i.e. not yet in the list) bounds to to the index set of free bounds; the order depends on the SujectToType of each index.
returnValue Bounds::setupAllLower | ( | ) |
Initially adds all numbers of new (i.e. not yet in the list) bounds to to the index set of fixed bounds (on their lower bounds); the order depends on the SujectToType of each index.
Definition at line 169 of file external_packages/qpOASES-3.0beta/src/Bounds.cpp.
returnValue Bounds::setupAllLower | ( | ) |
Initially adds all numbers of new (i.e. not yet in the list) bounds to to the index set of fixed bounds (on their lower bounds); the order depends on the SujectToType of each index.
returnValue Bounds::setupAllUpper | ( | ) |
Initially adds all numbers of new (i.e. not yet in the list) bounds to to the index set of fixed bounds (on their upper bounds); the order depends on the SujectToType of each index.
Definition at line 178 of file external_packages/qpOASES-3.0beta/src/Bounds.cpp.
returnValue Bounds::setupAllUpper | ( | ) |
Initially adds all numbers of new (i.e. not yet in the list) bounds to to the index set of fixed bounds (on their upper bounds); the order depends on the SujectToType of each index.
returnValue Bounds::setupBound | ( | int | _number, |
SubjectToStatus | _status | ||
) |
Initially adds number of a new (i.e. not yet in the list) bound to given index set.
_number | Number of new bound. |
_status | Status of new bound. |
returnValue Bounds::setupBound | ( | int | _number, |
SubjectToStatus | _status | ||
) |
Initially adds number of a new (i.e. not yet in the list) bound to given index set.
_number | Number of new bound. |
_status | Status of new bound. |
Definition at line 120 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/SRC/Bounds.cpp.
returnValue Bounds::setupBound | ( | int_t | number, |
SubjectToStatus | _status | ||
) |
Initially adds number of a new (i.e. not yet in the list) bound to given index set.
number | Number of new bound. |
_status | Status of new bound. |
returnValue Bounds::setupBound | ( | int | number, |
SubjectToStatus | _status | ||
) |
Initially adds number of a new (i.e. not yet in the list) bound to given index set.
number | Number of new bound. |
_status | Status of new bound. |
|
virtual |
Shifts forward type and status of all bounds by a given offset. This offset has to lie within the range [0,n/2] and has to be an integer divisor of the total number of bounds n. Type and status of the first <offset> bounds is thrown away, type and status of the last <offset> bounds is real_td, e.g. for offset = 2:
shift( {c/b1,c/b2,c/b3,c/b4,c/b5,c/b6} ) = {c/b3,c/b4,c/b5,c/b6,c/b5,c/b6}
offset | Shift offset within the range [0,n/2] and integer divisor of n. |
Implements SubjectTo.
Definition at line 264 of file external_packages/qpOASES-3.0beta/src/Bounds.cpp.
|
virtual |
Shifts forward type and status of all bounds by a given offset. This offset has to lie within the range [0,n/2] and has to be an integer divisor of the total number of bounds n. Type and status of the first <offset> bounds is thrown away, type and status of the last <offset> bounds is doubled, e.g. for offset = 2:
shift( {b1,b2,b3,b4,b5,b6} ) = {b3,b4,b5,b6,b5,b6}
offset | Shift offset within the range [0,n/2] and integer divisor of n. |
Implements SubjectTo.
returnValue Bounds::swapFree | ( | int | number1, |
int | number2 | ||
) |
Swaps the indices of two free bounds within the index set.
number1 | Number of first constraint or bound. |
number2 | Number of second constraint or bound. |
Definition at line 238 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/SRC/Bounds.cpp.
returnValue Bounds::swapFree | ( | int | number1, |
int | number2 | ||
) |
Swaps the indices of two free bounds within the index set.
number1 | Number of first constraint or bound. |
number2 | Number of second constraint or bound. |
returnValue Bounds::swapFree | ( | int_t | number1, |
int_t | number2 | ||
) |
Swaps the indices of two free bounds within the index set.
number1 | Number of first constraint or bound. |
number2 | Number of second constraint or bound. |
returnValue Bounds::swapFree | ( | int | number1, |
int | number2 | ||
) |
Swaps the indices of two free bounds within the index set.
number1 | Number of first constraint or bound. |
number2 | Number of second constraint or bound. |
|
protected |
Index list of fixed variables.
Definition at line 179 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/INCLUDE/Bounds.hpp.
|
protected |
Index list of free variables.
Definition at line 178 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/INCLUDE/Bounds.hpp.
|
protected |
Index list of free variables.
Definition at line 242 of file external_packages/qpOASES-3.0beta/include/qpOASES/Bounds.hpp.
|
protected |
Number of bounded (but possibly free) variables.
Definition at line 175 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/INCLUDE/Bounds.hpp.
|
protected |
Number of implicitly fixed variables.
Definition at line 174 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/INCLUDE/Bounds.hpp.
BooleanType Bounds::noLower |
BooleanType Bounds::noUpper |
|
protected |
Number of unbounded variables.
Definition at line 176 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/INCLUDE/Bounds.hpp.
|
protected |
Number of variables (nV = nFV + nBV + nUV).
Definition at line 173 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/INCLUDE/Bounds.hpp.
SubjectToStatus Bounds::status[NVMAX] |
SubjectToType Bounds::type[NVMAX] |