Provides additional tools for analysing QP solutions. More...
#include <SolutionAnalysis.hpp>
Private Attributes | |
int | AC_idx [NCMAX_ALLOC] |
real_t | delta_g_cov [NVMAX] |
real_t | delta_lb_cov [NVMAX] |
real_t | delta_lbA_cov [NCMAX_ALLOC] |
real_t | delta_ub_cov [NVMAX] |
real_t | delta_ubA_cov [NCMAX_ALLOC] |
real_t | delta_xFR [NVMAX] |
real_t | delta_xFX [NVMAX] |
real_t | delta_yAC [NVMAX] |
real_t | delta_yFX [NVMAX] |
int | FR_idx [NVMAX] |
int | FX_idx [NVMAX] |
Provides additional tools for analysing QP solutions.
This class is intended to provide additional tools for analysing a QP solution obtained with qpOASES.
\author Boris Houska, Hans Joachim Ferreau \version 3.0beta \date 2007-2011
This class is intended to provide additional tools for analysing a QP solution obtained with qpOASES.
\author Hans Joachim Ferreau (thanks to Boris Houska) \version 3.2 \date 2008-2015
Definition at line 48 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/INCLUDE/EXTRAS/SolutionAnalysis.hpp.
BEGIN_NAMESPACE_QPOASES SolutionAnalysis::SolutionAnalysis | ( | ) |
Default constructor.
Definition at line 38 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/SRC/EXTRAS/SolutionAnalysis.cpp.
SolutionAnalysis::SolutionAnalysis | ( | const SolutionAnalysis & | rhs | ) |
Copy constructor (deep copy).
rhs | Rhs object. |
Definition at line 46 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/SRC/EXTRAS/SolutionAnalysis.cpp.
SolutionAnalysis::~SolutionAnalysis | ( | ) |
Destructor.
Definition at line 54 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/SRC/EXTRAS/SolutionAnalysis.cpp.
SolutionAnalysis::SolutionAnalysis | ( | ) |
Default constructor.
SolutionAnalysis::SolutionAnalysis | ( | const SolutionAnalysis & | rhs | ) |
Copy constructor (deep copy).
rhs | Rhs object. |
SolutionAnalysis::~SolutionAnalysis | ( | ) |
Destructor.
SolutionAnalysis::SolutionAnalysis | ( | ) |
Default constructor.
SolutionAnalysis::SolutionAnalysis | ( | const SolutionAnalysis & | rhs | ) |
Copy constructor (deep copy).
rhs | Rhs object. |
SolutionAnalysis::~SolutionAnalysis | ( | ) |
Destructor.
SolutionAnalysis::SolutionAnalysis | ( | ) |
Default constructor.
SolutionAnalysis::SolutionAnalysis | ( | const SolutionAnalysis & | rhs | ) |
Copy constructor (deep copy).
rhs | Rhs object. |
SolutionAnalysis::~SolutionAnalysis | ( | ) |
Destructor.
returnValue SolutionAnalysis::checkCurvatureOnStronglyActiveConstraints | ( | SQProblemSchur * | qp | ) |
Checks if a direction of negative curvature shows up if we remove all bounds that just recently became active
Definition at line 534 of file external_packages/qpOASES-3.2.0/src/SolutionAnalysis.cpp.
returnValue SolutionAnalysis::checkCurvatureOnStronglyActiveConstraints | ( | SQProblem * | qp | ) |
Definition at line 524 of file external_packages/qpOASES-3.2.0/src/SolutionAnalysis.cpp.
returnValue SolutionAnalysis::getHessianInverse | ( | QProblem * | qp, |
real_t * | hessianInverse | ||
) |
A routine for computation of inverse of the Hessian matrix.
hessianInverse | QP Inverse of the Hessian matrix |
Definition at line 75 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/SRC/EXTRAS/SolutionAnalysis.cpp.
returnValue SolutionAnalysis::getHessianInverse | ( | QProblem * | qp, |
real_t * | hessianInverse | ||
) |
A routine for computation of inverse of the Hessian matrix.
hessianInverse | QP Inverse of the Hessian matrix |
returnValue SolutionAnalysis::getHessianInverse | ( | QProblemB * | qp, |
real_t * | hessianInverse | ||
) |
A routine for computation of inverse of the Hessian matrix.
hessianInverse | QP Inverse of the Hessian matrix |
Definition at line 176 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/SRC/EXTRAS/SolutionAnalysis.cpp.
returnValue SolutionAnalysis::getHessianInverse | ( | QProblemB * | qp, |
real_t * | hessianInverse | ||
) |
A routine for computation of inverse of the Hessian matrix.
hessianInverse | QP Inverse of the Hessian matrix |
real_t SolutionAnalysis::getKktViolation | ( | QProblemB *const | qp, |
real_t *const | maxStat = 0 , |
||
real_t *const | maxFeas = 0 , |
||
real_t *const | maxCmpl = 0 |
||
) | const |
Computes the maximum violation of the KKT optimality conditions of the current iterate within the QProblemB object.
qp | QProblemB to be analysed. |
maxStat | Output: maximum value of stationarity condition residual. |
maxFeas | Output: maximum value of primal feasibility violation. |
maxCmpl | Output: maximum value of complementarity residual. |
Definition at line 93 of file external_packages/qpOASES-3.2.0/src/SolutionAnalysis.cpp.
real_t SolutionAnalysis::getKktViolation | ( | QProblem *const | qp, |
real_t *const | maxStat = 0 , |
||
real_t *const | maxFeas = 0 , |
||
real_t *const | maxCmpl = 0 |
||
) | const |
Computes the maximum violation of the KKT optimality conditions of the current iterate within the QProblem object.
qp | QProblem to be analysed. |
maxStat | Output: maximum value of stationarity condition residual. |
maxFeas | Output: maximum value of primal feasibility violation. |
maxCmpl | Output: maximum value of complementarity residual. |
Definition at line 166 of file external_packages/qpOASES-3.2.0/src/SolutionAnalysis.cpp.
real_t SolutionAnalysis::getKktViolation | ( | SQProblem *const | qp, |
real_t *const | maxStat = 0 , |
||
real_t *const | maxFeas = 0 , |
||
real_t *const | maxCmpl = 0 |
||
) | const |
Computes the maximum violation of the KKT optimality conditions of the current iterate within the SQProblem object.
qp | SQProblem to be analysed. |
maxStat | Output: maximum value of stationarity condition residual. |
maxFeas | Output: maximum value of primal feasibility violation. |
maxCmpl | Output: maximum value of complementarity residual. |
Definition at line 253 of file external_packages/qpOASES-3.2.0/src/SolutionAnalysis.cpp.
returnValue SolutionAnalysis::getMaxKKTviolation | ( | QProblemB * | qp, |
real_t & | maxKKTviolation | ||
) | const |
Determines the maximum violation of the KKT optimality conditions of the current iterate within the QProblemB object.
qp | QProblemB to be analysed. |
maxKKTviolation | OUTPUT: maximum violation of the KKT conditions. |
Definition at line 93 of file external_packages/qpOASES-3.0beta/src/extras/SolutionAnalysis.cpp.
returnValue SolutionAnalysis::getMaxKKTviolation | ( | QProblem * | qp, |
real_t & | maxKKTviolation | ||
) | const |
Determines the maximum violation of the KKT optimality conditions of the current iterate within the QProblem object.
qp | QProblem to be analysed. |
maxKKTviolation | OUTPUT: maximum violation of the KKT conditions. |
Definition at line 175 of file external_packages/qpOASES-3.0beta/src/extras/SolutionAnalysis.cpp.
returnValue SolutionAnalysis::getMaxKKTviolation | ( | SQProblem * | qp, |
real_t & | maxKKTviolation | ||
) | const |
Determines the maximum violation of the KKT optimality conditions of the current iterate within the SQProblem object.
qp | SQProblem to be analysed. |
maxKKTviolation | OUTPUT: maximum violation of the KKT conditions. |
Definition at line 302 of file external_packages/qpOASES-3.0beta/src/extras/SolutionAnalysis.cpp.
returnValue SolutionAnalysis::getVarianceCovariance | ( | QProblemB * | qp, |
real_t * | g_b_bA_VAR, | ||
real_t * | Primal_Dual_VAR | ||
) | const |
Computes the variance-covariance matrix of the QP output for uncertain
inputs.
qp | QProblemB to be analysed. |
g_b_bA_VAR | INPUT : Variance-covariance of g, the bounds lb and ub, and lbA and ubA respectively. Dimension: 2nV x 2nV |
Primal_Dual_VAR | OUTPUT: The result for the variance-covariance of the primal and dual variables. Dimension: 2nV x 2nV |
Definition at line 312 of file external_packages/qpOASES-3.0beta/src/extras/SolutionAnalysis.cpp.
returnValue SolutionAnalysis::getVarianceCovariance | ( | QProblemB *const | qp, |
const real_t *const | g_b_bA_VAR, | ||
real_t *const | Primal_Dual_VAR | ||
) | const |
Computes the variance-covariance matrix of the QP output for uncertain inputs.
qp | QProblemB to be analysed. |
g_b_bA_VAR | Input: Variance-covariance of g, the bounds lb and ub, and lbA and ubA respectively. Dimension: 2nV x 2nV |
Primal_Dual_VAR | Output: The result for the variance-covariance of the primal and dual variables. Dimension: 2nV x 2nV |
Definition at line 265 of file external_packages/qpOASES-3.2.0/src/SolutionAnalysis.cpp.
returnValue SolutionAnalysis::getVarianceCovariance | ( | QProblem * | qp, |
real_t * | g_b_bA_VAR, | ||
real_t * | Primal_Dual_VAR | ||
) | const |
Computes the variance-covariance matrix of the QP output for uncertain
inputs.
qp | QProblem to be analysed. |
g_b_bA_VAR | INPUT : Variance-covariance of g, the bounds lb and ub, and lbA and ubA respectively. Dimension: (2nV+nC) x (2nV+nC) |
Primal_Dual_VAR | OUTPUT: The result for the variance-covariance of the primal and dual variables. Dimension: (2nV+nC) x (2nV+nC) |
Definition at line 321 of file external_packages/qpOASES-3.0beta/src/extras/SolutionAnalysis.cpp.
returnValue SolutionAnalysis::getVarianceCovariance | ( | QProblem *const | qp, |
const real_t *const | g_b_bA_VAR, | ||
real_t *const | Primal_Dual_VAR | ||
) | const |
Computes the variance-covariance matrix of the QP output for uncertain inputs.
qp | QProblem to be analysed. |
g_b_bA_VAR | Input: Variance-covariance of g, the bounds lb and ub, and lbA and ubA respectively. Dimension: (2nV+nC) x (2nV+nC) |
Primal_Dual_VAR | Output: The result for the variance-covariance of the primal and dual variables. Dimension: (2nV+nC) x (2nV+nC) |
Definition at line 276 of file external_packages/qpOASES-3.2.0/src/SolutionAnalysis.cpp.
returnValue SolutionAnalysis::getVarianceCovariance | ( | SQProblem * | qp, |
real_t * | g_b_bA_VAR, | ||
real_t * | Primal_Dual_VAR | ||
) | const |
Computes the variance-covariance matrix of the QP output for uncertain
inputs.
qp | SQProblem to be analysed. |
g_b_bA_VAR | INPUT : Variance-covariance of g, the bounds lb and ub, and lbA and ubA respectively. Dimension: (2nV+nC) x (2nV+nC) |
Primal_Dual_VAR | OUTPUT: The result for the variance-covariance of the primal and dual variables. Dimension: (2nV+nC) x (2nV+nC) |
Definition at line 555 of file external_packages/qpOASES-3.0beta/src/extras/SolutionAnalysis.cpp.
returnValue SolutionAnalysis::getVarianceCovariance | ( | SQProblem *const | qp, |
const real_t *const | g_b_bA_VAR, | ||
real_t *const | Primal_Dual_VAR | ||
) | const |
Computes the variance-covariance matrix of the QP output for uncertain inputs.
qp | SQProblem to be analysed. |
g_b_bA_VAR | Input: Variance-covariance of g, the bounds lb and ub, and lbA and ubA respectively. Dimension: (2nV+nC) x (2nV+nC) |
Primal_Dual_VAR | Output: The result for the variance-covariance of the primal and dual variables. Dimension: (2nV+nC) x (2nV+nC) |
Definition at line 512 of file external_packages/qpOASES-3.2.0/src/SolutionAnalysis.cpp.
SolutionAnalysis & SolutionAnalysis::operator= | ( | const SolutionAnalysis & | rhs | ) |
Copy asingment operator (deep copy).
rhs | Rhs object. |
Definition at line 62 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/SRC/EXTRAS/SolutionAnalysis.cpp.
SolutionAnalysis& SolutionAnalysis::operator= | ( | const SolutionAnalysis & | rhs | ) |
Copy asingment operator (deep copy).
rhs | Rhs object. |
SolutionAnalysis& SolutionAnalysis::operator= | ( | const SolutionAnalysis & | rhs | ) |
Copy asingment operator (deep copy).
rhs | Rhs object. |
SolutionAnalysis& SolutionAnalysis::operator= | ( | const SolutionAnalysis & | rhs | ) |
Assignment operator (deep copy).
rhs | Rhs object. |
|
private |
Index array for fixed variables
Definition at line 99 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/INCLUDE/EXTRAS/SolutionAnalysis.hpp.
|
private |
Definition at line 87 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/INCLUDE/EXTRAS/SolutionAnalysis.hpp.
|
private |
A covariance-vector of g
Definition at line 88 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/INCLUDE/EXTRAS/SolutionAnalysis.hpp.
|
private |
A covariance-vector of ub
Definition at line 90 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/INCLUDE/EXTRAS/SolutionAnalysis.hpp.
|
private |
A covariance-vector of lb
Definition at line 89 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/INCLUDE/EXTRAS/SolutionAnalysis.hpp.
|
private |
A covariance-vector of lbA
Definition at line 91 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/INCLUDE/EXTRAS/SolutionAnalysis.hpp.
|
private |
Index array for active constraints
Definition at line 101 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/INCLUDE/EXTRAS/SolutionAnalysis.hpp.
|
private |
QP reaction, primal, w.r.t. free
Definition at line 102 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/INCLUDE/EXTRAS/SolutionAnalysis.hpp.
|
private |
QP reaction, primal, w.r.t. fixed
Definition at line 103 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/INCLUDE/EXTRAS/SolutionAnalysis.hpp.
|
private |
QP reaction, dual, w.r.t. active
Definition at line 104 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/INCLUDE/EXTRAS/SolutionAnalysis.hpp.
|
private |
A covariance-vector of ubA
Definition at line 97 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/INCLUDE/EXTRAS/SolutionAnalysis.hpp.
|
private |
Index array for free variables
Definition at line 98 of file examples/code_generation/mpc_mhe/getting_started_export/qpoases/INCLUDE/EXTRAS/SolutionAnalysis.hpp.