Manages working sets of bounds (= box constraints). More...
#include <Bounds.hpp>
Manages working sets of bounds (= 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.
Definition at line 50 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/INCLUDE/Bounds.hpp.
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 Bounds::~Bounds | ( | ) | [virtual] |
Destructor.
returnValue Bounds::clear | ( | ) | [protected] |
Frees all allocated memory.
Reimplemented from SubjectTo.
Definition at line 439 of file external_packages/qpOASES-3.0beta/src/Bounds.cpp.
returnValue Bounds::copy | ( | const Bounds & | rhs | ) | [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 | number | ) |
Flip fixed bound.
Definition at line 228 of file external_packages/qpOASES-3.0beta/src/Bounds.cpp.
Indexlist* Bounds::getFixed | ( | ) | [inline] |
Returns a pointer to fixed variables index list.
Indexlist* Bounds::getFixed | ( | ) | [inline] |
Returns a pointer to fixed variables index list.
Indexlist* Bounds::getFixed | ( | ) | [inline] |
Returns a pointer to fixed variables index list.
Indexlist* Bounds::getFree | ( | ) | [inline] |
Returns a pointer to free variables index list.
Indexlist* Bounds::getFree | ( | ) | [inline] |
Returns a pointer to free variables index list.
Indexlist* Bounds::getFree | ( | ) | [inline] |
Returns a pointer to free variables index list.
int Bounds::getNBV | ( | ) | const [inline] |
Returns number of bounded (but possibly free) variables.
int Bounds::getNBV | ( | ) | const [inline] |
Returns number of bounded (but possibly free) variables.
int Bounds::getNBV | ( | ) | const [inline] |
Returns number of bounded (but possibly free) variables.
int Bounds::getNFR | ( | ) | [inline] |
Returns number of free variables.
int Bounds::getNFR | ( | ) | [inline] |
Returns number of free variables.
int Bounds::getNFR | ( | ) | const [inline] |
Returns number of free variables.
int Bounds::getNFV | ( | ) | const [inline] |
Returns number of implicitly fixed variables.
int Bounds::getNFV | ( | ) | const [inline] |
Returns number of implicitly fixed variables.
int Bounds::getNFV | ( | ) | const [inline] |
Returns number of implicitly fixed variables.
int Bounds::getNFX | ( | ) | [inline] |
Returns number of fixed variables.
int Bounds::getNFX | ( | ) | [inline] |
Returns number of fixed variables.
int Bounds::getNFX | ( | ) | const [inline] |
Returns number of fixed variables.
int Bounds::getNUV | ( | ) | const [inline] |
Returns number of unbounded variables.
int Bounds::getNUV | ( | ) | const [inline] |
Returns number of unbounded variables.
int Bounds::getNUV | ( | ) | const [inline] |
Returns number of unbounded variables.
int Bounds::getNV | ( | ) | const [inline] |
Returns number of variables.
int Bounds::getNV | ( | ) | const [inline] |
Returns number of variables.
int Bounds::getNV | ( | ) | const [inline] |
Returns number of variables.
returnValue Bounds::init | ( | int | n | ) |
Pseudo-constructor takes the number of bounds.
n | Number of bounds. |
Reimplemented from SubjectTo.
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. |
Reimplemented from SubjectTo.
returnValue Bounds::init | ( | int | _n = 0 | ) |
Initialises object with given number of bounds.
_n | Number of bounds. |
Reimplemented from SubjectTo.
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 | _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. |
Assignment operator (deep copy).
rhs | Rhs object. |
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. |
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.
returnValue Bounds::rotate | ( | int | offset | ) | [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.
returnValue Bounds::setNBV | ( | int | n | ) | [inline] |
Sets number of bounded (but possibly free) variables.
n | Number of bounded (but possibly free) variables. |
returnValue Bounds::setNBV | ( | int | n | ) | [inline] |
Sets number of bounded (but possibly free) variables.
n | Number of bounded (but possibly free) variables. |
returnValue Bounds::setNFV | ( | int | n | ) | [inline] |
Sets number of implicitly fixed variables.
n | Number of implicitly fixed variables. |
returnValue Bounds::setNFV | ( | int | n | ) | [inline] |
Sets number of implicitly fixed variables.
n | Number of implicitly fixed variables. |
returnValue Bounds::setNUV | ( | int | n | ) | [inline] |
Sets number of unbounded variables.
n | Number of unbounded variables |
returnValue Bounds::setNUV | ( | int | n | ) | [inline] |
Sets number of unbounded variables.
n | Number of unbounded variables |
returnValue Bounds::setupAll | ( | SubjectToStatus | _status | ) | [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.
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.
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.
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.
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.
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::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 | 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::shift | ( | int | offset | ) | [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.
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 | 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. |
Indexlist Bounds::fixed [protected] |
Index list of fixed variables.
Definition at line 179 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/INCLUDE/Bounds.hpp.
Indexlist Bounds::free [protected] |
Index list of free variables.
Definition at line 178 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/INCLUDE/Bounds.hpp.
Indexlist Bounds::freee [protected] |
Index list of free variables.
Definition at line 242 of file external_packages/qpOASES-3.0beta/include/qpOASES/Bounds.hpp.
int Bounds::nBV [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.
int Bounds::nFV [protected] |
Number of implicitly fixed variables.
Definition at line 174 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/INCLUDE/Bounds.hpp.
int Bounds::nUV [protected] |
Number of unbounded variables.
Definition at line 176 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/INCLUDE/Bounds.hpp.
int Bounds::nV [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.