Interface DynamicsFunction

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface DynamicsFunction
Function representing an explicit or implicit ODE, or a discrete state transition function.
  • Explicit: dx/dt = f(t, x, u, *)
  • Implicit: f(t, [x dx/dt]', u, *) = 0
  • State transition: xₖ₊₁ = f(t, xₖ, uₖ, dt)
  • Method Details

    • apply

      Applies this function with the arguments and returns the result.
      Parameters:
      t - Time in seconds.
      x - State vector.
      u - Input vector.
      dt - Timestep duration in seconds.
      Returns:
      The state derivative dx/dt.