Unverified Commit 4ae77d5d authored by Olivier Stasse's avatar Olivier Stasse Committed by GitHub
Browse files

[test] Delete solvers (#104)

Fix solver-HQP-base.hpp without virtual destructor.
Thanks to JB Mouret who reported the bug.
Fix #103
parent 59993dcb
......@@ -36,7 +36,7 @@ namespace tsid
class TSID_DLLAPI SolverHQPBase
{
public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
static std::string const HQP_status_string [5];
......@@ -46,6 +46,7 @@ namespace tsid
typedef math::ConstRefMatrix ConstRefMatrix;
SolverHQPBase(const std::string & name);
virtual ~SolverHQPBase() {};
virtual const std::string & name() { return m_name; }
......@@ -75,7 +76,7 @@ namespace tsid
virtual bool setMaximumTime(double seconds);
protected:
std::string m_name;
bool m_useWarmStart; // true if the solver is allowed to warm start
int m_maxIter; // max number of iterations
......
......@@ -309,6 +309,10 @@ BOOST_AUTO_TEST_CASE ( test_eiquadprog_classic_vs_rt_vs_fast)
std::cout<<"\n### TEST FINISHED ###\n";
getProfiler().report_all(3, std::cout);
getStatistics().report_all(1, std::cout);
delete solver;
delete solver_rt;
delete solver_fast;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment