pub trait HessianBasedMinimizationEngine<T, U, V>: MinimizationControls {
// Required method
fn hessian_based_minimize(
&self,
objective_function: &T,
gradient_function: &U,
hessian_function: &V,
initial_parameters: Vec<f64>,
) -> Result<OptimizationResult, ErrorsJSL>
where T: ObjectiveFunction,
U: GradientFunction,
V: HessianFunction;
}Expand description
Hessian Based Minimization Engine trait that extends the MinimizationControls trait and has a method hessian_based_minimize that takes an objective function, an initial guess for the parameters, and returns the parameters that minimize the objective function.
This trait is intended for optimization algorithms that require the use of second-order information, such as Newton’s method or quasi-Newton methods. The method takes additional arguments for the gradient function and the
Hessian function, which are used to compute the gradient and Hessian of the objective function at the current parameters. The optimization algorithm can then use this information to update the parameters in a more informed way, potentially leading to faster convergence to the minimum.
Required Methods§
fn hessian_based_minimize( &self, objective_function: &T, gradient_function: &U, hessian_function: &V, initial_parameters: Vec<f64>, ) -> Result<OptimizationResult, ErrorsJSL>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".