Expand description
Core traits and types for the Twine framework.
This crate defines the shared abstractions that solvers, observers, and models build on:
Model— a callable that maps a typed input to a typed outputSnapshot— a captured input/output pair from a model callObserver— receives solver events and optionally returns control actionsEquationProblem,OptimizationProblem,OdeProblem— problem traits that adapt solver variables to model inputs and extract metrics from outputs
Structs§
- Snapshot
- A captured input/output pair from a model call.
Traits§
- Equation
Problem - Defines an equation (root-finding) problem to be solved.
- Model
- A callable model that maps a typed input to a typed output.
- Observer
- Receives solver events and decides how the iteration should proceed.
- OdeProblem
- Defines an ODE (ordinary differential equation) problem to be solved.
- Optimization
Problem - Defines an optimization problem to be solved.
- Step
Integrable - A trait for types that can be stepped using their derivative.
Type Aliases§
- Derivative
Of - Type alias for the derivative of a
StepIntegrabletype.