44 #include <visp3/core/vpConfig.h> 45 #include <visp3/core/vpMatrix.h> 46 #include <visp3/core/vpMatrixException.h> 47 #include <visp3/core/vpLinProg.h> 76 #ifdef VISP_HAVE_CPP11_COMPATIBILITY 85 const bool use_equality =
false,
86 const double &tol = 1e-6);
96 bool setEqualityConstraint(
const vpMatrix &A,
const vpColVector &b,
const double &tol = 1e-6);
151 const std::string fct)
154 const unsigned int n = Q.
getCols();
155 const bool Ab = (A != NULL && b != NULL && A->
getRows());
156 const bool Cd = (C != NULL && d != NULL && C->
getRows());
158 if ( (Ab && n != A->
getCols()) ||
164 std::cout <<
"vpQuadProg::" << fct <<
": wrong dimension\n" <<
Implementation of a matrix and operations on matrices.
unsigned int getCols() const
std::vector< unsigned int > inactive
This class provides a solver for Quadratic Programs.
unsigned int getRows() const
std::vector< unsigned int > active
Implementation of column vector and the associated operations.
static unsigned int checkDimensions(const vpMatrix &Q, const vpColVector &r, const vpMatrix *A, const vpColVector *b, const vpMatrix *C, const vpColVector *d, const std::string fct)