OptimizationAlgorithm

Trait OptimizationAlgorithm 

Source
pub trait OptimizationAlgorithm: Send + Sync {
    // Required methods
    fn optimize(
        &self,
        current_thresholds: &HashMap<String, f64>,
        objectives: &[OptimizationObjective],
    ) -> OptimizationResult;
    fn name(&self) -> &str;
    fn parameters(&self) -> HashMap<String, String>;
}
Expand description

Optimization algorithm trait

Required Methods§

Source

fn optimize( &self, current_thresholds: &HashMap<String, f64>, objectives: &[OptimizationObjective], ) -> OptimizationResult

Optimize thresholds

Source

fn name(&self) -> &str

Get algorithm name

Source

fn parameters(&self) -> HashMap<String, String>

Get algorithm parameters

Implementors§