跳到正文
FunCoding

island-ga

Island Genetic Algorithm (IslandGA) method skill. USE WHEN the user explicitly requests IslandGA / island genetic algorithm, or wants multiple sub-populations evolving in parallel with periodic inter-island migration to preserve diversity and enable parallel search.

Star
727
许可证
BSD-3-Clause
最近提交
2026年11月30日

skills/algo-design/island-ga/SKILL.md

在 GitHub 上查看

Island Genetic Algorithm (IslandGA) Skill

Reference: Classic distributed evolutionary computation model, widely used for parallel evolutionary search. Independent sub-populations (islands) evolve in parallel with periodic migration.

1. Method Essence

IslandGA runs a distributed evolutionary algorithm in which the population is divided into several independent islands (sub-populations). Each island evolves on its own — with independent selection, crossover, and mutation — and only exchanges individuals through periodic migration events. This decoupled structure preserves genetic diversity (each island drifts toward different optima) and enables parallel execution of evolution workloads.

Core mechanisms:

ConceptRole
IslandAn independent sub-population evolving on its own GA loop
MigrationPeriodic exchange of individuals between islands to spread good solutions
Migration intervalNumber of generations between inter-island migration events
Migration rateFraction of individuals migrated out of the source island each event
Migration strategyWhich individuals migrate (best / random / elite / worst)
Migration topologyHow islands are connected (ring / fully-connected / hierarchical / mesh)

See params.yaml in this directory for the recommended parameter configuration.

Total population = num_islands × island_population_size.

What Happens During Evolution

  1. Split the population into num_islands islands, each initialized independently
  2. Each island runs its own GA loop (selection → crossover → mutation → evaluation)
  3. Every migration_interval generations, a migration event occurs:
    • Select emigrants per the migration_strategy and migration_rate
    • Send them along the migration_topology to neighboring islands
    • Incoming migrants are inserted into the target island population
  4. Islands evolve in parallel (parallel_islands) or sequentially
  5. Final best individual across all islands is the solution

Common Pitfalls

  • Too few islands or uniform islands → no diversity benefit; add more islands
  • Migration too frequent or too high rate → premature homogenization/collapse
  • Migration too rare → islands cannot share good solutions; slow convergence
  • No topology diversity → ring is a safe default; fully-connected spreads fastest
  • Failure to enable parallel_islands on large runs → unnecessarily slow

4. Acceptance Criteria

  • Multiple islands evolve independently with observable divergence
  • Periodic migration events occur at the configured interval
  • Migrants cross islands and improve the receiving population
  • Diversity is maintained across islands (not a single converged population)
  • Final best solution improves over a single-population baseline

相似的 Skill

ask-matt

MAmattpocock/skills337k近 7 天新增 4,978 个 star

chief-of-staff

MAmattpocock/skills337k近 7 天新增 4,978 个 star

setup-matt-pocock-skills

MAmattpocock/skills337k近 7 天新增 4,978 个 star

subagent-driven-development

OBobra/superpowers331k近 7 天新增 4,772 个 star

autonomous-loops

AFaffaan-m/ECC315k近 7 天新增 4,381 个 star

autonomous-agent-harness

AFaffaan-m/ECC315k近 7 天新增 4,381 个 star