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_plotsand then immediately re-drew after the end-hook dispatch, causing a brief flicker on interactive backends. Whenblock_on_endis 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_fom
float FOM at the final parameter vector.
- final_params
np.ndarray Final parameter vector.
- num_iterations
int Total number of optimizer parameter updates.
- **kwargs
Additional metadata (unused).