Skip to content

Commit abd622c

Browse files
authored
Allow setting programs_per_island from config
1 parent 9df937a commit abd622c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openevolve/process_parallel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)