-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expand file tree
/
Copy pathconfig.yaml
More file actions
57 lines (51 loc) · 1.57 KB
/
Copy pathconfig.yaml
File metadata and controls
57 lines (51 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Configuration for function minimization using Claude Code CLI as the LLM backend.
# No API keys needed — authentication uses `claude login` (OAuth session).
#
# Prerequisites:
# 1. Install Claude Code CLI: npm install -g @anthropic-ai/claude-code
# 2. Authenticate: claude login
#
# Run:
# python openevolve-run.py \
# examples/claude_code_quickstart/initial_program.py \
# examples/claude_code_quickstart/evaluator.py \
# --config examples/claude_code_quickstart/config.yaml \
# --iterations 50
max_iterations: 50
checkpoint_interval: 10
llm:
provider: "claude_code"
models:
- name: "sonnet"
weight: 0.8
max_tokens: 16000
timeout: 300
max_budget_usd: 1.0
- name: "haiku"
weight: 0.2
max_tokens: 8000
timeout: 120
max_budget_usd: 0.5
retries: 3
retry_delay: 5
prompt:
system_message: >
You are an expert programmer specializing in optimization algorithms.
Your task is to improve a function minimization algorithm to find the
global minimum of a complex function with many local minima.
The function is f(x, y) = sin(x) * cos(y) + sin(x*y) + (x^2 + y^2)/20.
Focus on improving the search_algorithm function to reliably find the
global minimum, escaping local minima that might trap simple algorithms.
database:
population_size: 50
archive_size: 20
num_islands: 3
elite_selection_ratio: 0.2
exploitation_ratio: 0.7
similarity_threshold: 0.99
evaluator:
timeout: 60
cascade_thresholds: [1.3]
parallel_evaluations: 3
diff_based_evolution: true
max_code_length: 20000