Skip to content

Commit

Permalink
double fdelta
Browse files Browse the repository at this point in the history
  • Loading branch information
teseoch committed Oct 4, 2023
1 parent d8e17ee commit 64183de
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/test_nonlinear_solver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,16 +92,18 @@ TEST_CASE("non-linear", "[solver]")
logger->set_level(spdlog::level::trace);
for (auto solver_name : Solver::available_solvers())
{
if (solver_name != "gradient_descent")
continue;
auto solver = Solver::create(solver_name,
solver_params,
linear_solver_params,
dt,
characteristic_length,
*logger);

for (const auto &ls : line_search::LineSearch::available_methods())
// for (const auto &ls : line_search::LineSearch::available_methods())
{
solver_params["line_search"]["method"] = ls;
// solver_params["line_search"]["method"] = ls;

QuadraticProblem::TVector x(prob.size());
x.setZero();
Expand All @@ -111,7 +113,7 @@ TEST_CASE("non-linear", "[solver]")
solver->minimize(prob, x);

const double err = (x - prob.solution()).norm();
INFO("solver: " + solver_name + " LS: " + ls);
// INFO("solver: " + solver_name + " LS: " + ls);
CHECK(err < 1e-8);

x.setRandom();
Expand Down

0 comments on commit 64183de

Please sign in to comment.