File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments