@@ -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,
@@ -89,16 +89,17 @@ include("forward_diff.jl")
89
89
push! (nlls_problems, NonlinearLeastSquaresProblem (fn, u0, 2.0 ))
90
90
end
91
91
92
+ nlp_algs = [NewtonRaphson (), TrustRegion (), LevenbergMarquardt ()]
93
+ nlls_algs = [GaussNewton (), TrustRegion (), LevenbergMarquardt ()]
94
+
92
95
@compile_workload begin
93
96
@sync begin
94
- for prob in nonlinear_problems
95
- Threads. @spawn CommonSolve. solve (
96
- )
97
+ for prob in nonlinear_problems, alg in nlp_algs
98
+ Threads. @spawn CommonSolve. solve (prob, alg; abstol = 1e-2 , verbose = NonlinearVerbosity ())
97
99
end
98
100
99
- for prob in nlls_problems
100
- Threads. @spawn CommonSolve. solve (
101
- )
101
+ for prob in nlls_problems, alg in nlls_algs
102
+ Threads. @spawn CommonSolve. solve (prob, alg; abstol = 1e-2 , verbose = NonlinearVerbosity ())
102
103
end
103
104
end
104
105
end
0 commit comments