File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -248,6 +248,7 @@ class DatabaseConfig:
248248 population_size : int = 1000
249249 archive_size : int = 100
250250 num_islands : int = 5
251+ programs_per_island : Optional [int ] = None
251252
252253 # Selection parameters
253254 elite_selection_ratio : float = 0.1
Original file line number Diff line number Diff line change @@ -426,7 +426,7 @@ async def run_evolution(
426426 completed_iterations = 0
427427
428428 # Island management
429- programs_per_island = max (1 , max_iterations // (self .config .database .num_islands * 10 ))
429+ programs_per_island = self . config . database . programs_per_island or max (1 , max_iterations // (self .config .database .num_islands * 10 ))
430430 current_island_counter = 0
431431
432432 # Early stopping tracking
You can’t perform that action at this time.
0 commit comments