Skip to content

Commit 5e8eb3d

Browse files
committed
smooth_step -> after_line_search_custom_operation
1 parent baa3f10 commit 5e8eb3d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/polysolve/nonlinear/Problem.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ namespace polysolve::nonlinear
9090
/// @param new_x New solution.
9191
virtual void solution_changed(const TVector &new_x) {}
9292

93-
virtual bool smooth_step(const TVector &x0, const TVector &x1) { return false; }
93+
virtual bool after_line_search_custom_operation(const TVector &x0, const TVector &x1) { return false; }
9494

9595
/// @brief Callback function used to determine if the solver should stop.
9696
/// @param state Current state of the solver.

src/polysolve/nonlinear/Solver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ namespace polysolve::nonlinear
429429

430430
{
431431
TVector x1 = x + rate * delta_x;
432-
if (objFunc.smooth_step(x, x1))
432+
if (objFunc.after_line_search_custom_operation(x, x1))
433433
objFunc.solution_changed(x1);
434434
x = x1;
435435
}

0 commit comments

Comments
 (0)