We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9df937a + 6dc0036 commit e9a70d2Copy full SHA for e9a70d2
2 files changed
openevolve/config.py
@@ -248,6 +248,7 @@ class DatabaseConfig:
248
population_size: int = 1000
249
archive_size: int = 100
250
num_islands: int = 5
251
+ programs_per_island: Optional[int] = None
252
253
# Selection parameters
254
elite_selection_ratio: float = 0.1
openevolve/process_parallel.py
@@ -426,7 +426,7 @@ async def run_evolution(
426
completed_iterations = 0
427
428
# Island management
429
- programs_per_island = max(1, max_iterations // (self.config.database.num_islands * 10))
+ programs_per_island = self.config.database.programs_per_island or max(1, max_iterations // (self.config.database.num_islands * 10))
430
current_island_counter = 0
431
432
# Early stopping tracking
0 commit comments