36 #include <qpOASES/Bounds.hpp> 128 if ( ( number < 0 ) || ( number >=
n ) )
190 if ( ( number < 0 ) || ( number >=
n ) )
211 if ( ( number < 0 ) || ( number >=
n ) )
231 if ( ( number < 0 ) || ( number >=
n ) )
253 if ( ( number1 < 0 ) || ( number1 >=
n ) || ( number2 < 0 ) || ( number2 >=
n ) )
269 if ( ( offset == 0 ) || (
n <= 1 ) )
272 if ( ( offset < 0 ) || ( offset >
n/2 ) )
275 if ( (
n % offset ) != 0 )
280 for( i=0; i<
n-offset; ++i )
315 freee = shiftedFreee;
316 fixed = shiftedFixed;
330 if ( ( offset == 0 ) || ( offset == n ) || ( n <= 1 ) )
333 if ( ( offset < 0 ) || ( offset > n ) )
341 for( i=0; i<offset; ++i )
347 for( i=0; i<n-offset; ++i )
353 for( i=n-offset; i<
n; ++i )
355 setType( i,typeTmp[i-n+offset] );
359 delete[] statusTmp;
delete[] typeTmp;
390 freee = rotatedFreee;
391 fixed = rotatedFixed;
405 #ifndef __SUPPRESSANYOUTPUT__ 418 snprintf( myPrintfString,
MAX_STRING_LENGTH,
"Bounds object comprising %d variables (%d free, %d fixed):\n",(
int)n,(
int)nFR,(
int)nFX );
returnValue setType(int i, SubjectToType value)
SubjectToStatus status[NVMAX]
returnValue swapFree(int number1, int number2)
SubjectTo & operator=(const SubjectTo &rhs)
returnValue getNumberArray(int *const numberarray) const
returnValue moveFixedToFree(int _number)
virtual returnValue rotate(int offset)
returnValue flipFixed(int number)
Allows to pass back messages to the calling function.
Base class for managing working sets of bounds and constraints.
#define THROWERROR(retval)
returnValue setupAllUpper()
returnValue setupAll(SubjectToStatus _status)
returnValue myPrintf(const char *s)
returnValue setupBound(int _number, SubjectToStatus _status)
returnValue swapIndex(Indexlist *const indexlist, int number1, int number2)
returnValue addIndex(Indexlist *const indexlist, int newnumber, SubjectToStatus newstatus)
Bounds & operator=(const Bounds &rhs)
returnValue copy(const Bounds &rhs)
SubjectToStatus getStatus(int i) const
returnValue setupAllFree()
virtual returnValue shift(int offset)
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 setupAllLower()
returnValue setStatus(int i, SubjectToStatus value)
Manages working sets of bounds (= box constraints).
#define BEGIN_NAMESPACE_QPOASES
#define REFER_NAMESPACE_QPOASES
returnValue moveFreeToFixed(int _number, SubjectToStatus _status)