bundles / scipy 1.18.0 / scipy / _lib / _util / _call_callback_maybe_halt
function
scipy._lib._util:_call_callback_maybe_halt
source: /scipy/_lib/_util.py:917
Signature
def _call_callback_maybe_halt(callback, res)Summary
Call wrapped callback; return True if algorithm should stop.
Parameters
callback: callable or NoneA user-provided callback wrapped with _wrap_callback
res: OptimizeResultInformation about the current iterate
Returns
halt: boolTrue if minimization should stop
Aliases
scipy.differentiate.eim._call_callback_maybe_halt