[−][src]Struct optimization_engine::core::problem::Problem
Definition of an optimisation problem
The definition of an optimisation problem involves:
- the gradient of the cost function
- the cost function
- the set of constraints, which is described by implementations of Constraint
Implementations
impl<'a, GradientType, ConstraintType, CostType> Problem<'a, GradientType, ConstraintType, CostType> where
GradientType: Fn(&[f64], &mut [f64]) -> Result<(), SolverError>,
CostType: Fn(&[f64], &mut f64) -> Result<(), SolverError>,
ConstraintType: Constraint,
[src]
GradientType: Fn(&[f64], &mut [f64]) -> Result<(), SolverError>,
CostType: Fn(&[f64], &mut f64) -> Result<(), SolverError>,
ConstraintType: Constraint,
pub fn new(
constraints: &'a ConstraintType,
cost_gradient: GradientType,
cost: CostType
) -> Problem<'a, GradientType, ConstraintType, CostType>
[src]
constraints: &'a ConstraintType,
cost_gradient: GradientType,
cost: CostType
) -> Problem<'a, GradientType, ConstraintType, CostType>
Auto Trait Implementations
impl<'a, GradientType, ConstraintType, CostType> RefUnwindSafe for Problem<'a, GradientType, ConstraintType, CostType> where
ConstraintType: RefUnwindSafe,
CostType: RefUnwindSafe,
GradientType: RefUnwindSafe,
ConstraintType: RefUnwindSafe,
CostType: RefUnwindSafe,
GradientType: RefUnwindSafe,
impl<'a, GradientType, ConstraintType, CostType> Send for Problem<'a, GradientType, ConstraintType, CostType> where
ConstraintType: Sync,
CostType: Send,
GradientType: Send,
ConstraintType: Sync,
CostType: Send,
GradientType: Send,
impl<'a, GradientType, ConstraintType, CostType> Sync for Problem<'a, GradientType, ConstraintType, CostType> where
ConstraintType: Sync,
CostType: Sync,
GradientType: Sync,
ConstraintType: Sync,
CostType: Sync,
GradientType: Sync,
impl<'a, GradientType, ConstraintType, CostType> Unpin for Problem<'a, GradientType, ConstraintType, CostType> where
CostType: Unpin,
GradientType: Unpin,
CostType: Unpin,
GradientType: Unpin,
impl<'a, GradientType, ConstraintType, CostType> UnwindSafe for Problem<'a, GradientType, ConstraintType, CostType> where
ConstraintType: RefUnwindSafe,
CostType: UnwindSafe,
GradientType: UnwindSafe,
ConstraintType: RefUnwindSafe,
CostType: UnwindSafe,
GradientType: UnwindSafe,
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>,