jac : bool or callable, optional Jacobian (gradient) of objective
function. Only for CG, BFGS, Newton-CG, L-BFGS-B, TNC, SLSQP, dogleg,
trust-ncg. If jac is a Boolean and is True, fun is assumed to return
the gradient along with the objective function. If False, the gradient
will be estimated numerically. jac can also be a callable returning
the gradient of the objective. In this case, it must accept the same
arguments as fun.
你完全可以。只需使用
jac=True
:实际上是documented:
(重点是我的)
相关问题 更多 >
编程相关推荐