[−][src]Struct pos_pso::PSO
Implementations
impl PSO
[src]
pub fn new(config: PSOConfig) -> Self
[src]
pub fn minimize_collaborative<F>(
&self,
job_config: JobConfig,
cost_func: F
) -> (f64, Vec<f64>) where
F: Fn(&[f64]) -> f64 + Sync + Send + 'static,
[src]
&self,
job_config: JobConfig,
cost_func: F
) -> (f64, Vec<f64>) where
F: Fn(&[f64]) -> f64 + Sync + Send + 'static,
pub fn minimize_independant<F>(
&self,
job_config: JobConfig,
cost_func: F
) -> (f64, Vec<f64>) where
F: Fn(&[f64]) -> f64 + Sync + Send + 'static,
[src]
&self,
job_config: JobConfig,
cost_func: F
) -> (f64, Vec<f64>) where
F: Fn(&[f64]) -> f64 + Sync + Send + 'static,
pub fn minimize<F>(
&self,
job_config: JobConfig,
swarm_config: SwarmConfig,
cost_func: F
) -> (f64, Vec<f64>) where
F: Fn(&[f64]) -> f64 + Sync + Send + 'static,
[src]
&self,
job_config: JobConfig,
swarm_config: SwarmConfig,
cost_func: F
) -> (f64, Vec<f64>) where
F: Fn(&[f64]) -> f64 + Sync + Send + 'static,
pub fn minimize_distributed<F>(
&self,
job_config: JobConfig,
swarm_config_dist: SwarmConfigDistribution,
cost_func: F
) -> (f64, Vec<f64>) where
F: Fn(&[f64]) -> f64 + Sync + Send + 'static,
[src]
&self,
job_config: JobConfig,
swarm_config_dist: SwarmConfigDistribution,
cost_func: F
) -> (f64, Vec<f64>) where
F: Fn(&[f64]) -> f64 + Sync + Send + 'static,
pub fn minimize_specific<F>(
&self,
job_config: JobConfig,
swarm_configs: Vec<SwarmConfig>,
cost_func: F
) -> (f64, Vec<f64>) where
F: Fn(&[f64]) -> f64 + Sync + Send + 'static,
[src]
&self,
job_config: JobConfig,
swarm_configs: Vec<SwarmConfig>,
cost_func: F
) -> (f64, Vec<f64>) where
F: Fn(&[f64]) -> f64 + Sync + Send + 'static,
Auto Trait Implementations
impl RefUnwindSafe for PSO
impl Send for PSO
impl Sync for PSO
impl Unpin for PSO
impl UnwindSafe for PSO
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,