scipy.optimize.minimize# scipy.optimize.minimize(fun, x0, args=(), method=None, jac=None, hess=None, hessp=None, bounds=None, constraints=(), tol=None, callback=None, options=None)[source]# Minimization of scalar function of one or more variables. Parameters: funcallableThe objective function to be minimized. where x is a 1-D array with shape (n,) and args is a tuple of the fixed parameters needed