Skip to main content

DdeOptions

Struct DdeOptions 

Source
pub struct DdeOptions<S: Scalar> {
    pub rtol: S,
    pub atol: S,
    pub h0: Option<S>,
    pub h_max: S,
    pub h_min: S,
    pub max_steps: usize,
    pub t_eval: Option<Vec<S>>,
    pub dense_output: bool,
    pub track_discontinuities: bool,
    pub discontinuity_order: usize,
}
Expand description

Options for DDE solvers.

Divergence from numra_ode::SolverOptions (per Foundation Spec §2.5): the field set most closely mirrors SolverOptions (rtol, atol, h0, h_max, h_min, max_steps, t_eval, dense_output) but diverges on two DDE-specific concerns: (1) dense_output defaults to true here because the Method-of-Steps solver evaluates y(t − τ) at delay-shifted times that don’t generally land on integration grid points; (2) track_discontinuities + discontinuity_order encode the inherent DDE discontinuity-propagation structure (initial-history non-smoothness propagates forward at integer multiples of the delays), which has no ODE analog. See docs/architecture/foundation-specification.md §2.5.

Fields§

§rtol: S

Relative tolerance

§atol: S

Absolute tolerance

§h0: Option<S>

Initial step size (None = auto)

§h_max: S

Maximum step size

§h_min: S

Minimum step size

§max_steps: usize

Maximum number of steps

§t_eval: Option<Vec<S>>

Save solution at these times (None = save all steps)

§dense_output: bool

Enable dense output (required for accurate history interpolation)

§track_discontinuities: bool

Track discontinuities in the solution

§discontinuity_order: usize

Track discontinuities up to this derivative order

Implementations§

Source§

impl<S: Scalar> DdeOptions<S>

Source

pub fn rtol(self, rtol: S) -> Self

Source

pub fn atol(self, atol: S) -> Self

Source

pub fn h0(self, h0: S) -> Self

Source

pub fn h_max(self, h_max: S) -> Self

Source

pub fn max_steps(self, max_steps: usize) -> Self

Source

pub fn track_discontinuities(self, track: bool) -> Self

Enable discontinuity tracking.

When enabled, the solver will detect and step exactly to discontinuity points that propagate from t0 at each delay interval.

Source

pub fn discontinuity_order(self, order: usize) -> Self

Set the discontinuity order to track.

Discontinuities propagate: the initial discontinuity at t0 propagates to t0 + tau for each delay tau. Setting order=3 tracks up to 3 levels of propagation (e.g., t0, t0+tau, t0+2tau, t0+3tau for single delay).

Trait Implementations§

Source§

impl<S: Clone + Scalar> Clone for DdeOptions<S>

Source§

fn clone(&self) -> DdeOptions<S>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<S: Debug + Scalar> Debug for DdeOptions<S>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<S: Scalar> Default for DdeOptions<S>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<S> Freeze for DdeOptions<S>
where S: Freeze,

§

impl<S> RefUnwindSafe for DdeOptions<S>
where S: RefUnwindSafe,

§

impl<S> Send for DdeOptions<S>

§

impl<S> Sync for DdeOptions<S>

§

impl<S> Unpin for DdeOptions<S>
where S: Unpin,

§

impl<S> UnsafeUnpin for DdeOptions<S>
where S: UnsafeUnpin,

§

impl<S> UnwindSafe for DdeOptions<S>
where S: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.