Create a standalone CMA-ES optimizer module. Full (not separable) CMA-ES with state object holding mean, covariance matrix, step-size (σ), evolution paths. Interface: init, sample λ candidates, update distribution from ranked results. Auto-sized λ = 4 + floor(3 × ln(n)). No game dependency — pure optimizer.
Acceptance criteria
initCma(n) creates a valid CMA state for n dimensions
update() accepts ranked candidates and updates the distribution
Self-check: optimizing a sphere function converges to the origin within a reasonable generation count
Module has no imports from game/bot code — pure math
Blocked by
None — can start immediately.
## Parent
#99
## What to build
part-of: #99
Create a standalone CMA-ES optimizer module. Full (not separable) CMA-ES with state object holding mean, covariance matrix, step-size (σ), evolution paths. Interface: init, sample λ candidates, update distribution from ranked results. Auto-sized λ = 4 + floor(3 × ln(n)). No game dependency — pure optimizer.
## Acceptance criteria
- [ ] `initCma(n)` creates a valid CMA state for n dimensions
- [ ] `sample()` produces λ candidate weight vectors (λ auto-sized)
- [ ] `update()` accepts ranked candidates and updates the distribution
- [ ] Self-check: optimizing a sphere function converges to the origin within a reasonable generation count
- [ ] Module has no imports from game/bot code — pure math
## Blocked by
None — can start immediately.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Parent
#99
What to build
part-of: #99
Create a standalone CMA-ES optimizer module. Full (not separable) CMA-ES with state object holding mean, covariance matrix, step-size (σ), evolution paths. Interface: init, sample λ candidates, update distribution from ranked results. Auto-sized λ = 4 + floor(3 × ln(n)). No game dependency — pure optimizer.
Acceptance criteria
initCma(n)creates a valid CMA state for n dimensionssample()produces λ candidate weight vectors (λ auto-sized)update()accepts ranked candidates and updates the distributionBlocked by
None — can start immediately.