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 asinitial_paramsfor a follow-up run.- Parameters:
- successbool
Whether the optimizer reported a successful termination.
- final_fom
float FOM value at the optimizer’s reported best point.
- final_params
np.ndarray Parameter vector at the optimizer’s reported best point.
- num_iterations
int Total number of iterations performed.
- **kwargs
Extra metadata to record.
initial_fom(if present) is used to compute and report the improvement;is_bestis ignored to avoid noise; everything else is written verbatim.