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 __SUPPRESSANYOUTPUT__ 402 snprintf( myPrintfString,
MAX_STRING_LENGTH,
"Constraints object comprising %d constraints (%d inactive, %d active):\n",(
int)n,(
int)nIAC,(
int)nAC );
returnValue setupAllUpper()
Constraints & operator=(const Constraints &rhs)
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
const uint_t MAX_STRING_LENGTH
Stores and manages index lists.
returnValue moveActiveToInactive(int _number)
returnValue setStatus(int i, SubjectToStatus value)
#define BEGIN_NAMESPACE_QPOASES
#define REFER_NAMESPACE_QPOASES