Skip to content

Commit 2c62a8e

Browse files
Merge pull request #1 from jonathanfischer97/dev
Fixed `store_trace=true` bug
2 parents 561699d + 20de7b2 commit 2c62a8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/OptimizationEvolutionary/src/OptimizationEvolutionary.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ function SciMLBase.__solve(cache::OptimizationCache{
9090
u = curr_u,
9191
objective = x[1],
9292
original = trace)
93-
cb_call = cache.callback(opt_state, trace.value...)
93+
cb_call = cache.callback(opt_state, decompose_trace(trace).value...)
9494
if !(cb_call isa Bool)
9595
error("The callback should return a boolean `halt` for whether to stop the optimization process.")
9696
end

0 commit comments

Comments
 (0)