Repository navigation
Record better circle packing result (2.635977) from issue #156 - #500
Merged
codelion merged 1 commit intoOct 10, 2026
Conversation
…superintelligence#156; fixes algorithmicsuperintelligence#156 - Replace examples/circle_packing/best_program.py with the deterministic program reported in issue algorithmicsuperintelligence#156 (sum of radii 2.635977394746595, exceeding AlphaEvolve's 2.635), keeping run_packing()/visualize() interfaces and EVOLVE-BLOCK markers - Update best_program_info.json with the re-verified metrics and provenance - Update README Results section and add a reproducibility note - Add regression test validating the recorded result with the repo's own evaluator (deterministic, no LLM required)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #156
What
Lands the circle packing result reported by @yyh-sjtu in #156 into the example's public record, replacing the previous best (2.634292402141039):
examples/circle_packing/best_program.py: replaced with the program from issue Seems a new circle packing result (2.635977) when reproducing your example 🎉 #156 (verbatim, only reformatted with the repo's black/isort config).run_packing()/visualize()interfaces and theEVOLVE-BLOCK-START/ENDmarkers are preserved. A provenance header above the evolve block documents the source issue, the run configuration (phase_1 x100 -> phase_2 x100 -> phase_2 x250, evaluator timeout 200s; best found at iteration 206, generation 13), and the verification command. The program is deterministic — it contains no random initialization (the previous best used an unseedednp.randomfallback).examples/circle_packing/best_program_info.json: metrics updated to locally re-verified values, with the reporter's run metadata (id,generation13,iteration206, timestamps) and aprovenancefield (the file is only ever written by the library, never read back, so the extra key is inert).examples/circle_packing/README.md:## Resultssection updated to 2.635977394746595 / ratio 1.0003709277975694 (~0.037% above AlphaEvolve's 2.635); the "matching ... to within 0.04%" narrative updated to "exceeds"; added a reproducibility note stating the program is deterministic and can be re-verified independently with the repository evaluator.tests/test_circle_packing_best_program.py: new regression test (unittest, no LLM, no API calls) that loadsexamples/circle_packing/evaluator.pyby path and asserts the recorded program still achievesvalidity == 1.0, shapes(26, 2)/(26,), andsum_radii >= 2.6359(lower bound with headroom for ~1e-11 scipy/BLAS float variation). Skipped automatically if scipy is not installed (scipy comes fromexamples/circle_packing/requirements.txt, not the main dev deps). Adds ~45s to the suite (the program is evaluated twice).Verification (repo evaluator, no LLM)
This matches the issue's reported
2.6359773947566274to within ~1e-11 (scipy/BLAS float variation). Validation uses the repository's own evaluator which, as codelion noted on #156, follows AlphaEvolve's released code (google-deepmind/alphaevolve_results B.12) — results validated with it are therefore valid.Red -> green evidence for the new test
best_program.py(unseeded random placement): both test methods fail, e.g.AssertionError: 2.6289329709819897 not greater than or equal to 2.6359and2.6265425556110142 not greater than or equal to 2.6359— the old program doesn't even reliably reproduce its own recorded 2.6343.Ran 2 tests ... OK(44.3s),sum_radii = 2.635977394746595on both runs (deterministic).Full suite:
OPENAI_API_KEY=test-key-for-unit-tests python -m unittest discover tests->Ran 576 tests in 78.293s ... OK(includes the 2 new tests).Not included