[][src]Struct optimization_engine::continuation::HomotopyProblem

pub struct HomotopyProblem<ParametricPenaltyFunctionType, ParametricGradientType, ConstraintType, ParametricCostType> where
    ParametricPenaltyFunctionType: Fn(&[f64], &[f64], &mut [f64]) -> Result<(), SolverError>,
    ParametricGradientType: Fn(&[f64], &[f64], &mut [f64]) -> Result<(), SolverError>,
    ParametricCostType: Fn(&[f64], &[f64], &mut f64) -> Result<(), SolverError>,
    ConstraintType: Constraint
{ /* fields omitted */ }

Homotopy problem definition

Definition of a parametric optimization problem to be solved with the homotopy method

Methods

impl<ParametricPenaltyFunctionType, ParametricGradientType, ConstraintType, ParametricCostType> HomotopyProblem<ParametricPenaltyFunctionType, ParametricGradientType, ConstraintType, ParametricCostType> where
    ParametricPenaltyFunctionType: Fn(&[f64], &[f64], &mut [f64]) -> Result<(), SolverError>,
    ParametricGradientType: Fn(&[f64], &[f64], &mut [f64]) -> Result<(), SolverError>,
    ParametricCostType: Fn(&[f64], &[f64], &mut f64) -> Result<(), SolverError>,
    ConstraintType: Constraint
[src]

pub fn new(
    constraints: ConstraintType,
    parametric_gradient: ParametricGradientType,
    parametric_cost: ParametricCostType,
    penalty_function: ParametricPenaltyFunctionType,
    num_penalty_constraints: usize
) -> HomotopyProblem<ParametricPenaltyFunctionType, ParametricGradientType, ConstraintType, ParametricCostType>
[src]

Constructs instances of Homotopy problem

Arguments

  • constraints: hard constraints
  • parametric_gradient: gradient of the parametric cost function, df(u; p)
  • parametric_cost: parametric cost function, f(u; p)
  • penalty_function: parametric penalty function: c(u; p)
  • num_penalty_constraints: number of penalty-type constraints. This is the range dimension of c(u; p)

Auto Trait Implementations

impl<ParametricPenaltyFunctionType, ParametricGradientType, ConstraintType, ParametricCostType> Send for HomotopyProblem<ParametricPenaltyFunctionType, ParametricGradientType, ConstraintType, ParametricCostType> where
    ConstraintType: Send,
    ParametricCostType: Send,
    ParametricGradientType: Send,
    ParametricPenaltyFunctionType: Send

impl<ParametricPenaltyFunctionType, ParametricGradientType, ConstraintType, ParametricCostType> Sync for HomotopyProblem<ParametricPenaltyFunctionType, ParametricGradientType, ConstraintType, ParametricCostType> where
    ConstraintType: Sync,
    ParametricCostType: Sync,
    ParametricGradientType: Sync,
    ParametricPenaltyFunctionType: Sync

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]