qiskit.algorithms.optimizers.SteppableOptimizer.minimize¶
- SteppableOptimizer.minimize(fun, x0, jac=None, bounds=None)[source]¶
Minimizes the function.
For well behaved functions the user can call this method to minimize a function. If the user wants more control on how to evaluate the function a custom loop can be created using
ask()
andtell()
and evaluating the function manually.- Parameters
fun (
Callable
[[Union
[float
,ndarray
]],float
]) – Function to minimize.x0 (
Union
[float
,ndarray
]) – Initial point.jac (
Optional
[Callable
[[Union
[float
,ndarray
]],Union
[float
,ndarray
]]]) – Function to compute the gradient.bounds (
Optional
[List
[Tuple
[float
,float
]]]) – Bounds of the search space.
- Return type
- Returns
Object containing the result of the optimization.