|
| template<typename Problem, typename State, typename Options, typename Observer> |
| auto | run_newton (Problem &problem, State initial_state, Options options, Observer observer, std::optional< NewtonProgress > restart) |
| | Find equilibrium while retaining the last fully qualified physical state.
|
| |
| std::optional< std::string > | preparation_rejection (const auto &problem, const auto &evaluation) |
| | Preserve numerical preparation failures while propagating invalid physical configurations.
|
| |
| std::expected< MetricEvaluation, NewtonFailure > | qualify_candidate (auto &problem, const auto &state, const auto &evaluation, auto &metric_function, auto &strategy, TrialAssessment assessment={}) |
| | Qualify one already evaluated candidate through the same physical and metric gates everywhere.
|
| |
| bool | finite_correction (std::span< const double > correction, const int expected_size) |
| | Every custom backend must preserve the correction dimensions and finite coefficients.
|
| |
| void | validate_start (const auto &options, const std::optional< NewtonProgress > &restart, std::size_t size) |
| | Validate controls and restored history before any physical preparation.
|
| |
| template<typename Problem> |
| std::expected< InitialEvaluation< typename Problem::System >, NewtonFailure > | evaluate_start (Problem &problem, auto &state, auto &options, const std::optional< NewtonProgress > &restart, SolveDiagnostics &diagnostics) |
| | Qualify the initial state and verify a restart against its original convergence reference.
|
| |
| std::expected< DirectionAssessment, NewtonFailure > | compute_direction (auto &problem, const auto &accepted, const auto &prepared, auto &options, SolveDiagnostics &diagnostics, auto &rhs, auto &correction, std::span< double > physical_direction) |
| | Solve and qualify a normalized correction before exposing its physical direction to backtracking.
|
| |
| template<typename Problem, typename State, typename System, typename Model> |
| auto | find_acceptable_step (Problem &problem, const SolveResult< State, System, Model > &accepted, MetricEvaluation accepted_metric, const auto &correction, std::span< const double > physical_direction, const DirectionAssessment &direction, double step, auto &options, SolveDiagnostics &diagnostics, auto &observation) |
| | Find a safe, sufficiently decreasing candidate without changing the accepted state.
|
| |
| void | save_progress (auto &result, auto &options, SolveDiagnostics &diagnostics, MetricEvaluation metric, std::span< const double > correction, double next_step) |
| | Snapshot only fully committed numerical history; reporting has no influence on restart.
|
| |