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.
1 parent fb17614 commit 428ab42Copy full SHA for 428ab42
lib/NonlinearSolveBase/src/termination_conditions.jl
@@ -199,13 +199,8 @@ function (cache::NonlinearTerminationModeCache)(
199
min_obj, max_obj = extrema(cache.objectives_trace)
200
end
201
if min_obj < mode.min_max_factor * max_obj
202
- if cache.leastsq
203
- # If least squares, found a local minima thus success
204
- cache.retcode = ReturnCode.StalledSuccess
205
- else
206
- # Not a success if f(x)>0 and residual too high
207
- cache.retcode = ReturnCode.Stalled
208
- end
+ # Not a success if f(x)>0 and residual too high
+ cache.retcode = ReturnCode.Stalled
209
return true
210
211
0 commit comments