File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -237,6 +237,9 @@ EnumX.@enumx ReturnCode begin
237
237
nonlinear solver was chosen. If fixed point iteration is used on a stiff problem,
238
238
it will be faster by avoiding the Jacobian but it will make a stiff ODE solver not
239
239
stable for stiff problems!
240
+ * For nonlinear solvers, this can occur if certain threshold was exceeded. For example,
241
+ in approximate jacobian solvers like Broyden, Klement, etc. if the number of jacobian
242
+ resets exceeds the threshold, then this return code is given.
240
243
241
244
## Properties
242
245
@@ -354,6 +357,30 @@ EnumX.@enumx ReturnCode begin
354
357
* successful_retcode = false
355
358
"""
356
359
InternalLineSearchFailed
360
+
361
+ """
362
+ `ReturnCode.ShrinkThresholdExceeded`
363
+
364
+ The trust region radius was shrunk more times than the provided threshold.
365
+
366
+ ## Properties
367
+
368
+ * successful_retcode = false
369
+ """
370
+ ShrinkThresholdExceeded
371
+
372
+ """
373
+ `ReturnCode.Stalled`
374
+
375
+ The solution has stalled. This is only returned by algorithms for which stalling is a
376
+ failure mode. Certain solvers like Nonlinear Least Squares solvers are considered
377
+ successful if the solution has stalled, in those cases `ReturnCode.Success` is returned.
378
+
379
+ ## Properties
380
+
381
+ * successful_retcode = false
382
+ """
383
+ Stalled
357
384
end
358
385
359
386
Base.:(!= )(retcode:: ReturnCode.T , s:: Symbol ) = Symbol (retcode) != s
You can’t perform that action at this time.
0 commit comments