35 #ifndef QPOASES_UTILS_HPP 36 #define QPOASES_UTILS_HPP 39 #include <qpOASES/MessageHandling.hpp> 56 const int_t*
const V_idx,
73 const int_t*
const ROW_idx,
74 const int_t*
const COL_idx,
104 const char* datafilename
113 const char* datafilename
122 const char* datafilename
132 const char* datafilename,
141 const char* datafilename,
150 const char* datafilename,
170 const int_t*
const data,
266 const real_t*
const workingSetB = 0,
267 const real_t*
const workingSetC = 0,
283 const real_t*
const workingSetB = 0,
341 extern "C" void gdb_printmat(
const char *fname,
350 #if defined(__DSPACE__) || defined(__XPCTARGET__) || defined(__C_WRAPPER__) 351 extern "C" void __cxa_pure_virtual(
void );
359 #include <qpOASES/Utils.ipp>
BooleanType isZero(real_t x, real_t TOL=ZERO)
returnValue getKktViolation(int_t nV, int_t nC, const real_t *const H, const real_t *const g, const real_t *const A, const real_t *const lb, const real_t *const ub, const real_t *const lbA, const real_t *const ubA, const real_t *const x, const real_t *const y, real_t &stat, real_t &feas, real_t &cmpl, const real_t *const workingSetB=0, const real_t *const workingSetC=0, BooleanType hasIdentityHessian=BT_FALSE)
Allows to pass back messages to the calling function.
returnValue writeIntoFile(const real_t *const data, int_t nrow, int_t ncol, const char *datafilename, BooleanType append=BT_FALSE)
returnValue readFromFile(real_t *data, int_t nrow, int_t ncol, const char *datafilename)
returnValue normaliseConstraints(int_t nV, int_t nC, real_t *A, real_t *lbA, real_t *ubA, int_t type=1)
real_t getNorm(const real_t *const v, int_t n, int_t type=2)
returnValue convertBooleanTypeToString(BooleanType value, char *const string)
BEGIN_NAMESPACE_QPOASES returnValue print(const real_t *const v, int_t n, const char *name=0)
#define END_NAMESPACE_QPOASES
returnValue writeIntoMatFile(FILE *const matFile, const real_t *const data, int_t nRows, int_t nCols, const char *name)
returnValue convertPrintLevelToString(PrintLevel value, char *const string)
int_t getMin(int_t x, int_t y)
returnValue convertSubjectToStatusToString(SubjectToStatus value, char *const string)
real_t getSign(real_t arg)
#define BEGIN_NAMESPACE_QPOASES
int_t getSimpleStatus(returnValue returnvalue, BooleanType doPrintStatus=BT_FALSE)
returnValue myPrintf(const char *s)
int_t getMax(int_t x, int_t y)
BooleanType isEqual(real_t x, real_t y, real_t TOL=ZERO)
returnValue printCopyrightNotice()