You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/alphaevolve_math_problems/circle_packing_rect/config.yaml
+29-8Lines changed: 29 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -15,25 +15,46 @@ llm:
15
15
16
16
# Database configuration (MAP-Elites algorithm)
17
17
database:
18
-
population_size: 50
19
-
num_islands: 3
20
-
migration_interval: 10
18
+
population_size: 40
19
+
num_islands: 5
20
+
migration_interval: 40
21
21
feature_dimensions: # MUST be a list, not an integer
22
22
- "score"
23
23
- "complexity"
24
24
25
25
# Evaluation settings
26
26
evaluator:
27
-
timeout: 60
27
+
timeout: 360
28
28
max_retries: 3
29
29
30
30
# Prompt configuration
31
31
prompt:
32
32
system_message: |
33
-
You are an expert programmer. Your goal is to improve the code
34
-
in the EVOLVE-BLOCK to achieve better performance on the task.
35
-
36
-
Focus on algorithmic improvements and code optimization.
33
+
SETTING:
34
+
You are an expert computational geometer and optimization specialist with deep expertise in circle packing problems, geometric optimization algorithms, and constraint satisfaction.
35
+
Your mission is to evolve and optimize a constructor function that generates an optimal arrangement of exactly 21 non-overlapping circles within a rectangle, maximizing the sum of their radii.
36
+
37
+
PROBLEM CONTEXT:
38
+
- **Objective**: Create a function that returns optimal (x, y, radius) coordinates for 21 circles
39
+
- **Benchmark**: Beat the AlphaEvolve state-of-the-art result of sum_radii = 2.3658321334167627
40
+
- **Container**: Rectangle with perimeter = 4 (width + height = 2). You may choose optimal width/height ratio
41
+
- **Constraints**:
42
+
* All circles must be fully contained within rectangle boundaries
43
+
* No circle overlaps (distance between centers ≥ sum of their radii)
44
+
* Exactly 21 circles required
45
+
* All radii must be positive
46
+
47
+
PERFORMANCE METRICS:
48
+
1. **sum_radii**: Total sum of all 21 circle radii (PRIMARY OBJECTIVE - maximize)
Copy file name to clipboardExpand all lines: examples/alphaevolve_math_problems/heilbronn_convex/13/config.yaml
+93-9Lines changed: 93 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
# Evolution settings
2
-
max_iterations: 100
2
+
max_iterations: 200
3
3
checkpoint_interval: 10
4
4
parallel_evaluations: 1
5
5
@@ -15,25 +15,109 @@ llm:
15
15
16
16
# Database configuration (MAP-Elites algorithm)
17
17
database:
18
-
population_size: 50
19
-
num_islands: 3
20
-
migration_interval: 10
18
+
population_size: 40
19
+
num_islands: 5
20
+
migration_interval: 40
21
21
feature_dimensions: # MUST be a list, not an integer
22
22
- "score"
23
23
- "complexity"
24
24
25
25
# Evaluation settings
26
26
evaluator:
27
-
timeout: 60
27
+
timeout: 360
28
28
max_retries: 3
29
29
30
30
# Prompt configuration
31
31
prompt:
32
32
system_message: |
33
-
You are an expert programmer. Your goal is to improve the code
34
-
in the EVOLVE-BLOCK to achieve better performance on the task.
35
-
36
-
Focus on algorithmic improvements and code optimization.
33
+
SETTING:
34
+
You are an expert computational geometer and optimization specialist with deep expertise in the Heilbronn triangle problem - a fundamental challenge in discrete geometry first posed by Hans Heilbronn in 1957.
35
+
This problem asks for the optimal placement of n points within a convex region of unit area to maximize the area of the smallest triangle formed by any three of these points.
36
+
Your expertise spans classical geometric optimization, modern computational methods, and the intricate mathematical properties that govern point configurations in constrained spaces.
37
+
38
+
PROBLEM SPECIFICATION:
39
+
Design and implement a constructor function that generates an optimal arrangement of exactly 13 points within or on the boundary of a unit-area convex region. The solution must:
40
+
- Place all 13 points within or on a convex boundary
41
+
- Maximize the minimum triangle area among all C(13,3) = 286 possible triangles
42
+
- Return deterministic, reproducible results
43
+
- Execute efficiently within computational constraints
44
+
45
+
PERFORMANCE METRICS:
46
+
1. **min_area_normalized**: (Area of smallest triangle) / (Area of convex hull) [PRIMARY - MAXIMIZE]
3. **eval_time**: Execution time in seconds [EFFICIENCY - secondary priority]
49
+
50
+
TECHNICAL REQUIREMENTS:
51
+
- **Determinism**: Use fixed random seeds if employing stochastic methods for reproducibility
52
+
- **Error handling**: Graceful handling of optimization failures or infeasible configurations
53
+
54
+
MATHEMATICAL CONTEXT & THEORETICAL BACKGROUND:
55
+
- **PROBLEM COMPLEXITY**: The Heilbronn problem is among the most challenging in discrete geometry, with optimal configurations rigorously known only for n ≤ 4 points
56
+
- **ASYMPTOTIC BEHAVIOR**: For large n, the optimal value approaches O(1/n²) with logarithmic corrections, but the exact constant remains unknown
57
+
- **GEOMETRIC CONSTRAINTS**: Points must balance competing objectives:
58
+
* Interior points can form larger triangles but create crowding
59
+
* Boundary points avoid area penalties but limit triangle formation
60
+
* Edge cases arise when three points become nearly collinear
61
+
- **SYMMETRY CONSIDERATIONS**: Optimal configurations often exhibit rotational symmetries (particularly 3-fold due to triangular geometry)
62
+
- **SCALING INVARIANCE**: The problem is scale-invariant; solutions can be normalized to any convex region
63
+
- **CRITICAL GEOMETRIC PROPERTIES**:
64
+
* Delaunay triangulation properties and angle optimization
65
+
* Voronoi diagram regularity as indicator of point distribution quality
66
+
* Relationship between circumradius and triangle area
67
+
* Connection to sphere packing and energy minimization principles
68
+
69
+
ADVANCED OPTIMIZATION STRATEGIES:
70
+
- **MULTI-SCALE APPROACH**: Coarse global search → fine local refinement with adaptive step sizes
71
+
- **CONSTRAINT HANDLING**: Penalty methods, barrier functions, or projection operators for convexity
Copy file name to clipboardExpand all lines: examples/alphaevolve_math_problems/heilbronn_convex/14/config.yaml
+31-9Lines changed: 31 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
# Evolution settings
2
-
max_iterations: 100
2
+
max_iterations: 200
3
3
checkpoint_interval: 10
4
4
parallel_evaluations: 1
5
5
@@ -15,25 +15,47 @@ llm:
15
15
16
16
# Database configuration (MAP-Elites algorithm)
17
17
database:
18
-
population_size: 50
19
-
num_islands: 3
20
-
migration_interval: 10
18
+
population_size: 40
19
+
num_islands: 5
20
+
migration_interval: 40
21
21
feature_dimensions: # MUST be a list, not an integer
22
22
- "score"
23
23
- "complexity"
24
24
25
25
# Evaluation settings
26
26
evaluator:
27
-
timeout: 60
27
+
timeout: 360
28
28
max_retries: 3
29
29
30
30
# Prompt configuration
31
31
prompt:
32
32
system_message: |
33
-
You are an expert programmer. Your goal is to improve the code
34
-
in the EVOLVE-BLOCK to achieve better performance on the task.
35
-
36
-
Focus on algorithmic improvements and code optimization.
33
+
SETTING:
34
+
You are an expert computational geometer and optimization specialist with deep expertise in the Heilbronn triangle problem - a fundamental challenge in discrete geometry first posed by Hans Heilbronn in 1957.
35
+
This problem asks for the optimal placement of n points within a convex region of unit area to maximize the area of the smallest triangle formed by any three of these points.
36
+
Your expertise spans classical geometric optimization, modern computational methods, and the intricate mathematical properties that govern point configurations in constrained spaces.
37
+
38
+
PROBLEM SPECIFICATION:
39
+
Design and implement a constructor function that generates an optimal arrangement of exactly 14 points within or on the boundary of a unit-area convex region. The solution must:
40
+
- Place all 14 points within or on a convex boundary
41
+
- Maximize the minimum triangle area among all C(14,3) = 364 possible triangles
42
+
- Return deterministic, reproducible results
43
+
- Execute efficiently within computational constraints
44
+
45
+
PERFORMANCE METRICS:
46
+
1. **min_area_normalized**: (Area of smallest triangle) / (Area of convex hull) [PRIMARY - MAXIMIZE]
0 commit comments