diff --git a/src/polysolve/nonlinear/Problem.hpp b/src/polysolve/nonlinear/Problem.hpp index 5a7449d..3245aad 100644 --- a/src/polysolve/nonlinear/Problem.hpp +++ b/src/polysolve/nonlinear/Problem.hpp @@ -90,7 +90,7 @@ namespace polysolve::nonlinear /// @param new_x New solution. virtual void solution_changed(const TVector &new_x) {} - virtual bool smooth_step(const TVector &x0, const TVector &x1) { return false; } + virtual bool after_line_search_custom_operation(const TVector &x0, const TVector &x1) { return false; } /// @brief Callback function used to determine if the solver should stop. /// @param state Current state of the solver. diff --git a/src/polysolve/nonlinear/Solver.cpp b/src/polysolve/nonlinear/Solver.cpp index 5c02141..d16f8dc 100644 --- a/src/polysolve/nonlinear/Solver.cpp +++ b/src/polysolve/nonlinear/Solver.cpp @@ -429,7 +429,7 @@ namespace polysolve::nonlinear { TVector x1 = x + rate * delta_x; - if (objFunc.smooth_step(x, x1)) + if (objFunc.after_line_search_custom_operation(x, x1)) objFunc.solution_changed(x1); x = x1; }