Skip to content

Latest commit

 

History

History
74 lines (53 loc) · 3.16 KB

faq.md

File metadata and controls

74 lines (53 loc) · 3.16 KB

FAQ

How much does it cost to run?

See Cost Estimation for detailed pricing information and cost-saving tips.

🆚 How does this compare to manual optimization?

Aspect Manual OpenEvolve
Initial Learning Weeks to understand domain Minutes to start
Solution Quality Depends on expertise Consistently explores novel approaches
Time Investment Days-weeks per optimization Hours for complete evolution
Reproducibility Hard to replicate exact process Perfect reproduction with seeds
Scaling Doesn't scale beyond human capacity Parallel evolution across islands

OpenEvolve shines when you need to explore large solution spaces or optimize for multiple objectives simultaneously.

Can I use my own LLM?

Yes! OpenEvolve supports any OpenAI-compatible API:

  • Commercial: OpenAI, Google, Cohere
  • Local: Ollama, vLLM, LM Studio, text-generation-webui
  • Advanced: OptiLLM for routing and test-time compute

Just set the api_base in your config to point to your endpoint.

What if evolution gets stuck?

Built-in mechanisms prevent stagnation:

  • Island migration: Fresh genes from other populations
  • Temperature control: Exploration vs exploitation balance
  • Diversity maintenance: MAP-Elites prevents convergence
  • Artifact feedback: Error messages guide improvements
  • Template stochasticity: Randomized prompts break patterns

Manual interventions:

  • Increase num_diverse_programs for more exploration
  • Add custom feature dimensions to diversify search
  • Use template variations to randomize prompts
  • Adjust migration intervals for more cross-pollination

How do I measure success?

Multiple success metrics:

  1. Primary Metric: Your evaluator's combined_score or metric average
  2. Convergence: Best score improvement over time
  3. Diversity: MAP-Elites grid coverage
  4. Efficiency: Iterations to reach target performance
  5. Robustness: Performance across different test cases

Use the visualizer to track all metrics in real-time and identify when evolution has converged.

What range can combined_score use?

The default database ranks programs by fitness, highest first. Your evaluator can return a finite score on its own scale. For example, return throughput in requests per second to favor 120 over 80, or return negative latency in milliseconds to favor -10 over -25. On the latency scale, --target-score -10 stops when a candidate's combined_score reaches -10 or higher. If your evaluator uses cascade stages, set their thresholds to match the scores each stage returns.

The scale also affects fitness-weighted parent sampling. Its minimum weight is 0.001, so two programs with negative scores have equal weight in that sampling step.

If you omit combined_score, the database ranks programs by the mean of their numeric, non-feature metrics. When only feature metrics are available, it uses their mean. Return an explicit combined_score when your metrics use different units or when you want to stop at a target score.