Struct pso_rs::pso::PSO[][src]

pub struct PSO {
    pub model: Model,
    pub neigh_population: Population,
    pub best_f_values: Vec<f64>,
    pub best_f_trajectory: Vec<f64>,
    pub best_x_trajectory: Vec<Particle>,
    // some fields omitted
}
Expand description

PSO struct

contains methods for performing Particle Swarm Optimization

Fields

model: Modelneigh_population: Populationbest_f_values: Vec<f64>best_f_trajectory: Vec<f64>best_x_trajectory: Vec<Particle>

Implementations

Initialize Particle Swarm Optimization

Performs Particle Swarm Optimization

Panics

Panics if any particle coefficient becomes NaN

Writes the best found objective function value for all iterations separated by newline characters

Writes the best found minimizer for all iterations

Vector coefficients are comma-separated, and the best vector at each iteration is terminated with a newline character

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.