Download openevolve-fixed/examples/math/circle_packing_rect/initial_program.py from zhouk777/evolve: direct link, hf CLI and curl.
- Browser
- Download file 445 Bytes
-
https://huggingface.co/datasets/zhouk777/evolve/resolve/main/openevolve-fixed/examples/math/circle_packing_rect/initial_program.py
- Command line
-
hf download hf://datasets/zhouk777/evolve/openevolve-fixed/examples/math/circle_packing_rect/initial_program.py
-
curl -L -o initial_program.py https://huggingface.co/datasets/zhouk777/evolve/resolve/main/openevolve-fixed/examples/math/circle_packing_rect/initial_program.py
445 Bytes
| # EVOLVE-BLOCK-START | |
| import numpy as np | |
| def run() -> np.ndarray: | |
| """ | |
| Places 21 non-overlapping circles inside a rectangle of perimeter 4 | |
| in order to maximize the sum of their radii. | |
| Returns: | |
| circles: np.array of shape (21, 3), where each row (x, y, r) stores | |
| the (x, y) coordinates and radius r of each circle. | |
| """ | |
| n = 21 | |
| circles = np.zeros((n, 3)) | |
| return circles | |
| # EVOLVE-BLOCK-END | |