Skip to content

Commit 3116bd8

Browse files
authored
Merge pull request #232 from dolfin-adjoint/JHopeCollins/bugfix-ipopt-2025.10.0
2 parents c9b9598 + af2bb1a commit 3116bd8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pyadjoint/optimization/ipopt_solver.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
from __future__ import print_function
22

3-
from functools import partial
4-
53
import numpy
64

75
from . import constraints
@@ -43,7 +41,7 @@ def __build_ipopt_problem(self):
4341

4442
# A callback that evaluates the functional and derivative.
4543
J = self.rfn.__call__
46-
dJ = partial(self.rfn.derivative, forget=False)
44+
dJ = self.rfn.derivative
4745
nlp = cyipopt.Problem(
4846
n=len(ub), # length of control vector
4947
lb=lb, # lower bounds on control vector

0 commit comments

Comments
 (0)