|
| 1 | +# OpenEvolve Island-Based Evolution Configuration Examples |
| 2 | +# Different configurations for various use cases |
| 3 | + |
| 4 | +# Configuration for Maximum Diversity (Many Islands, Frequent Migration) |
| 5 | +# Use this when you want to explore the search space thoroughly |
| 6 | +# Good for: Complex problems, avoiding local optima, long runs |
| 7 | +max_diversity: |
| 8 | + database: |
| 9 | + num_islands: 10 # More islands = more diversity |
| 10 | + migration_interval: 25 # More frequent migration |
| 11 | + migration_rate: 0.2 # Higher migration rate |
| 12 | + population_size: 1000 |
| 13 | + archive_size: 200 |
| 14 | + |
| 15 | +# Configuration for Focused Exploration (Few Islands, Rare Migration) |
| 16 | +# Use this when you want deeper exploration within each island |
| 17 | +# Good for: Problems with clear structure, shorter runs |
| 18 | +focused_exploration: |
| 19 | + database: |
| 20 | + num_islands: 3 # Fewer islands = deeper exploration |
| 21 | + migration_interval: 100 # Less frequent migration |
| 22 | + migration_rate: 0.05 # Lower migration rate |
| 23 | + population_size: 500 |
| 24 | + archive_size: 50 |
| 25 | + |
| 26 | +# Configuration for Balanced Approach (Default Settings) |
| 27 | +# Use this as a starting point for most problems |
| 28 | +# Good for: General use, medium-length runs |
| 29 | +balanced: |
| 30 | + database: |
| 31 | + num_islands: 5 # Balanced number of islands |
| 32 | + migration_interval: 50 # Moderate migration frequency |
| 33 | + migration_rate: 0.1 # Moderate migration rate |
| 34 | + population_size: 1000 |
| 35 | + archive_size: 100 |
| 36 | + |
| 37 | +# Configuration for Quick Exploration (Small Scale) |
| 38 | +# Use this for rapid prototyping and testing |
| 39 | +# Good for: Small problems, quick experiments |
| 40 | +quick_exploration: |
| 41 | + database: |
| 42 | + num_islands: 3 |
| 43 | + migration_interval: 20 |
| 44 | + migration_rate: 0.15 |
| 45 | + population_size: 200 |
| 46 | + archive_size: 30 |
| 47 | + |
| 48 | +# Configuration for Large-Scale Evolution (High Performance) |
| 49 | +# Use this for complex problems requiring extensive search |
| 50 | +# Good for: Complex optimization, long evolutionary runs |
| 51 | +large_scale: |
| 52 | + database: |
| 53 | + num_islands: 15 # Many islands for parallel exploration |
| 54 | + migration_interval: 75 # Balanced migration timing |
| 55 | + migration_rate: 0.08 # Conservative migration rate |
| 56 | + population_size: 2000 # Large populations |
| 57 | + archive_size: 300 |
| 58 | + |
| 59 | +# Guidelines for choosing parameters: |
| 60 | +# |
| 61 | +# num_islands: |
| 62 | +# - More islands = more diversity, slower convergence |
| 63 | +# - Fewer islands = faster convergence, risk of premature convergence |
| 64 | +# - Recommended: 3-10 for most problems |
| 65 | +# |
| 66 | +# migration_interval: |
| 67 | +# - Lower values = more frequent knowledge sharing |
| 68 | +# - Higher values = more independent evolution |
| 69 | +# - Recommended: 25-100 generations |
| 70 | +# |
| 71 | +# migration_rate: |
| 72 | +# - Higher values = faster knowledge propagation |
| 73 | +# - Lower values = preserve island diversity longer |
| 74 | +# - Recommended: 0.05-0.2 (5%-20%) |
| 75 | +# |
| 76 | +# Rule of thumb: |
| 77 | +# - Complex problems → More islands, less frequent migration |
| 78 | +# - Simple problems → Fewer islands, more frequent migration |
| 79 | +# - Long runs → More islands to maintain diversity |
| 80 | +# - Short runs → Fewer islands for faster convergence |
0 commit comments