File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -88,15 +88,16 @@ using Test
88
88
89
89
fitness_progress_history = []
90
90
function cb (state, fitness)
91
- push! (fitness_progress_history, deepcopy (state))
92
- @info state. iter
91
+ push! (fitness_progress_history, deepcopy (state. u ))
92
+ @info state. u
93
93
return false
94
94
end
95
95
96
96
mof_1 = MultiObjectiveOptimizationFunction (multi_obj_func_1)
97
97
prob_1 = Optimization. OptimizationProblem (mof_1, u0; lb = lb, ub = ub)
98
98
sol_1 = solve (prob_1, opt, NumDimensions = 2 ,
99
- FitnessScheme = ParetoFitnessScheme {2} (is_minimizing = true ), callback= cb)
99
+ FitnessScheme = ParetoFitnessScheme {2} (is_minimizing = true ),
100
+ callback= cb, maxiters= 30 )
100
101
101
102
fp1 = fitness_progress_history[1 ]
102
103
@test BlackBoxOptim. best_fitness (fp1. original). orig == fp1. objective
You can’t perform that action at this time.
0 commit comments