#include <qpOASES_e/MessageHandling.h>
Go to the source code of this file.
Functions | |
returnValue | qpOASES_convertBooleanTypeToString (BooleanType value, char *const string) |
returnValue | qpOASES_convertPrintLevelToString (PrintLevel value, char *const string) |
returnValue | qpOASES_convertSubjectToStatusToString (SubjectToStatus value, char *const string) |
static real_t | qpOASES_getAbs (real_t x) |
real_t | qpOASES_getCPUtime () |
returnValue | qpOASES_getKktViolation (int nV, int 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 *const _stat, real_t *const feas, real_t *const cmpl) |
returnValue | qpOASES_getKktViolationSB (int nV, const real_t *const H, const real_t *const g, const real_t *const lb, const real_t *const ub, const real_t *const x, const real_t *const y, real_t *const _stat, real_t *const feas, real_t *const cmpl) |
static real_t | qpOASES_getMax (real_t x, real_t y) |
static int | qpOASES_getMaxI (int x, int y) |
static real_t | qpOASES_getMin (real_t x, real_t y) |
static int | qpOASES_getMinI (int x, int y) |
real_t | qpOASES_getNorm (const real_t *const v, int n, int type) |
static real_t | qpOASES_getSign (real_t arg) |
int | qpOASES_getSimpleStatus (returnValue returnvalue, BooleanType doPrintStatus) |
static real_t | qpOASES_getSqrt (real_t x) |
static BooleanType | qpOASES_isEqual (real_t x, real_t y, real_t TOL) |
static BooleanType | qpOASES_isZero (real_t x, real_t TOL) |
returnValue | qpOASES_myPrintf (const char *s) |
returnValue | qpOASES_normaliseConstraints (int nV, int nC, real_t *A, real_t *lbA, real_t *ubA, int type) |
returnValue | qpOASES_printCopyrightNotice () |
returnValue | qpOASES_printI (const int *const _index, int n) |
returnValue | qpOASES_printM (const real_t *const M, int nrow, int ncol) |
returnValue | qpOASES_printNI (const int *const _index, int n, const char *name) |
returnValue | qpOASES_printNM (const real_t *const M, int nrow, int ncol, const char *name) |
returnValue | qpOASES_printNV (const real_t *const v, int n, const char *name) |
returnValue | qpOASES_printPM (const real_t *const M, int nrow, int ncol, const int *const ROW_idx, const int *const COL_idx) |
returnValue | qpOASES_printPV (const real_t *const v, int n, const int *const V_idx) |
BEGIN_NAMESPACE_QPOASES returnValue | qpOASES_printV (const real_t *const v, int n) |
returnValue | qpOASES_readFromFileI (int *data, int n, const char *datafilename) |
returnValue | qpOASES_readFromFileM (real_t *data, int nrow, int ncol, const char *datafilename) |
returnValue | qpOASES_readFromFileV (real_t *data, int n, const char *datafilename) |
returnValue | qpOASES_writeIntoFileI (const int *const integer, int n, const char *datafilename, BooleanType append) |
returnValue | qpOASES_writeIntoFileM (const real_t *const data, int nrow, int ncol, const char *datafilename, BooleanType append) |
returnValue | qpOASES_writeIntoFileV (const real_t *const data, int n, const char *datafilename, BooleanType append) |
returnValue | qpOASES_writeIntoMatFile (FILE *const matFile, const real_t *const data, int nRows, int nCols, const char *name) |
returnValue | qpOASES_writeIntoMatFileI (FILE *const matFile, const int *const data, int nRows, int nCols, const char *name) |
Declaration of some utilities for working with the different QProblem classes.
Definition in file Utils.h.
returnValue qpOASES_convertBooleanTypeToString | ( | BooleanType | value, |
char *const | string | ||
) |
returnValue qpOASES_convertPrintLevelToString | ( | PrintLevel | value, |
char *const | string | ||
) |
returnValue qpOASES_convertSubjectToStatusToString | ( | SubjectToStatus | value, |
char *const | string | ||
) |
real_t qpOASES_getCPUtime | ( | ) |
returnValue qpOASES_getKktViolation | ( | int | nV, |
int | 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 *const | _stat, | ||
real_t *const | feas, | ||
real_t *const | cmpl | ||
) |
Computes the maximum violation of the KKT optimality conditions of given iterate for given QP data.
nV | Number of variables. |
nC | Number of constraints. |
H | Hessian matrix (may be NULL if Hessian is zero or identity matrix). |
g | Gradient vector. |
A | Constraint matrix. |
lb | Lower bound vector (on variables). |
ub | Upper bound vector (on variables). |
lbA | Lower constraints' bound vector. |
ubA | Upper constraints' bound vector. |
x | Primal trial vector. |
y | Dual trial vector. |
_stat | Output: maximum value of stationarity condition residual. |
feas | Output: maximum value of primal feasibility violation. |
cmpl | Output: maximum value of complementarity residual. |
returnValue qpOASES_getKktViolationSB | ( | int | nV, |
const real_t *const | H, | ||
const real_t *const | g, | ||
const real_t *const | lb, | ||
const real_t *const | ub, | ||
const real_t *const | x, | ||
const real_t *const | y, | ||
real_t *const | _stat, | ||
real_t *const | feas, | ||
real_t *const | cmpl | ||
) |
Computes the maximum violation of the KKT optimality conditions of given iterate for given QP data.
nV | Number of variables. |
H | Hessian matrix (may be NULL if Hessian is zero or identity matrix). |
g | Gradient vector. |
lb | Lower bound vector (on variables). |
ub | Upper bound vector (on variables). |
x | Primal trial vector. |
y | Dual trial vector. |
_stat | Output: maximum value of stationarity condition residual. |
feas | Output: maximum value of primal feasibility violation. |
cmpl | Output: maximum value of complementarity residual. |
|
inlinestatic |
|
inlinestatic |
int qpOASES_getSimpleStatus | ( | returnValue | returnvalue, |
BooleanType | doPrintStatus | ||
) |
Converts a returnValue from an QProblem(B) object into a more simple status flag.
returnvalue | ReturnValue to be analysed. |
doPrintStatus | Flag indicating whether simple status shall be printed to screen. |
|
inlinestatic |
|
inlinestatic |
returnValue qpOASES_myPrintf | ( | const char * | s | ) |
returnValue qpOASES_normaliseConstraints | ( | int | nV, |
int | nC, | ||
real_t * | A, | ||
real_t * | lbA, | ||
real_t * | ubA, | ||
int | type | ||
) |
Normalises QP constraints.
nV | Number of variables. |
nC | Number of constraints. |
A | Input: Constraint matrix, Output: Normalised constraint matrix. |
lbA | Input: Constraints' lower bound vector, Output: Normalised constraints' lower bound vector. |
ubA | Input: Constraints' upper bound vector, Output: Normalised constraints' upper bound vector. |
type | Norm type, 1: one-norm, 2: Euclidean norm. |
returnValue qpOASES_printCopyrightNotice | ( | ) |
returnValue qpOASES_printI | ( | const int *const | _index, |
int | n | ||
) |
returnValue qpOASES_printM | ( | const real_t *const | M, |
int | nrow, | ||
int | ncol | ||
) |
returnValue qpOASES_printNI | ( | const int *const | _index, |
int | n, | ||
const char * | name | ||
) |
returnValue qpOASES_printNM | ( | const real_t *const | M, |
int | nrow, | ||
int | ncol, | ||
const char * | name | ||
) |
returnValue qpOASES_printNV | ( | const real_t *const | v, |
int | n, | ||
const char * | name | ||
) |
returnValue qpOASES_printPM | ( | const real_t *const | M, |
int | nrow, | ||
int | ncol, | ||
const int *const | ROW_idx, | ||
const int *const | COL_idx | ||
) |
returnValue qpOASES_printPV | ( | const real_t *const | v, |
int | n, | ||
const int *const | V_idx | ||
) |
BEGIN_NAMESPACE_QPOASES returnValue qpOASES_printV | ( | const real_t *const | v, |
int | n | ||
) |
returnValue qpOASES_readFromFileI | ( | int * | data, |
int | n, | ||
const char * | datafilename | ||
) |
returnValue qpOASES_readFromFileM | ( | real_t * | data, |
int | nrow, | ||
int | ncol, | ||
const char * | datafilename | ||
) |
returnValue qpOASES_readFromFileV | ( | real_t * | data, |
int | n, | ||
const char * | datafilename | ||
) |
returnValue qpOASES_writeIntoFileI | ( | const int *const | integer, |
int | n, | ||
const char * | datafilename, | ||
BooleanType | append | ||
) |
Writes an integer (column) vector into a file.
integer | Integer vector to be written into file. |
n | Length of vector. |
datafilename | Data file name. |
append | Indicates if integer shall be appended if the file already exists (otherwise it is overwritten). |
returnValue qpOASES_writeIntoFileM | ( | const real_t *const | data, |
int | nrow, | ||
int | ncol, | ||
const char * | datafilename, | ||
BooleanType | append | ||
) |
Writes a real_t matrix into a file.
data | Matrix to be written into file. |
nrow | Row number of matrix. |
ncol | Column number of matrix. |
datafilename | Data file name. |
append | Indicates if data shall be appended if the file already exists (otherwise it is overwritten). |
returnValue qpOASES_writeIntoFileV | ( | const real_t *const | data, |
int | n, | ||
const char * | datafilename, | ||
BooleanType | append | ||
) |
Writes a real_t vector into a file.
data | Vector to be written into file. |
n | Length of vector. |
datafilename | Data file name. |
append | Indicates if data shall be appended if the file already exists (otherwise it is overwritten). |
returnValue qpOASES_writeIntoMatFile | ( | FILE *const | matFile, |
const real_t *const | data, | ||
int | nRows, | ||
int | nCols, | ||
const char * | name | ||
) |
Writes a real_t matrix/vector into a Matlab binary file.
matFile | Pointer to Matlab binary file. |
data | Data to be written into file. |
nRows | Row number of matrix. |
nCols | Column number of matrix. |
name | Matlab name of matrix/vector to be stored. |
returnValue qpOASES_writeIntoMatFileI | ( | FILE *const | matFile, |
const int *const | data, | ||
int | nRows, | ||
int | nCols, | ||
const char * | name | ||
) |
Writes in integer matrix/vector into a Matlab binary file.
matFile | Pointer to Matlab binary file. |
data | Data to be written into file. |
nRows | Row number of matrix. |
nCols | Column number of matrix. |
name | Matlab name of matrix/vector to be stored. |