doEndIteration is called at the end of each minimize iteration.
By default, function values and x locations are shuffled to store 1 past iteration in memory.
self.xc must be updated in this code.
xt (numpy.ndarray) – tested new iterate that ensures a descent direction.
- Return type:
If you have things that also need to run in the method doEndIteration, you can create a method:
def _doEndIteration*(self, ... ): pass
Where the * can be any string. If present, _doEndIteration* will be called at the start of the default doEndIteration call. You may also completely overwrite this function.