MCPcopy Create free account
hub / github.com/Simple-Robotics/aligator / computeGradients

Method computeGradients

tests/python/example_problem.py:87–90  ·  view source on GitHub ↗
(self, x, u, data)

Source from the content-addressed store, hash-verified

85 data.value = _call(space, self.x_ref, x, self.W)
86
87 def computeGradients(self, x, u, data):
88 assert isinstance(data, MyCostData)
89 data.Lx[:] = _jac(space, self.x_ref, x, self.W)
90 data.Lu[:] = 0.0
91
92 def computeHessians(self, x, u, data):
93 assert isinstance(data, MyCostData)

Callers 6

test_cost_stackFunction · 0.45
test_composite_costFunction · 0.45
test_log_barrierFunction · 0.45
test_quad_stateFunction · 0.45
test_direct_sumFunction · 0.45
test_costMethod · 0.45

Calls 1

_jacFunction · 0.85

Tested by 6

test_cost_stackFunction · 0.36
test_composite_costFunction · 0.36
test_log_barrierFunction · 0.36
test_quad_stateFunction · 0.36
test_direct_sumFunction · 0.36
test_costMethod · 0.36