[−][src]Struct optimization_engine::core::fbs::FBSEngine
The FBE Engine defines the steps of the FBE algorithm and the termination criterion
Methods
impl<'a, GradientType, ConstraintType, CostType> FBSEngine<'a, GradientType, ConstraintType, CostType> where
GradientType: Fn(&[f64], &mut [f64]) -> i32,
CostType: Fn(&[f64], &mut f64) -> i32,
ConstraintType: Constraint,
[src]
GradientType: Fn(&[f64], &mut [f64]) -> i32,
CostType: Fn(&[f64], &mut f64) -> i32,
ConstraintType: Constraint,
pub fn new(
problem: Problem<GradientType, ConstraintType, CostType>,
cache: &'a mut FBSCache
) -> FBSEngine<'a, GradientType, ConstraintType, CostType>
[src]
problem: Problem<GradientType, ConstraintType, CostType>,
cache: &'a mut FBSCache
) -> FBSEngine<'a, GradientType, ConstraintType, CostType>
Trait Implementations
impl<'a, GradientType, ConstraintType, CostType> AlgorithmEngine for FBSEngine<'a, GradientType, ConstraintType, CostType> where
GradientType: Fn(&[f64], &mut [f64]) -> i32 + 'a,
CostType: Fn(&[f64], &mut f64) -> i32 + 'a,
ConstraintType: Constraint + 'a,
[src]
GradientType: Fn(&[f64], &mut [f64]) -> i32 + 'a,
CostType: Fn(&[f64], &mut f64) -> i32 + 'a,
ConstraintType: Constraint + 'a,
fn step(&mut self, u_current: &mut [f64]) -> bool
[src]
Take a forward-backward step and check whether the algorithm should terminate
Arguments
u_current
the current mutable
Returns
- A boolean flag which is
true
if and only if the algorith should not terminate
Panics
The method may panick if the computation of the gradient of the cost function or the cost function panics.
fn init(&mut self, _u_current: &mut [f64])
[src]
Auto Trait Implementations
impl<'a, GradientType, ConstraintType, CostType> Send for FBSEngine<'a, GradientType, ConstraintType, CostType> where
ConstraintType: Send,
CostType: Send,
GradientType: Send,
ConstraintType: Send,
CostType: Send,
GradientType: Send,
impl<'a, GradientType, ConstraintType, CostType> Sync for FBSEngine<'a, GradientType, ConstraintType, CostType> where
ConstraintType: Sync,
CostType: Sync,
GradientType: Sync,
ConstraintType: Sync,
CostType: Sync,
GradientType: Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto 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<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,