OptionalcovarianceInitial diagonal regularization applied when covariance Cholesky fails. Increase this if you observe repeated numerical failures.
Default: 1e-12
OptionalfunctionFunction value tolerance for TolHistFun termination criterion. Stops successfully when the range of recent best costs becomes small enough.
Default: 1e-12 (libcmaes)
OptionalinitialInitial distribution step size σ₀ (sigma0 in libcmaes).
This strongly affects performance; the optimum is ideally within [x0 - σ0, x0 + σ0] (per dimension) in a reasonable scaling of parameters.
If not provided (or non-positive), falls back to 1 / dim (libcmaes behavior).
OptionallogLog level for detailed logging output. Controls which log messages are displayed:
If verbose is true and logLevel is not specified, logLevel defaults to INFO. If both logLevel and verbose are specified, logLevel takes precedence. Default: undefined (no logging)
OptionalmaxMaximum number of objective function evaluations (MAXFEVALS in libcmaes). If specified, CMA-ES stops when the evaluation budget is reached.
OptionalmaxMaximum size of the best-cost history buffer used by termination criteria. If not provided (or non-positive), defaults to: 10 + ceil(30 * dim / λ) (libcmaes)
OptionalmaxMaximum number of iterations before stopping. Default: 1000
OptionalmaxMaximum number of restarts for IPOP. If not provided, defaults to 9 (libcmaes).
OptionalonCallback function called at each iteration for progress monitoring. Useful for debugging and monitoring convergence.
OptionalparameterParameter tolerance for TolX termination criterion. Stops (partial success) when the distribution becomes sufficiently narrow.
Default: 1e-12 (libcmaes)
OptionalpopulationPopulation size (λ), number of candidate solutions sampled per generation.
If not provided, uses libcmaes default: λ = 4 + floor(3 * log(dim))
OptionalprofilingEnable lightweight profiling of CMA-ES internal timings. When true, timing breakdown is returned in the result.
OptionalrandomRandom seed for reproducible results.
libcmaes semantics:
OptionalrestartRestart strategy for CMA-ES.
OptionaltargetObjective function target value (FTARGET in libcmaes). If specified, CMA-ES stops successfully when best cost <= targetCost.
OptionaltoleranceTolerance for convergence check (gradient norm, step size, etc.). Default: 1e-6
Levenberg-Marquardt and constrained Levenberg-Marquardt prefer
tolGradient / tolStep / tolResidual. If those are omitted,
this value is used as a common fallback.
OptionalverboseEnable verbose logging for debugging. When true, detailed information is logged to console. Default: false
Options for CMA-ES (Covariance Matrix Adaptation Evolution Strategy).
This implementation follows the vanilla CMA-ES default parameter formulas and core termination criteria used by libcmaes (CMAES_DEFAULT).