Wrapper_ipopt.gradient

Wrapper_ipopt.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.