36 #include <qpOASES/Constraints.hpp> 127 if ( ( number < 0 ) || ( number >=
n ) )
189 if ( ( number < 0 ) || ( number >=
n ) )
210 if ( ( number < 0 ) || ( number >=
n ) )
230 if ( ( number < 0 ) || ( number >=
n ) )
253 if ( ( offset == 0 ) || (
n <= 1 ) )
256 if ( ( offset < 0 ) || ( offset >
n/2 ) )
259 if ( (
n % offset ) != 0 )
264 for( i=0; i<
n-offset; ++i )
314 if ( ( offset == 0 ) || ( offset ==
n ) || (
n <= 1 ) )
317 if ( ( offset < 0 ) || ( offset >
n ) )
325 for( i=0; i<offset; ++i )
331 for( i=0; i<
n-offset; ++i )
337 for( i=
n-offset; i<
n; ++i )
339 setType( i,typeTmp[i-n+offset] );
343 delete[] statusTmp;
delete[] typeTmp;
389 #ifndef __XPCTARGET__ 391 char myPrintfString[160];
402 snprintf( myPrintfString,160,
"Constraints object comprising %d constraints (%d inactive, %d active):\n",
n,nIAC,nAC );
returnValue setupAllUpper()
Constraints & operator=(const Constraints &rhs)
returnValue addNumber(int addnumber)
returnValue flipFixed(int number)
returnValue setType(int i, SubjectToType value)
Manages working sets of constraints.
virtual returnValue rotate(int offset)
SubjectTo & operator=(const SubjectTo &rhs)
returnValue moveInactiveToActive(int _number, SubjectToStatus _status)
returnValue copy(const Constraints &rhs)
returnValue getNumberArray(int *const numberarray) const
Allows to pass back messages to the calling function.
Base class for managing working sets of bounds and constraints.
#define THROWERROR(retval)
Indexlist * getInactive()
returnValue setupAllInactive()
returnValue myPrintf(const char *s)
returnValue setupAllLower()
virtual returnValue shift(int offset)
returnValue addIndex(Indexlist *const indexlist, int newnumber, SubjectToStatus newstatus)
SubjectToStatus getStatus(int i) const
returnValue setupAll(SubjectToStatus _status)
returnValue setupConstraint(int _number, SubjectToStatus _status)
SubjectToStatus status[NCMAX]
returnValue removeIndex(Indexlist *const indexlist, int removenumber)
void rhs(const real_t *x, real_t *f)
#define END_NAMESPACE_QPOASES
SubjectToType getType(int i) const
Stores and manages index lists.
returnValue moveActiveToInactive(int _number)
returnValue setStatus(int i, SubjectToStatus value)
#define BEGIN_NAMESPACE_QPOASES
#define REFER_NAMESPACE_QPOASES