@@ -142,7 +142,7 @@ def solve(self, process: Process) -> None:
142
142
143
143
# we create and directly run the CMA-ES algorithm
144
144
_run_cma (CMA (mean = mean , sigma = sigma , bounds = bounds ,
145
- seed = process .get_random ().integers (0 , 4294967296 )),
145
+ seed = int ( process .get_random ().integers (0 , 4294967296 ) )),
146
146
f , should_terminate , [])
147
147
148
148
def log_parameters_to (self , logger : KeyValueLogSection ) -> None :
@@ -212,7 +212,8 @@ def solve(self, process: Process) -> None:
212
212
213
213
# we create and directly run the CMA-ES algorithm
214
214
_run_cma (SepCMA (mean = mean , sigma = sigma , bounds = bounds ,
215
- seed = process .get_random ().integers (0 , 4294967296 )),
215
+ seed = int (process .get_random ().integers (
216
+ 0 , 4294967296 ))),
216
217
f , should_terminate , [])
217
218
218
219
def __str__ (self ):
@@ -292,7 +293,7 @@ def solve(self, process: Process) -> None:
292
293
random : Generator = process .get_random ()
293
294
294
295
# create the initial CMA-ES setup
295
- seed : int = random .integers (0 , 4294967296 )
296
+ seed : int = int ( random .integers (0 , 4294967296 ) )
296
297
cma = CMA (mean = mean , sigma = sigma , bounds = bounds , seed = seed )
297
298
298
299
solutions : list [tuple [np .ndarray , int | float ]] = []
@@ -334,7 +335,7 @@ def solve(self, process: Process) -> None:
334
335
pop_size = initial_pop_size * (2 ** large_pop_restarts )
335
336
336
337
# Create the new CMA-ES instance.
337
- seed = random .integers (0 , 4294967296 )
338
+ seed = int ( random .integers (0 , 4294967296 ) )
338
339
cma = CMA (mean = mean , sigma = sigma , bounds = bounds ,
339
340
population_size = pop_size ,
340
341
seed = seed )
0 commit comments