Skip to content

Commit

Permalink
bbo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaibhavdixit02 committed Jan 4, 2024
1 parent 7e8bf0c commit bf77f69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/OptimizationBBO/src/OptimizationBBO.jl
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ function SciMLBase.__solve(cache::Optimization.OptimizationCache{
t1 = time()

opt_ret = Symbol(opt_res.stop_reason)
stats = Optimization.OptimizationStats(opt_res.num_steps, t1 - t0, BlackBoxOptim.num_func_evals(opt_res))
stats = Optimization.OptimizationStats(opt_res.iterations, t1 - t0, opt_res.f_calls)

Check warning on line 181 in lib/OptimizationBBO/src/OptimizationBBO.jl

View check run for this annotation

Codecov / codecov/patch

lib/OptimizationBBO/src/OptimizationBBO.jl#L181

Added line #L181 was not covered by tests
SciMLBase.build_solution(cache, cache.opt,
BlackBoxOptim.best_candidate(opt_res),
BlackBoxOptim.best_fitness(opt_res);
Expand Down

0 comments on commit bf77f69

Please sign in to comment.