pub trait GradientFreeMinimizationEngine<T>: MinimizationControls {
// Required method
fn gradient_free_minimize(
&self,
objective_function: &T,
initial_parameters: Vec<f64>,
) -> Result<OptimizationResult, ErrorsJSL>
where T: ObjectiveFunction;
}Expand description
Gradient Free Minimization Engine trait that extends the MinimizationControls trait and has a method gradient_free_minimize that takes an objective function and an initial guess for the parameters, and returns the parameters that minimize the objective function.
Required Methods§
fn gradient_free_minimize(
&self,
objective_function: &T,
initial_parameters: Vec<f64>,
) -> Result<OptimizationResult, ErrorsJSL>where
T: ObjectiveFunction,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".