on_optimization_end#

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

Write the final summary banner and close the data file.

Records the final FOM, iteration count, optional improvement vs. the initial FOM, and the final parameter vector (at full precision when its length is within max_logged_params) so the values can be copied back as initial_params for a follow-up run.

Parameters:
successbool

Whether the optimizer reported a successful termination.

final_fomfloat

FOM value at the optimizer’s reported best point.

final_paramsnp.ndarray

Parameter vector at the optimizer’s reported best point.

num_iterationsint

Total number of iterations performed.

**kwargs

Extra metadata to record. initial_fom (if present) is used to compute and report the improvement; is_best is ignored to avoid noise; everything else is written verbatim.