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
8888
8989 fitness_progress_history = []
9090 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
9393 return false
9494 end
9595
9696 mof_1 = MultiObjectiveOptimizationFunction (multi_obj_func_1)
9797 prob_1 = Optimization. OptimizationProblem (mof_1, u0; lb = lb, ub = ub)
9898 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 )
100101
101102 fp1 = fitness_progress_history[1 ]
102103 @test BlackBoxOptim. best_fitness (fp1. original). orig == fp1. objective
You can’t perform that action at this time.
0 commit comments