MCPcopy Create free account
hub / github.com/cvanaret/Uno / jacobian

Function jacobian

interfaces/Python/example/example_hs015.py:21–23  ·  view source on GitHub ↗
(x, jacobian_values)

Source from the content-addressed store, hash-verified

19 200.*(x[1] - x[0]**2)]
20
21def jacobian(x, jacobian_values):
22 # the modeler should throw an exception if the function cannot be evaluated
23 jacobian_values[:] = [x[1], 1., x[0], 2.*x[1]]
24
25def lagrangian_hessian(x, objective_multiplier, multipliers, hessian_values):
26 # the modeler should throw an exception if the function cannot be evaluated

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected