Skip to main content

Crate twine_core

Crate twine_core 

Source
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 output
  • Snapshot — a captured input/output pair from a model call
  • Observer — receives solver events and optionally returns control actions
  • EquationProblem, 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§

EquationProblem
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.
OptimizationProblem
Defines an optimization problem to be solved.
StepIntegrable
A trait for types that can be stepped using their derivative.

Type Aliases§

DerivativeOf
Type alias for the derivative of a StepIntegrable type.