pub struct FinalStateObjective<'a> {
pub value: &'a dyn Fn(&[f64], &[f64]) -> f64,
pub gradient: ObjectiveGradientFn<'a>,
}Expand description
A final-state objective J = g(q_T, v_T) with its analytic gradient.
Fields§
§value: &'a dyn Fn(&[f64], &[f64]) -> f64g(q_T, v_T).
gradient: ObjectiveGradientFn<'a>(∂g/∂q_T, ∂g/∂v_T).
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for FinalStateObjective<'a>
impl<'a> !Send for FinalStateObjective<'a>
impl<'a> !Sync for FinalStateObjective<'a>
impl<'a> !UnwindSafe for FinalStateObjective<'a>
impl<'a> Freeze for FinalStateObjective<'a>
impl<'a> Unpin for FinalStateObjective<'a>
impl<'a> UnsafeUnpin for FinalStateObjective<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more