diff --git a/src/solver-abstract.cpp b/src/solver-abstract.cpp index 7964e9700940a02b72788ee72ea3f4505cb9186c..b4e365b94083bc546b5d3bc2df8a64b0b1e2f243 100644 --- a/src/solver-abstract.cpp +++ b/src/solver-abstract.cpp @@ -101,7 +101,6 @@ ResultData solve( const MatrixXd & A, assert (!(is_nan(D))); assert (!(is_nan(d))); assert (!(is_nan(initGuess))); - assert (!(is_nan(Hess))); ResultData res; res.x = initGuess; switch(solver) @@ -117,6 +116,7 @@ ResultData solve( const MatrixXd & A, case SOLVER_QUADPROG: //case SOLVER_QUADPROG_SPARSE: { + assert (!(is_nan(Hess))); std::pair<MatrixXd,VectorXd> CIp = addBoundaryConstraintsQuadProg(minBounds, maxBounds, A, b); VectorXd ce0 = -d; tsid::solvers::EiquadprogFast QPsolver = tsid::solvers::EiquadprogFast();