MCPcopy Create free account
hub / github.com/algorithmicsuperintelligence/openevolve / next_island

Method next_island

openevolve/database.py:1763–1767  ·  view source on GitHub ↗

Move to the next island in round-robin fashion

(self)

Source from the content-addressed store, hash-verified

1761 logger.debug(f"Switched to evolving island {self.current_island}")
1762
1763 def next_island(self) -> int:
1764 """Move to the next island in round-robin fashion"""
1765 self.current_island = (self.current_island + 1) % len(self.islands)
1766 logger.debug(f"Advanced to island {self.current_island}")
1767 return self.current_island
1768
1769 def increment_island_generation(self, island_idx: Optional[int] = None) -> None:
1770 """Increment generation counter for an island"""

Calls

no outgoing calls