@@ -12,7 +12,7 @@ using DiffEqBase: DiffEqBase # Needed for `init` / `solve` dispatches
12
12
using LinearAlgebra: LinearAlgebra
13
13
using LineSearch: BackTracking
14
14
using NonlinearSolveBase: NonlinearSolveBase, AbstractNonlinearSolveAlgorithm,
15
- NonlinearSolvePolyAlgorithm, pickchunksize
15
+ NonlinearSolvePolyAlgorithm, pickchunksize, NonlinearVerbosity
16
16
17
17
using SciMLBase: SciMLBase, ReturnCode, AbstractNonlinearProblem,
18
18
NonlinearFunction,
@@ -90,16 +90,17 @@ include("forward_diff.jl")
90
90
push! (nlls_problems, NonlinearLeastSquaresProblem (fn, u0, 2.0 ))
91
91
end
92
92
93
+ nlp_algs = [NewtonRaphson (), TrustRegion (), LevenbergMarquardt ()]
94
+ nlls_algs = [GaussNewton (), TrustRegion (), LevenbergMarquardt ()]
95
+
93
96
@compile_workload begin
94
97
@sync begin
95
- for prob in nonlinear_problems
96
- Threads. @spawn CommonSolve. solve (
97
- )
98
+ for prob in nonlinear_problems, alg in nlp_algs
99
+ Threads. @spawn CommonSolve. solve (prob, alg; abstol = 1e-2 , verbose = NonlinearVerbosity ())
98
100
end
99
101
100
- for prob in nlls_problems
101
- Threads. @spawn CommonSolve. solve (
102
- )
102
+ for prob in nlls_problems, alg in nlls_algs
103
+ Threads. @spawn CommonSolve. solve (prob, alg; abstol = 1e-2 , verbose = NonlinearVerbosity ())
103
104
end
104
105
end
105
106
end
0 commit comments