pub trait SecondOrder<H: Hessian, J, X: Tensor>{
// Required method
fn minimize(
&self,
jacobian: impl Fn(&X) -> Result<J, OptimizeError>,
hessian: impl Fn(&X) -> Result<H, OptimizeError>,
initial_guess: X,
dirichlet: Option<Dirichlet<'_>>,
neumann: Option<Neumann<'_>>,
) -> Result<X, OptimizeError>;
}
Expand description
Second-order optimization algorithms.
Required Methods§
fn minimize( &self, jacobian: impl Fn(&X) -> Result<J, OptimizeError>, hessian: impl Fn(&X) -> Result<H, OptimizeError>, initial_guess: X, dirichlet: Option<Dirichlet<'_>>, neumann: Option<Neumann<'_>>, ) -> Result<X, OptimizeError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.