|
| | SolveObservation (Observer &observer, Strategies &strategies, SolveDiagnostics &diagnostics) |
| | Borrow the single diagnostics record and the selected numerical execution.
|
| |
| void | notify (EventKind kind, const auto &state, const auto &system, int iteration=0, int trial=0, double step=0.0, std::optional< MetricEvaluation > metric={}, std::string message={}) |
| | Publish an immutable snapshot and remember a stop request until an accepted boundary.
|
| |
| bool | stop_requested () const noexcept |
| | Check the latched request without letting callbacks accept or reject a trial.
|
| |
| auto | finish (auto &result, SolveStatus status, std::string message, MetricEvaluation metric={}) |
| | Finalize reporting even when the initial state was rejected and no snapshot exists.
|
| |
template<typename Observer, typename Strategies>
class serif::solver::detail::SolveObservation< Observer, Strategies >
Adapt callbacks and latch requests; only the Newton driver decides when stopping is safe.