We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f880271 + 854b5e1 commit ed831c3Copy full SHA for ed831c3
tutorials/nonlinearconstrained.py
@@ -171,10 +171,11 @@ def callback(x):
171
172
self.solhist = []
173
self.solhist.append(self.x0)
174
- sol = sp.optimize.minimize(self.fun, x0=self.x0,
175
- jac=lambda x: self._gradprox(x, self.tau),
176
- method='L-BFGS-B', callback=callback,
177
- options=dict(maxiter=15))
+ sol = sp.optimize.minimize(lambda x: self._funprox(x, self.tau),
+ x0=self.x0,
+ jac=lambda x: self._gradprox(x, self.tau),
+ method='L-BFGS-B', callback=callback,
178
+ options=dict(maxiter=15))
179
sol = sol.x
180
181
self.solhist = np.array(self.solhist)
0 commit comments