使用SciPy中的optimize.minimize来进行优化。...def minimize(fun, x0, args=(), method=None, jac=None, hess=None,
hessp=None, bounds=None, constraints...L-BFGS-B, TNC, SLSQP and trust-constr,可以使用constraints 参数的算法有: COBYLA, SLSQP and trust-constr
调参:optimize.minimize...运行:res = optimize.minimize(sample_fun, np.array(x0), bounds=bound, method=’L-BFGS-B’, tol=1e-11, options...LIMIT 增大参数maxfun;
CONVERGENCE: REL_REDUCTION_OF_F_<=_FACTR*EPSMCH 调小参数tol
以上这篇浅谈SciPy中的optimize.minimize