#[non_exhaustive]pub struct CobyqaOptions {
pub rhobeg: f64,
pub rhoend: f64,
pub max_evaluations: Option<usize>,
pub max_iterations: Option<usize>,
pub npt: Option<usize>,
pub feasibility_tol: f64,
pub target: f64,
pub scale: bool,
pub filter_size: Option<usize>,
pub store_history: bool,
pub history_size: Option<usize>,
pub constants: CobyqaConstants,
}Expand description
Options for cobyqa, with SciPy’s defaults.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.rhobeg: f64The initial trust-region radius.
rhoend: f64The final radius (the accuracy wanted).
max_evaluations: Option<usize>The largest number of evaluations of the problem (default 500 n).
max_iterations: Option<usize>The largest number of iterations (default 1000 n).
npt: Option<usize>The number of interpolation points, from n + 1 to (n + 1)(n + 2)/2 (default 2 n + 1).
feasibility_tol: f64The constraint violation accepted for a point to count as feasible (default √ε).
target: f64The run stops successfully at a feasible point with an objective at most this (default −∞).
scale: boolMap the variables to the unit box [−1, 1]ⁿ first (SciPy’s scale); needs finite bounds on every
variable and is ignored otherwise.
filter_size: Option<usize>The most non-dominated points kept in the filter that the result is chosen from (default: all).
store_history: boolKeep the objective and violation at every evaluation (the last history_size of them) in the result.
history_size: Option<usize>§constants: CobyqaConstantsThe constants of the method (SciPy’s keyword arguments); the defaults are SciPy’s.
Implementations§
Source§impl CobyqaOptions
impl CobyqaOptions
Sourcepub fn with_radii(rhobeg: f64, rhoend: f64) -> Self
pub fn with_radii(rhobeg: f64, rhoend: f64) -> Self
The defaults with the given initial and final radii.
Sourcepub fn with_limits(self, max_evaluations: usize, max_iterations: usize) -> Self
pub fn with_limits(self, max_evaluations: usize, max_iterations: usize) -> Self
Limits on the evaluations and iterations.
Sourcepub fn with_target(self, target: f64) -> Self
pub fn with_target(self, target: f64) -> Self
Stop at a feasible point with an objective at most target.
Sourcepub fn with_scale(self, scale: bool) -> Self
pub fn with_scale(self, scale: bool) -> Self
Scale the variables to the unit box (needs finite bounds).
Sourcepub fn with_filter_size(self, size: usize) -> Self
pub fn with_filter_size(self, size: usize) -> Self
Limit the filter that the result is chosen from.
Sourcepub fn with_history(self, size: usize) -> Self
pub fn with_history(self, size: usize) -> Self
Keep the objective and violation of the last size evaluations in the result.
Sourcepub fn with_constants(self, constants: CobyqaConstants) -> Self
pub fn with_constants(self, constants: CobyqaConstants) -> Self
The constants of the method.