MATLAB: How does Simulink compute the integration error

simulinksolver

I would like to see in the documentation an explanation on how Simulink computes the integration error.

Best Answer

Documentation on how Simulink computes the integration error is missing from product and manual.
Here is additional information on this issue:
The solver is doing the necessary computations in 2 ways (2 orders). For example, ODE45 is doing the integrations in order 4 and in order 5, and compares the 2 calculations. If the 2 calculations difference is bigger than the tolerance, it means that the step-size should be reduced.
An order 4 means that the solver is using 4 minor time steps to integrate the data between every 2 major time steps.
Related Question