tequila.optimizers.optimizer_scipy.OptimizerSciPy

class tequila.optimizers.optimizer_scipy.OptimizerSciPy(method: str = 'L-BFGS-B', tol: numbers.Real = None, method_options=None, method_bounds=None, method_constraints=None, **kwargs)[source]

Bases: tequila.optimizers.optimizer_base.Optimizer

Class wrapping over the scipy optimizer for use by Tequila.

Variables
  • method – The scipy optimization method passed as string.

  • tol – See scipy documentation for the method you picked

  • method_options – See scipy documentation for the method you picked

  • method_bounds – See scipy documentation for the method you picked

  • method_constraints – See scipy documentation for the method you picked

  • silent – if False, the optimizer prints out all evaluated energies

__init__(method: str = 'L-BFGS-B', tol: numbers.Real = None, method_options=None, method_bounds=None, method_constraints=None, **kwargs)[source]
Parameters
  • method (str: Default = 'L-BFGS-B') – The scipy optimization method passed as string.

  • tol (float, optional) – See scipy documentation for the method you picked

  • method_options (optional) – See scipy documentation for the method you picked

  • method_bounds (optional) – See scipy documentation for the method you picked

  • method_constraints (optional) – See scipy documentation for the method you picked

  • silent (bool) – If False the optimizer prints out all evaluated energies

Attributes

gradient_based_methods

gradient_free_methods

hessian_based_methods

Methods

available_methods

All tested available methods

compile_gradient

Convenience function to compile gradient objects and relavant types.

compile_hessian

Convenience function to compile hessians for optimizers which require it.

compile_objective

Convenience function to wrap over compile; for use by inheritors.

initialize_variables

Convenience function to format the variables of some objective recieved in calls to optimizers.

reset_history

Reset the optimizer history.