on_optimization_end#

GraphicalVisualizer.on_optimization_end(success: bool, final_fom: float, final_params: ndarray, num_iterations: int, **kwargs) None#

Render the final state, dispatch end hooks, optionally block.

Combines the per-iteration update and the per-panel end-hook pass into a single redraw so the figure refreshes exactly once at the end of the run – the previous implementation drew via _update_plots and then immediately re-drew after the end-hook dispatch, causing a brief flicker on interactive backends. When block_on_end is False, the figure is also closed at the end so long-lived sessions running many consecutive optimizations do not accumulate Matplotlib state.

Parameters:
successbool

Whether the optimization converged successfully.

final_fomfloat

FOM at the final parameter vector.

final_paramsnp.ndarray

Final parameter vector.

num_iterationsint

Total number of optimizer parameter updates.

**kwargs

Additional metadata (unused).