Commit 0b17f74
Add comprehensive benchmark tests with quality validation
- Add conftest.py with 17 benchmark functions and known optima
- Add test_benchmarks.py with quality tolerance tests for all optimizer categories
- Add test_performance.py with regression baselines and critical path tests
Test improvements:
- Validate solutions against known optimal points (shifted_ackley at [1.0, 0.5])
- Flag solutions deviating from optimum as critical failures (distance > 0.2)
- Add xfail markers for optimizers prone to local minima on multimodal functions
- Include Himmelblau multi-optima handling
- Add reproducibility and bounds checking tests
356 test cases covering optimizer quality validation"1 parent 78dab9b commit 0b17f74
File tree
4 files changed
+1363
-1
lines changed- .github/workflows
- opt/test
4 files changed
+1363
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
0 commit comments