(x, gradient)
| 14 | constraint_values[:] = [x[0]*x[1], x[0] + x[1]**2] |
| 15 | |
| 16 | def objective_gradient(x, gradient): |
| 17 | # the modeler should throw an exception if the function cannot be evaluated |
| 18 | gradient[:] = [400.*x[0]**3 - 400.*x[0]*x[1] + 2.*x[0] - 2., |
| 19 | 200.*(x[1] - x[0]**2)] |
| 20 | |
| 21 | def jacobian(x, jacobian_values): |
| 22 | # the modeler should throw an exception if the function cannot be evaluated |
nothing calls this directly
no outgoing calls
no test coverage detected