73 for( i=0; i<TO->
n; ++i )
112 for( i=0; i<_THIS->
n; ++i )
132 if ( ( number < 0 ) || ( number >= _THIS->
n ) )
199 if ( ( number < 0 ) || ( number >= _THIS->
n ) )
221 if ( ( number < 0 ) || ( number >= _THIS->
n ) )
241 if ( ( number < 0 ) || ( number >= _THIS->
n ) )
245 switch (_THIS->
status[number])
269 if ( ( offset == 0 ) || ( _THIS->
n <= 1 ) )
272 if ( ( offset < 0 ) || ( offset > _THIS->
n/2 ) )
275 if ( ( _THIS->
n % offset ) != 0 )
280 for( i=0; i<_THIS->
n-offset; ++i )
287 for( i=0; i<_THIS->
n; ++i )
335 if ( ( offset == 0 ) || ( offset == _THIS->
n ) || ( _THIS->
n <= 1 ) )
338 if ( ( offset < 0 ) || ( offset > _THIS->
n ) )
343 for( i=0; i<offset; ++i )
349 for( i=0; i<_THIS->
n-offset; ++i )
355 for( i=_THIS->
n-offset; i<_THIS->n; ++i )
362 for( i=0; i<_THIS->
n; ++i )
399 #ifndef __SUPPRESSANYOUTPUT__ 406 int *IAC_idx, *AC_idx;
414 snprintf( myPrintfString,
QPOASES_MAX_STRING_LENGTH,
"Constraints object comprising %d constraints (%d inactive, %d active):\n",_THIS->
n,nIAC,nAC );
439 for( i=0; i<_THIS->
n; ++i )
449 for( i=0; i<_THIS->
n; ++i )
459 for( i=0; i<_THIS->
n; ++i )
469 for( i=0; i<_THIS->
n; ++i )
494 if ( _THIS->
status[newnumber] == newstatus )
497 _THIS->
status[newnumber] = newstatus;
502 if ( indexlist != 0 )
527 if ( indexlist != 0 )
543 int number1,
int number2
555 if ( number1 == number2 )
561 if ( indexlist != 0 )
SubjectToType type[NCMAX]
returnValue Constraints_setupAllInactive(Constraints *_THIS)
returnValue Constraints_flipFixed(Constraints *_THIS, int number)
Manages working sets of constraints.
returnValue Constraints_moveInactiveToActive(Constraints *_THIS, int number, SubjectToStatus _status)
BEGIN_NAMESPACE_QPOASES void ConstraintsCON(Constraints *_THIS, int _n)
returnValue Indexlist_removeNumber(Indexlist *_THIS, int removenumber)
returnValue Constraints_rotate(Constraints *_THIS, int offset)
void ConstraintsCPY(Constraints *FROM, Constraints *TO)
static SubjectToStatus Constraints_getStatus(Constraints *_THIS, int i)
static Indexlist * Constraints_getInactive(Constraints *_THIS)
returnValue Constraints_shift(Constraints *_THIS, int offset)
Allows to pass back messages to the calling function.
returnValue Constraints_setupAllUpper(Constraints *_THIS)
#define THROWERROR(retval)
returnValue Constraints_moveActiveToInactive(Constraints *_THIS, int number)
static Indexlist * Constraints_getActive(Constraints *_THIS)
returnValue Indexlist_swapNumbers(Indexlist *_THIS, int number1, int number2)
returnValue Indexlist_addNumber(Indexlist *_THIS, int addnumber)
static SubjectToType Constraints_getType(Constraints *_THIS, int i)
returnValue Constraints_setupAllLower(Constraints *_THIS)
returnValue qpOASES_myPrintf(const char *s)
returnValue Constraints_removeIndex(Constraints *_THIS, Indexlist *const indexlist, int removenumber)
SubjectToStatus status[NCMAX]
returnValue Constraints_init(Constraints *_THIS, int _n)
returnValue Indexlist_init(Indexlist *_THIS, int n)
#define END_NAMESPACE_QPOASES
returnValue Constraints_print(Constraints *_THIS)
void IndexlistCPY(Indexlist *FROM, Indexlist *TO)
static returnValue Constraints_setStatus(Constraints *_THIS, int i, SubjectToStatus value)
Stores and manages index lists.
#define THROWWARNING(retval)
returnValue qpOASES_printNI(const int *const _index, int n, const char *name)
returnValue Indexlist_getNumberArray(Indexlist *_THIS, int **const numberarray)
returnValue Constraints_setupAll(Constraints *_THIS, SubjectToStatus _status)
#define QPOASES_MAX_STRING_LENGTH
returnValue Constraints_addIndex(Constraints *_THIS, Indexlist *const indexlist, int newnumber, SubjectToStatus newstatus)
static returnValue Constraints_setType(Constraints *_THIS, int i, SubjectToType value)
returnValue Constraints_swapIndex(Constraints *_THIS, Indexlist *const indexlist, int number1, int number2)
static int Constraints_getNIAC(Constraints *_THIS)
#define BEGIN_NAMESPACE_QPOASES
#define REFER_NAMESPACE_QPOASES
returnValue Constraints_setupConstraint(Constraints *_THIS, int number, SubjectToStatus _status)
static int Constraints_getNAC(Constraints *_THIS)