deep.ode.options.ODE45
Description
A deep.ode.options.ODE45
object specifies options for the
"ode45"
solver of a neural ordinary differential equation (ODE)
layer.
The solver is based on an explicit Runge-Kutta (4,5) formula, the Dormand-Prince pair.
Specify the options object using the SolverOptions
property of a neuralODELayer
object. For options to use with ode
objects, see
matlab.ode.options.ODE45 Properties.
Creation
Create a neuralODELayer
object and set the Solver
property to "ode45"
. To set the solver options of the layer, use dot
notation. For example, to set the initial step size to 1e-3
, use
layer.SolverOptions.InitialStep = 1e-3
, where layer
is
an instance of the neural ODE layer.
In most cases, you do not need to create the deep.ode.options.ODE45
directly.
Properties
Examples
Tips
To apply the neural
ode45
operation in deep learning models defined as functions or in custom layer functions, usedlode45
.
Algorithms
The ode45
algorithm is based on an explicit Runge-Kutta (4,5) formula,
the Dormand-Prince pair. It is a single-step solver – in computing
y(tn), it needs only the solution at the
immediately preceding time point, y(tn-1). [1]
[2]
References
[1] Dormand, J. R. and P. J. Prince, “A family of embedded Runge-Kutta formulae,” J. Comp. Appl. Math., Vol. 6, 1980, pp. 19–26.
[2] Shampine, L. F. and M. W. Reichelt, “The MATLAB ODE Suite,” SIAM Journal on Scientific Computing, Vol. 18, 1997, pp. 1–22.
[3] Kidger, Patrick, Ricky T. Q. Chen, and Terry Lyons. “‘Hey, That’s Not an ODE’: Faster ODE Adjoints via Seminorms.” arXiv, May 10, 2021. https://doi.org/10.48550/arXiv.2009.09457.
Version History
Introduced in R2025a
See Also
deep.ode.options.ODE1
| neuralODELayer
| trainnet
| trainingOptions
| dlnetwork
| dlode45