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
Initialize Particle Swarm Optimization
Performs Particle Swarm Optimization
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
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. 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.
The type returned in the event of a conversion error.
impl<V, T> VZip<V> for T where
V: MultiLane<T>,