verify()#
- QuadraticLifter.verify(states, t=None, tol: float = 0.0001)#
Verify that
lift()
andunlift()
are consistent and thatlift_ddts()
, if implemented, gives valid time derivatives.The
lift()
/unlift()
consistency check verifies thatunlift(lift(states)) == states
.The
lift_ddts()
consistency check usesopinf.ddt.ddt()
to estimate the time derivatives of the states and the lifted states, then verfies that the relative difference betweenlift_ddts(states, opinf.ddt.ddt(states, t))
andopinf.ddt.ddt(lift(states), t)
is less thantol
. If this check fails, consider using a finer time mesh.
- Parameters:
- states(n, k) ndarray
Native state variables.
- t(k,) ndarray or None
Time domain corresponding to the states. Only required if
lift_ddts()
is implemented.- tolfloat > 0
Tolerance for the finite difference check of
lift_ddts()
. Only used iflift_ddts()
is implemented.