SciPy Optimize

class Scipy(_opt_id=None, _signal_pipe=None, _results_queue=None, _pause_flag=None, _is_log_detailed=False, _workers=1, _backend='threads', method='Nelder-Mead', jac=None, hess=None, tol=None, **kwargs)[source]

Bases: scm.glompo.optimizers.baseoptimizer.BaseOptimizer

Wrapper around scipy.optimize.minimize.

Warning

This is quite a rough wrapper around SciPy’s optimizers since the code is quite impenetrable to outside code, and callbacks do not function consistently. Therefore, most GloMPO functionality like checkpointing and information sharing is not available. Users are advised to try Nevergrad instead which offers an interface to the SciPy optimizers with full GloMPO functionality.

This optimizer is also prone to hanging in certain edge cases, thus you are advised to set end_timeout in the GloMPOManager to a reasonable value.

Parameters

_opt_id, _signal_pipe, _results_queue, _pause_flag, _is_log_detailed, _workers, _backend

See BaseOptimizer.

method, jac, hess, hessp, tol

Passed to the scipy.optimize.minimize arguments of the same name.

**kwargs

Passed to the options argument of scipy.optimize.minimize.