pub trait ParameterOptimizationAlgorithm {
// Required methods
fn optimize(
&self,
objective: &ObjectiveFunction,
space: &ParameterSpace,
budget: &OptimizationBudget,
) -> DeviceResult<OptimizationResult>;
fn get_algorithm_name(&self) -> String;
fn supports_constraints(&self) -> bool;
}Expand description
Parameter optimization algorithm trait
Required Methods§
fn optimize( &self, objective: &ObjectiveFunction, space: &ParameterSpace, budget: &OptimizationBudget, ) -> DeviceResult<OptimizationResult>
fn get_algorithm_name(&self) -> String
fn supports_constraints(&self) -> bool
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".