@@ -54,9 +54,10 @@ def calculate_potential(centers, problem):
5454 return potential , n_duplicate_runs
5555
5656
57- def plot_contour (X , Y , Z , colorbar = True ):
57+ def plot_contour (X , Y , Z , colorbar = True , vmin = - 2 , vmax = 2 ):
5858 plt .contourf (
59- X , Y , np .log10 (Z ), levels = 200 , cmap = "Spectral" , zorder = - 1 , vmin = - 1 , vmax = 2.5
59+ X , Y , np .log10 (Z ), levels = 200 , cmap = "Spectral" ,
60+ zorder = - 1 , vmin = vmin , vmax = vmax
6061 )
6162 plt .xlabel (R"$x_1$" )
6263 plt .ylabel (R"$x_2$" )
@@ -498,12 +499,12 @@ def interactive(fid=21, instance=6, dim=2, rep=True, coverage=5, save_frames = F
498499 # c_cmaes.constants.tol_min_sigma = 0.01
499500
500501 modules = c_cmaes .parameters .Modules ()
501- modules .restart_strategy = c_cmaes .options .BIPOP
502+ modules .restart_strategy = c_cmaes .options .RestartStrategy . RESTART
502503 # modules.bound_correction = c_cmaes.options.SATURATE
503- modules .elitist = True
504- modules .active = True
504+ # modules.elitist = True
505+ # modules.active = True
505506 modules .repelling_restart = rep
506- modules .center_placement = c_cmaes .options .UNIFORM
507+ modules .center_placement = c_cmaes .options .CenterPlacement . UNIFORM
507508 settings = c_cmaes .parameters .Settings (
508509 dim ,
509510 modules ,
0 commit comments