Check if migration should occur based on generation counters
(self)
| 1777 | logger.debug(f"Island {idx} generation incremented to {self.island_generations[idx]}") |
| 1778 | |
| 1779 | def should_migrate(self) -> bool: |
| 1780 | """Check if migration should occur based on generation counters""" |
| 1781 | max_generation = max(self.island_generations) |
| 1782 | return (max_generation - self.last_migration_generation) >= self.migration_interval |
| 1783 | |
| 1784 | def migrate_programs(self) -> None: |
| 1785 | """ |