Hello,
the solution of the EDO I'm solving has a sinusoidal form and I would like to find "exactly" where it reaches a maximum. For this reason, what I do is reduce the tolerance in order to increase the number of points and the likelihood of that one of them would be the maximum.
The problem is I want the maximum after some periods of time (when the solution is stationary) and using the tolerance mentioned before increases a lot the computational time.
So, is there any possibility of solving the EDO using a medium tolerance and when it is near the maximum, then decrease the tolerance to get higher accuracy?
First attempt has been solving the EDO with the medium tolerance, find approximately where it reaches the maximum and solve again using a tspan near the maximum. But the problem has been that the initial condition used is obtained from the first solution, which has an error due to the medium tolerance.
Thanks in advance
Best Answer