36 #ifndef QPOASES_BOUNDS_H 37 #define QPOASES_BOUNDS_H 347 int numberOfType = 0;
349 if ( _THIS->
type != 0 )
351 for( i=0; i<_THIS->
n; ++i )
352 if ( _THIS->
type[i] == _type )
365 if ( ( i >= 0 ) && ( i < _THIS->n ) )
366 return _THIS->
type[i];
377 if ( ( i >= 0 ) && ( i < _THIS->n ) )
389 if ( ( i >= 0 ) && ( i < _THIS->n ) )
391 _THIS->
type[i] = value;
404 if ( ( i >= 0 ) && ( i < _THIS->n ) )
510 return &(_THIS->
freee);
519 return &(_THIS->
fixed);
returnValue Bounds_rotate(Bounds *_THIS, int offset)
returnValue Bounds_setupBound(Bounds *_THIS, int number, SubjectToStatus _status)
static int Bounds_getNumberOfType(Bounds *_THIS, SubjectToType _type)
static Indexlist * Bounds_getFree(Bounds *_THIS)
SubjectToStatus status[NVMAX]
static BooleanType Bounds_hasNoLower(Bounds *_THIS)
returnValue Bounds_setupAllLower(Bounds *_THIS)
static void Bounds_setNoUpper(Bounds *_THIS, BooleanType _status)
static int Bounds_getNFV(Bounds *_THIS)
returnValue Bounds_setupAllFree(Bounds *_THIS)
static SubjectToStatus Bounds_getStatus(Bounds *_THIS, int i)
Allows to pass back messages to the calling function.
static BooleanType Bounds_hasNoUpper(Bounds *_THIS)
#define THROWERROR(retval)
returnValue Bounds_shift(Bounds *_THIS, int offset)
returnValue Bounds_moveFreeToFixed(Bounds *_THIS, int number, SubjectToStatus _status)
static void Bounds_setNoLower(Bounds *_THIS, BooleanType _status)
returnValue Bounds_setupAllUpper(Bounds *_THIS)
static int Bounds_getNBV(Bounds *_THIS)
returnValue Bounds_init(Bounds *_THIS, int _n)
returnValue Bounds_removeIndex(Bounds *_THIS, Indexlist *const indexlist, int removenumber)
static returnValue Bounds_setType(Bounds *_THIS, int i, SubjectToType value)
returnValue Bounds_setupAll(Bounds *_THIS, SubjectToStatus _status)
returnValue Bounds_addIndex(Bounds *_THIS, Indexlist *const indexlist, int newnumber, SubjectToStatus newstatus)
returnValue Bounds_swapIndex(Bounds *_THIS, Indexlist *const indexlist, int number1, int number2)
static int Bounds_getNFX(Bounds *_THIS)
static int Indexlist_getLength(Indexlist *_THIS)
static int Bounds_getNV(Bounds *_THIS)
static int Bounds_getNUV(Bounds *_THIS)
static int Bounds_getNFR(Bounds *_THIS)
#define END_NAMESPACE_QPOASES
returnValue Bounds_moveFixedToFree(Bounds *_THIS, int number)
returnValue Bounds_flipFixed(Bounds *_THIS, int number)
void BoundsCPY(Bounds *FROM, Bounds *TO)
Stores and manages index lists.
returnValue Bounds_print(Bounds *_THIS)
SubjectToType type[NVMAX]
Manages working sets of bounds (= box constraints).
#define BEGIN_NAMESPACE_QPOASES
static SubjectToType Bounds_getType(Bounds *_THIS, int i)
returnValue Bounds_swapFree(Bounds *_THIS, int number1, int number2)
static returnValue Bounds_setStatus(Bounds *_THIS, int i, SubjectToStatus value)
static Indexlist * Bounds_getFixed(Bounds *_THIS)
void BoundsCON(Bounds *_THIS, int _n)