pub struct Config {
pub lambda: Option<usize>,
pub tol_fun: f64,
pub tol_x: Option<f64>,
pub tol_x_up: f64,
pub max_condition: f64,
pub bounds: Option<Bounds>,
pub penalty: f64,
}Expand description
User-settable options of a CmaEs run; everything else follows Table 1.
Fields§
§lambda: Option<usize>The population size λ; None means the default 4 + ⌊3 ln n⌋. Increasing it improves
global search at the price of speed; decreasing it is not recommended.
tol_fun: f64TolFun: stop when recent best costs and the current generation’s costs lie within this
range. Default 1e-12.
tol_x: Option<f64>TolX: stop when all standard deviations and σ p_c fall below this. None means
1e-12 times the initial σ.
tol_x_up: f64TolXUp: stop when σ max(diag D) grew by more than this factor. Default 1e4.
max_condition: f64ConditionCov: stop when the condition number of C exceeds this. Default 1e14.
bounds: Option<Bounds>Box bounds, handled by the penalisation (63) of Appendix B.5 in
CmaEs::minimize: the objective is evaluated at the closest point in the box, and
penalty · ‖x - x_repaired‖² is added for ranking only. None is unbounded.
penalty: f64The penalty factor α of (63); choose it so that penalty and cost differences have a
similar magnitude. Default 1.