#include <qpOASES_e/Constraints.h>
Go to the source code of this file.
Implementation of the Constraints class designed to manage working sets of constraints within a QProblem.
Definition in file Constraints.c.
| returnValue Constraints_addIndex | ( | Constraints * | _THIS, |
| Indexlist *const | indexlist, | ||
| int | newnumber, | ||
| SubjectToStatus | newstatus | ||
| ) |
Adds the index of a new constraint to index set.
| indexlist | Index list to which the new index shall be added. |
| newnumber | Number of new constraint. |
| newstatus | Status of new constraint. |
Definition at line 486 of file Constraints.c.
| returnValue Constraints_flipFixed | ( | Constraints * | _THIS, |
| int | number | ||
| ) |
Flip fixed constraint.
Definition at line 238 of file Constraints.c.
| returnValue Constraints_init | ( | Constraints * | _THIS, |
| int | _n | ||
| ) |
Initialises object with given number of constraints.
| _n | Number of constraints. |
Definition at line 89 of file Constraints.c.
| returnValue Constraints_moveActiveToInactive | ( | Constraints * | _THIS, |
| int | number | ||
| ) |
Moves index of a constraint from index list of active to that of inactive constraints.
| number | Number of constraint to become inactive. |
Definition at line 194 of file Constraints.c.
| returnValue Constraints_moveInactiveToActive | ( | Constraints * | _THIS, |
| int | number, | ||
| SubjectToStatus | _status | ||
| ) |
Moves index of a constraint from index list of inactive to that of active constraints.
| number | Number of constraint to become active. |
| _status | Status of constraint to become active. |
Definition at line 216 of file Constraints.c.
| returnValue Constraints_print | ( | Constraints * | _THIS | ) |
Prints information on constraints object (in particular, lists of inactive and active constraints.
Definition at line 397 of file Constraints.c.
| returnValue Constraints_removeIndex | ( | Constraints * | _THIS, |
| Indexlist *const | indexlist, | ||
| int | removenumber | ||
| ) |
Removes the index of a constraint from index set.
| indexlist | Index list from which the new index shall be removed. |
| removenumber | Number of constraint to be removed. |
Definition at line 517 of file Constraints.c.
| returnValue Constraints_rotate | ( | Constraints * | _THIS, |
| int | offset | ||
| ) |
Rotates forward type and status of all constraints by a given offset. This offset has to lie within the range [0,n]. Example for offset = 2:
rotate( {c1,c2,c3,c4,c5,c6} ) = {c3,c4,c5,c6,c1,c2}
| offset | Rotation offset within the range [0,n]. |
Definition at line 322 of file Constraints.c.
| returnValue Constraints_setupAll | ( | Constraints * | _THIS, |
| SubjectToStatus | _status | ||
| ) |
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 434 of file Constraints.c.
| returnValue Constraints_setupAllInactive | ( | Constraints * | _THIS | ) |
Initially adds all enabled numbers of new (i.e. not yet in the list) constraints to to the index set of inactive constraints; the order depends on the SujectToType of each index. Only disabled constraints are added to index set of disabled constraints!
Definition at line 164 of file Constraints.c.
| returnValue Constraints_setupAllLower | ( | Constraints * | _THIS | ) |
Initially adds all enabled numbers of new (i.e. not yet in the list) constraints to to the index set of active constraints (on their lower bounds); the order depends on the SujectToType of each index. Only disabled constraints are added to index set of disabled constraints!
Definition at line 174 of file Constraints.c.
| returnValue Constraints_setupAllUpper | ( | Constraints * | _THIS | ) |
Initially adds all enabled numbers of new (i.e. not yet in the list) constraints to to the index set of active constraints (on their upper bounds); the order depends on the SujectToType of each index. Only disabled constraints are added to index set of disabled constraints!
Definition at line 184 of file Constraints.c.
| returnValue Constraints_setupConstraint | ( | Constraints * | _THIS, |
| int | number, | ||
| SubjectToStatus | _status | ||
| ) |
Initially adds number of a new (i.e. not yet in the list) constraint to a given index set.
| number | Number of new constraint. |
| _status | Status of new constraint. |
Definition at line 127 of file Constraints.c.
| returnValue Constraints_shift | ( | Constraints * | _THIS, |
| int | offset | ||
| ) |
Shifts forward type and status of all constraints 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 n. Type and status of the first <offset> constraints is thrown away, type and status of the last <offset> constraints 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. |
Definition at line 259 of file Constraints.c.
| returnValue Constraints_swapIndex | ( | Constraints * | _THIS, |
| Indexlist *const | indexlist, | ||
| int | number1, | ||
| int | number2 | ||
| ) |
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. |
| number2 | Number of second constraint. |
Definition at line 542 of file Constraints.c.
| BEGIN_NAMESPACE_QPOASES void ConstraintsCON | ( | Constraints * | _THIS, |
| int | _n | ||
| ) |
Constructor which takes the number of constraints.
| _n | Number of constraints. |
Definition at line 50 of file Constraints.c.
| void ConstraintsCPY | ( | Constraints * | FROM, |
| Constraints * | TO | ||
| ) |
Copies all members from given rhs object.
Definition at line 61 of file Constraints.c.