Minimization of scalar function of one variable.
Objective function. Scalar function, must return a scalar.
For methods ‘brent’ and ‘golden’, Using the Bounded method, we find a local minimum with specified bounds as:bracket
defines the bracketing interval and can either have three items [a, b, c]
so that a > from scipy.optimize import minimize_scalar
>>> res = minimize_scalar[f]
>>> res.x
1.28077640403
>>> res = minimize_scalar[f, bounds=[-3, -1], method='bounded'] >>> res.x -2.0000002026