pub struct ELSolution {
pub lagrangian: LagrangianFunction,
pub solution: String,
pub is_extremal: bool,
}Expand description
Solution to the Euler-Lagrange equations for a given Lagrangian.
Fields§
§lagrangian: LagrangianFunctionThe Lagrangian for which the E-L equations were solved.
solution: StringDescription of the solution (extremal path).
is_extremal: boolWhether this critical path is truly extremal.
Implementations§
Source§impl ELSolution
impl ELSolution
Sourcepub fn is_local_minimum(&self) -> bool
pub fn is_local_minimum(&self) -> bool
Returns true if the second variation is strictly positive (Legendre + Jacobi hold).
Sourcepub fn is_local_maximum(&self) -> bool
pub fn is_local_maximum(&self) -> bool
Returns true if the second variation is strictly negative.
Trait Implementations§
Source§impl Clone for ELSolution
impl Clone for ELSolution
Source§fn clone(&self) -> ELSolution
fn clone(&self) -> ELSolution
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ELSolution
impl Debug for ELSolution
Auto Trait Implementations§
impl Freeze for ELSolution
impl RefUnwindSafe for ELSolution
impl Send for ELSolution
impl Sync for ELSolution
impl Unpin for ELSolution
impl UnsafeUnpin for ELSolution
impl UnwindSafe for ELSolution
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