pysolver_view.roots.solvers.history module#

Consistent history storage, detached callbacks, and final root results.

class pysolver_view.roots.solvers.history.HistoryRecorder(level, callback, observer=None)[source]#

Bases: object

Store observations without deciding which trial the algorithm accepts.

accepted(x, fun, **diagnostics)[source]#

Record a committed state and return whether its copied callback stops.

result(*, x, fun, status, message, linear_algebra, **diagnostics)[source]#

Build a result from the last accepted state, retaining method diagnostics.

trial(x_base, x, diagnostics)[source]#

Store a trial’s diagnostics and optionally copy both endpoint vectors.