Wrapper_ipopt_autodiff.gradient

Wrapper_ipopt_autodiff.gradient(x)[source]

The callback for calculating the gradient

Parameters

x (array) – The variabless passed to IPOPT

Returns

grad (array) – The gradient of the objective function at x.