We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c9b9598 + af2bb1a commit 3116bd8Copy full SHA for 3116bd8
pyadjoint/optimization/ipopt_solver.py
@@ -1,7 +1,5 @@
1
from __future__ import print_function
2
3
-from functools import partial
4
-
5
import numpy
6
7
from . import constraints
@@ -43,7 +41,7 @@ def __build_ipopt_problem(self):
43
41
44
42
# A callback that evaluates the functional and derivative.
45
J = self.rfn.__call__
46
- dJ = partial(self.rfn.derivative, forget=False)
+ dJ = self.rfn.derivative
47
nlp = cyipopt.Problem(
48
n=len(ub), # length of control vector
49
lb=lb, # lower bounds on control vector
0 commit comments