MATLAB Matlab ode solvers - adding a separate convergence criteria

AI Thread Summary
A user can implement a user-defined convergence criterion in an ODE solver by utilizing an event function, which is specified in the options structure created with the odeset function in MATLAB. By marking an event as terminal, the solver will halt when the specified event condition is met. For practical guidance, users can refer to the MATLAB documentation and examine the example provided by typing "edit ballode" in the command window.
hoomanya
Messages
86
Reaction score
0
Hi, is there a way to add a user defined convergence criteria to an ode solver so that the solution is stopped?
 
Physics news on Phys.org

Similar threads

Replies
9
Views
3K
Replies
2
Views
2K
Replies
1
Views
4K
Replies
5
Views
3K
Replies
1
Views
3K
Replies
2
Views
2K
Replies
1
Views
3K
Back
Top