Base class for managing working sets of bounds and constraints. More...
#include <SubjectTo.hpp>
Protected Member Functions | |
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 | |
int | n |
int_t | n |
BooleanType | noLower |
BooleanType | noUpper |
SubjectToStatus | status [NVMAX+NCMAX] |
SubjectToStatus * | status |
SubjectToType | type [NVMAX+NCMAX] |
SubjectToType * | type |
Private Attributes | |
int | size |
Base class for managing working sets of bounds and constraints.
This class manages working sets of constraints and bounds by storing index sets and other status information.
This class manages working sets of bounds and constraints by storing index sets and other status information.
This class manages working sets of bounds and 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/SubjectTo.hpp.
BEGIN_NAMESPACE_QPOASES SubjectTo::SubjectTo | ( | ) |
Default constructor.
Definition at line 46 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/SRC/SubjectTo.cpp.
SubjectTo::SubjectTo | ( | const SubjectTo & | rhs | ) |
Copy constructor (deep copy).
rhs | Rhs object. |
Definition at line 63 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/SRC/SubjectTo.cpp.
SubjectTo::~SubjectTo | ( | ) |
Destructor.
Definition at line 80 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/SRC/SubjectTo.cpp.
SubjectTo::SubjectTo | ( | ) |
Default constructor.
SubjectTo::SubjectTo | ( | const SubjectTo & | rhs | ) |
Copy constructor (deep copy).
rhs | Rhs object. |
SubjectTo::~SubjectTo | ( | ) |
Destructor.
SubjectTo::SubjectTo | ( | ) |
Default constructor.
SubjectTo::SubjectTo | ( | int | _n | ) |
Constructor which takes the number of constraints or bounds.
_n | Number of constraints or bounds. |
Definition at line 62 of file external_packages/qpOASES-3.0beta/src/SubjectTo.cpp.
SubjectTo::SubjectTo | ( | const SubjectTo & | rhs | ) |
Copy constructor (deep copy).
rhs | Rhs object. |
|
virtual |
Destructor.
SubjectTo::SubjectTo | ( | ) |
Default constructor.
SubjectTo::SubjectTo | ( | int_t | _n | ) |
Constructor which takes the number of constraints or bounds.
_n | Number of constraints or bounds. |
SubjectTo::SubjectTo | ( | const SubjectTo & | rhs | ) |
Copy constructor (deep copy).
rhs | Rhs object. |
|
virtual |
Destructor.
|
protected |
Adds the index of a new constraint or bound to index set.
indexlist | Index list to which the new index shall be added. |
newnumber | Number of new constraint or bound. |
newstatus | Status of new constraint or bound. |
Definition at line 141 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/SRC/SubjectTo.cpp.
|
protected |
Adds the index of a new constraint or bound to index set.
indexlist | Index list to which the new index shall be added. |
newnumber | Number of new constraint or bound. |
newstatus | Status of new constraint or bound. |
|
protected |
Adds the index of a new constraint or bound to index set.
indexlist | Index list to which the new index shall be added. |
newnumber | Number of new constraint or bound. |
newstatus | Status of new constraint or bound. |
|
protected |
Adds the index of a new constraint or bound to index set.
indexlist | Index list to which the new index shall be added. |
newnumber | Number of new constraint or bound. |
newstatus | Status of new constraint or bound. |
|
protected |
Frees all allocated memory.
Definition at line 145 of file external_packages/qpOASES-3.0beta/src/SubjectTo.cpp.
|
protected |
Frees all allocated memory.
|
protected |
Copies all members from given rhs object.
rhs | Rhs object. |
Definition at line 166 of file external_packages/qpOASES-3.0beta/src/SubjectTo.cpp.
|
protected |
Copies all members from given rhs object.
rhs | Rhs object. |
|
inline |
Returns number of constraints/bounds with given SubjectTo type.
_type | Type of (constraints') bound. |
|
inline |
Returns number of constraints/bounds with given SubjectTo type.
_type | Type of (constraints') bound. |
|
inline |
Returns status of (constraints') bound.
i | Number of (constraints') bound. |
|
inline |
Returns status of (constraints') bound.
i | Number of (constraints') bound. |
|
inline |
Returns status of (constraints') bound.
i | Number of (constraints') bound. |
|
inline |
Returns status of (constraints') bound.
i | Number of (constraints') bound. |
|
inline |
Returns type of (constraints') bound.
i | Number of (constraints') bound. |
|
inline |
Returns type of (constraints') bound.
i | Number of (constraints') bound. |
|
inline |
Returns type of (constraints') bound.
i | Number of (constraints') bound. |
|
inline |
Returns type of (constraints') bound.
i | Number of (constraints') bound. |
|
inline |
Returns status of lower (constraints') bounds.
|
inline |
Returns status of lower (constraints') bounds.
|
inline |
Returns status of upper bounds.
|
inline |
Returns status of upper bounds.
returnValue SubjectTo::init | ( | int | n | ) |
Pseudo-constructor takes the number of constraints or bounds.
n | Number of constraints or bounds. |
Definition at line 114 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/SRC/SubjectTo.cpp.
returnValue SubjectTo::init | ( | int | n | ) |
Pseudo-constructor takes the number of constraints or bounds.
n | Number of constraints or bounds. |
returnValue SubjectTo::init | ( | int_t | _n = 0 | ) |
Initialises object with given number of constraints or bounds.
_n | Number of constraints or bounds. |
returnValue SubjectTo::init | ( | int | _n = 0 | ) |
Initialises object with given number of constraints or bounds.
_n | Number of constraints or bounds. |
|
inline |
Returns status of lower (constraints') bounds.
|
inline |
Returns status of lower (constraints') bounds.
|
inline |
Returns status of upper bounds.
|
inline |
Returns status of upper bounds.
Assignment operator (deep copy).
rhs | Rhs object. |
Definition at line 88 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/SRC/SubjectTo.cpp.
Assignment operator (deep copy).
rhs | Rhs object. |
Assignment operator (deep copy).
rhs | Rhs object. |
Assignment operator (deep copy).
rhs | Rhs object. |
|
protected |
Removes the index of a constraint or bound from index set.
indexlist | Index list from which the new index shall be removed. |
removenumber | Number of constraint or bound to be removed. |
Definition at line 161 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/SRC/SubjectTo.cpp.
|
protected |
Removes the index of a constraint or bound from index set.
indexlist | Index list from which the new index shall be removed. |
removenumber | Number of constraint or bound to be removed. |
|
protected |
Removes the index of a constraint or bound from index set.
indexlist | Index list from which the new index shall be removed. |
removenumber | Number of constraint or bound to be removed. |
|
protected |
Removes the index of a constraint or bound from index set.
indexlist | Index list from which the new index shall be removed. |
removenumber | Number of constraint or bound to be removed. |
|
pure virtual |
Rotates forward type and status of all constraints/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]. |
Implemented in Bounds, Bounds, Constraints, and Constraints.
|
pure virtual |
Rotates forward type and status of all constraints/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]. |
Implemented in Bounds, Bounds, Constraints, and Constraints.
|
inline |
Sets status of lower (constraints') bounds.
_status | Status of lower (constraints') bounds. |
|
inline |
Sets status of lower (constraints') bounds.
_status | Status of lower (constraints') bounds. |
|
inline |
Sets status of lower (constraints') bounds.
_status | Status of lower (constraints') bounds. |
|
inline |
Sets status of lower (constraints') bounds.
_status | Status of lower (constraints') bounds. |
|
inline |
Sets status of upper (constraints') bounds.
_status | Status of upper (constraints') bounds. |
|
inline |
Sets status of upper (constraints') bounds.
_status | Status of upper (constraints') bounds. |
|
inline |
Sets status of upper (constraints') bounds.
_status | Status of upper (constraints') bounds. |
|
inline |
Sets status of upper (constraints') bounds.
_status | Status of upper (constraints') bounds. |
|
inline |
Sets status of (constraints') bound.
i | Number of (constraints') bound. |
value | Status of (constraints') bound. |
|
inline |
Sets status of (constraints') bound.
i | Number of (constraints') bound. |
value | Status of (constraints') bound. |
|
inline |
Sets status of (constraints') bound.
i | Number of (constraints') bound. |
value | Status of (constraints') bound. |
|
inline |
Sets status of (constraints') bound.
i | Number of (constraints') bound. |
value | Status of (constraints') bound. |
|
inline |
Sets type of (constraints') bound.
i | Number of (constraints') bound. |
value | Type of (constraints') bound. |
|
inline |
Sets type of (constraints') bound.
i | Number of (constraints') bound. |
value | Type of (constraints') bound. |
|
inline |
Sets type of (constraints') bound.
i | Number of (constraints') bound. |
value | Type of (constraints') bound. |
|
inline |
Sets type of (constraints') bound.
i | Number of (constraints') bound. |
value | Type of (constraints') bound. |
|
pure virtual |
Shifts forward type and status of all constraints/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 constraints/bounds n. Type and status of the first <offset> constraints/bounds is thrown away, type and status of the last <offset> constraints/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. |
Implemented in Bounds, Bounds, Constraints, and Constraints.
|
pure virtual |
Shifts forward type and status of all constraints/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 constraints/bounds n. Type and status of the first <offset> constraints/bounds is thrown away, type and status of the last <offset> constraints/bounds is doubled, 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. |
Implemented in Bounds, Bounds, Constraints, and Constraints.
|
protected |
Swaps the indices of two constraints or bounds within the index set.
indexlist | Index list in which the indices shold be swapped. |
number1 | Number of first constraint or bound. |
number2 | Number of second constraint or bound. |
|
protected |
Swaps the indices of two constraints or bounds within the index set.
indexlist | Index list in which the indices shold be swapped. |
number1 | Number of first constraint or bound. |
number2 | Number of second constraint or bound. |
Definition at line 177 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/SRC/SubjectTo.cpp.
|
protected |
Swaps the indices of two constraints or bounds within the index set.
indexlist | Index list in which the indices shold be swapped. |
number1 | Number of first constraint or bound. |
number2 | Number of second constraint or bound. |
|
protected |
Swaps the indices of two constraints or bounds within the index set.
indexlist | Index list in which the indices shold be swapped. |
number1 | Number of first constraint or bound. |
number2 | Number of second constraint or bound. |
|
protected |
Total number of constraints/bounds.
Definition at line 210 of file external_packages/qpOASES-3.0beta/include/qpOASES/SubjectTo.hpp.
|
protected |
Total number of constraints/bounds.
Definition at line 210 of file external_packages/qpOASES-3.2.0/include/qpOASES/SubjectTo.hpp.
|
protected |
This flag indicates if there is no lower bound on any variable.
Definition at line 158 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/INCLUDE/SubjectTo.hpp.
|
protected |
This flag indicates if there is no upper bound on any variable.
Definition at line 159 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/INCLUDE/SubjectTo.hpp.
|
private |
Definition at line 166 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/INCLUDE/SubjectTo.hpp.
|
protected |
Status of constraints/bounds.
Definition at line 156 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/INCLUDE/SubjectTo.hpp.
|
protected |
Status of constraints/bounds.
Definition at line 213 of file external_packages/qpOASES-3.0beta/include/qpOASES/SubjectTo.hpp.
|
protected |
Type of constraints/bounds.
Definition at line 155 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/INCLUDE/SubjectTo.hpp.
|
protected |
Type of constraints/bounds.
Definition at line 212 of file external_packages/qpOASES-3.0beta/include/qpOASES/SubjectTo.hpp.