@@ -40,17 +40,17 @@ include("pseudo_transient.jl")
40
40
include (" poly_algs.jl" )
41
41
include (" forward_diff.jl" )
42
42
43
- # @setup_workload begin
44
- # nonlinear_functions = (
45
- # (NonlinearFunction{false, NoSpecialize}((u, p) -> u .* u .- p), 0.1),
46
- # (NonlinearFunction{false, NoSpecialize}((u, p) -> u .* u .- p), [0.1]),
47
- # (NonlinearFunction{true, NoSpecialize}((du, u, p) -> du .= u .* u .- p), [0.1])
48
- # )
49
-
50
- # nonlinear_problems = NonlinearProblem[]
51
- # for (fn, u0) in nonlinear_functions
52
- # push!(nonlinear_problems, NonlinearProblem(fn, u0, 2.0))
53
- # end
43
+ @setup_workload begin
44
+ nonlinear_functions = (
45
+ (NonlinearFunction {false, NoSpecialize} ((u, p) -> u .* u .- p), 0.1 ),
46
+ (NonlinearFunction {false, NoSpecialize} ((u, p) -> u .* u .- p), [0.1 ]),
47
+ (NonlinearFunction {true, NoSpecialize} ((du, u, p) -> du .= u .* u .- p), [0.1 ])
48
+ )
49
+
50
+ nonlinear_problems = NonlinearProblem[]
51
+ for (fn, u0) in nonlinear_functions
52
+ push! (nonlinear_problems, NonlinearProblem (fn, u0, 2.0 ))
53
+ end
54
54
55
55
nonlinear_functions = (
56
56
(NonlinearFunction {false, NoSpecialize} ((u, p) -> (u .^ 2 .- p)[1 : 1 ]), [0.1 , 0.0 ]),
@@ -73,13 +73,13 @@ include("forward_diff.jl")
73
73
)
74
74
)
75
75
76
- # nlls_problems = NonlinearLeastSquaresProblem[]
77
- # for (fn, u0) in nonlinear_functions
78
- # push!(nlls_problems, NonlinearLeastSquaresProblem(fn, u0, 2.0))
79
- # end
76
+ nlls_problems = NonlinearLeastSquaresProblem[]
77
+ for (fn, u0) in nonlinear_functions
78
+ push! (nlls_problems, NonlinearLeastSquaresProblem (fn, u0, 2.0 ))
79
+ end
80
80
81
- # nlp_algs = [NewtonRaphson(), TrustRegion(), LevenbergMarquardt()]
82
- # nlls_algs = [GaussNewton(), TrustRegion(), LevenbergMarquardt()]
81
+ nlp_algs = [NewtonRaphson (), TrustRegion (), LevenbergMarquardt ()]
82
+ nlls_algs = [GaussNewton (), TrustRegion (), LevenbergMarquardt ()]
83
83
84
84
@compile_workload begin
85
85
@sync begin
0 commit comments