pysolver_view.roots.solvers.trust_region module#
QR-based LM and Powell-style hybrid experiments controlling every trial radius.
These are independent trust-region implementations, not wrappers around or
bit-for-bit reproductions of MINPACK. Hybrid combines dogleg steps and scaled
Broyden QR updates, refreshing the Jacobian after poor model agreement.
Only public NumPy/SciPy interfaces are used. The
physical geometry is fixed: norm((x_trial - x_base) / x_scale) <= radius.
The first radius, a persistent maximum, and permitted growth are independent.
All trial points, including rejected and undefined ones, obey the radius;
derivative probes are separate, using scaled or explicit physical probe steps.
Default Jacobian equilibration additionally shapes the numerical trust region.
Its step is shortened along the same ray if required by the physical cap;
this is not an exact solve over the intersection of the two metric balls.
- pysolver_view.roots.solvers.trust_region.solve_levenberg_marquardt(fun, x0, jac=None, *, options=None, callback=None, observer=None)[source]#
Solve with damped least-squares steps and a fresh Jacobian after acceptance.
StepControlOptions (or a matching dictionary) controls the trust region. Rejected trials reuse the same factorized model; successful moves request a fresh Jacobian. Shared evaluation/history and residual-root contracts are implemented by _solve_trust_region().
- pysolver_view.roots.solvers.trust_region.solve_powell_hybrid(fun, x0, jac=None, *, options=None, callback=None, observer=None)[source]#
Solve with dogleg steps and Broyden updates from valid trials.
StepControlOptions (or a matching dictionary) controls the trust region. Valid rejected trials can also update the model. Two consecutive poor agreements or an unusable factor update request a fresh Jacobian; suspect models are refreshed before declaring stationarity or stagnation.