20 #include <boost/test/unit_test.hpp> 35 BOOST_AUTO_TEST_SUITE(BOOST_TEST_MODULE)
43 Eigen::MatrixXd Q(2, 2);
51 Eigen::MatrixXd Aeq(0, 2);
53 Eigen::VectorXd Beq(0);
55 Eigen::MatrixXd Aineq(0, 2);
57 Eigen::VectorXd Bineq(0);
61 Eigen::VectorXd solution(2);
71 BOOST_CHECK_EQUAL(status, expected);
75 BOOST_CHECK(x.isApprox(solution));
113 BOOST_CHECK_EQUAL(status, expected);
117 BOOST_CHECK(x.isApprox(solution));
159 BOOST_CHECK_EQUAL(status, expected);
163 BOOST_CHECK(x.isApprox(solution));
166 BOOST_AUTO_TEST_SUITE_END()
Eigen::Matrix< double, Rows, 1 > d
RtEiquadprog_status solve_quadprog(const typename RtMatrixX< nVars, nVars >::d &Hess, const typename RtVectorX< nVars >::d &g0, const typename RtMatrixX< nEqCon, nVars >::d &CE, const typename RtVectorX< nEqCon >::d &ce0, const typename RtMatrixX< nIneqCon, nVars >::d &CI, const typename RtVectorX< nIneqCon >::d &ci0, typename RtVectorX< nVars >::d &x)
EiquadprogFast_status solve_quadprog(const MatrixXd &Hess, const VectorXd &g0, const MatrixXd &CE, const VectorXd &ce0, const MatrixXd &CI, const VectorXd &ci0, VectorXd &x)
void reset(size_t dim_qp, size_t num_eq, size_t num_ineq)
double getObjValue() const
BOOST_AUTO_TEST_CASE(test_unbiased)
double getObjValue() const
Eigen::Matrix< double, Rows, Cols > d