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);
100 void resetActiveSet()
115 std::vector<unsigned int> active;
119 std::vector<unsigned int> inactive;
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()) ||
161 (Cd && C->
getRows() != d->getRows()) ||
164 std::cout <<
"vpQuadProg::" << fct <<
": wrong dimension\n" <<
169 std::cout <<
"C: " << C->
getRows() <<
"x" << C->
getCols() <<
" - d: " << d->getRows() << std::endl;