This method is called every iteration during the optimization
process. It calls the user-supplied callback function (if any),
logs the evolution of the entropy dual and gradient norm, and
checks whether the process appears to be diverging, which would
indicate inconsistent constraints (or, for bigmodel instances,
too large a variance in the estimates).