Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaibhavdixit02 authored Feb 17, 2024
1 parent a624d95 commit c90d887
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/tests_on_odes/regularization_test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ cost_function_3 = build_loss_objective(prob3, Tsit5(), L2Loss(t, data),

println("Use Optim BFGS to fit the parameter")
optprob = Optimization.OptimizationProblem(cost_function_1, [1.0])
result = solve(optprob, Optim.BFGS(), maxiters = 500)
result = solve(optprob, Optim.LBFGS(), maxiters = 500)
@test result.u[1]1.5 atol=3e-1

optprob = Optimization.OptimizationProblem(cost_function_2, [1.2, 2.7])
result = solve(optprob, Optim.BFGS(), maxiters = 500)
result = solve(optprob, Optim.LBFGS(), maxiters = 500)
@test result.minimizer[1.5; 3.0] atol=3e-1

optprob = Optimization.OptimizationProblem(cost_function_3, [1.3, 0.8, 2.8, 1.2])
result = solve(optprob, Optim.BFGS(), maxiters = 500)
result = solve(optprob, Optim.LBFGS(), maxiters = 500)
@test result.minimizer[1.5; 1.0; 3.0; 1.0] atol=5e-1

0 comments on commit c90d887

Please sign in to comment.