pysolver_view.roots.solvers.line_search module#
Newton-Raphson and Gauss-Newton with full steps or protected backtracking.
Both methods rebuild their Jacobian after each committed point and reuse the same factors for rejected line-search trials. They never silently switch to LM or Broyden. All accepted states, attempted steps and residual calls use the same accounting conventions as the neighboring trust-region experiments.
- pysolver_view.roots.solvers.line_search.solve_gauss_newton(fun, x0, jac=None, *, options=None, callback=None, observer=None)[source]#
Solve a square or overdetermined system with least-squares directions.
Guarded QR and minimum-norm SVD handle full and deficient numerical rank. NewtonOptions (or a matching dictionary) controls backtracking/full steps. A stationary least-squares point above the residual tolerance is a failure, not a root; its projected residual change supplies the stationarity test.
- pysolver_view.roots.solvers.line_search.solve_newton_raphson(fun, x0, jac=None, *, options=None, callback=None, observer=None)[source]#
Solve a square system with strict Newton directions and optional backtracking.
A numerically singular Jacobian terminates rather than selecting a truncated least-squares direction. NewtonOptions (or a matching dictionary) selects protected backtracking by default; backtracking=None accepts valid steps without a decrease test. first_step_fraction optionally damps the direction; its default of one selects full steps when backtracking is disabled. No least-squares stationarity test is applied to Newton directions.