Repository navigation
Phase A: constraint benchmark and solve rate reporting - #37
Merged
Merged
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0175jMLxrP7wZ3vfj6UfeDZx
…olve rate reporting Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0175jMLxrP7wZ3vfj6UfeDZx
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0175jMLxrP7wZ3vfj6UfeDZx
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0175jMLxrP7wZ3vfj6UfeDZx
… claude/constraint-benchmark
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0175jMLxrP7wZ3vfj6UfeDZx
This was referenced Oct 24, 2026
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.
Phase A of the new strategies plan: a constraint benchmark
This branch includes the plan (#36), so merging this makes #36 unnecessary.
What it adds
scala-test/.../benchmark, each with a known solution and fitness 0 as the goal:NQueensProblem: a permutation, with an allocation free swap delta inevaluateMove.GraphColoringProblem: integer variables, built around a hidden coloring so a solution exists.AllIntervalProblem: a permutation with many plateaus; the check that a strategy is not tuned to queens../gradlew benchmark -Pargs="--solve-rate=true"runs them with 20 seeds and 2 s each, stops a run at its first solution, and writesdocs/solve-rate-results.md(solved runs of 20, median time and evaluations of the solved ones, median broken constraints of the rest). The ordinary benchmark is unchanged.Baseline (two processors, 20 seeds, 2 s)
So the benchmark separates the strategies: annealing is already good on swap problems, nothing handles integer variables, and genetic search wins only the all-interval series. Full table in
docs/solve-rate-results.md. Notes on those results and other problems worth adding (3-SAT, Costas arrays) are in the plan.Testing
562 tests pass in my manual build; the 6 failures are the same known ones as before. I could not run Gradle here.
Generated by Claude Code