#include <qpOASES_e/Indexlist.h>
Go to the source code of this file.
Classes | |
struct | Constraints |
Manages working sets of constraints. More... | |
Declaration of the Constraints class designed to manage working sets of constraints within a QProblem.
Definition in file Constraints.h.
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.
|
inlinestatic |
Returns a pointer to active constraints index list.
Definition at line 499 of file Constraints.h.
|
inlinestatic |
Returns a pointer to inactive constraints index list.
Definition at line 508 of file Constraints.h.
|
inlinestatic |
Returns the number of active constraints.
Definition at line 480 of file Constraints.h.
|
inlinestatic |
Returns the number of constraints.
Definition at line 444 of file Constraints.h.
|
inlinestatic |
Returns the number of implicit equality constraints.
Definition at line 453 of file Constraints.h.
|
inlinestatic |
Returns the number of inactive constraints.
Definition at line 489 of file Constraints.h.
|
inlinestatic |
Returns the number of "real" inequality constraints.
Definition at line 462 of file Constraints.h.
|
inlinestatic |
Returns the number of unbounded constraints (i.e. without any bounds).
Definition at line 471 of file Constraints.h.
|
inlinestatic |
Returns number of constraints with given SubjectTo type.
_type | Type of constraints' bound. |
Definition at line 334 of file Constraints.h.
|
inlinestatic |
Returns status of constraints' bound.
i | Number of constraints' bound. |
Definition at line 365 of file Constraints.h.
|
inlinestatic |
Returns type of constraints' bound.
i | Number of constraints' bound. |
Definition at line 353 of file Constraints.h.
|
inlinestatic |
Returns status of lower constraints' bounds.
Definition at line 425 of file Constraints.h.
|
inlinestatic |
Returns status of upper bounds.
Definition at line 434 of file Constraints.h.
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.
|
inlinestatic |
Sets status of lower constraints' bounds.
_status | Status of lower constraints' bounds. |
Definition at line 407 of file Constraints.h.
|
inlinestatic |
Sets status of upper constraints' bounds.
_status | Status of upper constraints' bounds. |
Definition at line 416 of file Constraints.h.
|
inlinestatic |
Sets status of constraints' bound.
i | Number of constraints' bound. |
value | Status of constraints' bound. |
Definition at line 392 of file Constraints.h.
|
inlinestatic |
Sets type of constraints' bound.
i | Number of constraints' bound. |
value | Type of constraints' bound. |
Definition at line 377 of file Constraints.h.
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.
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.