Speedup Partial Differential Equation Solver
11 次查看(过去 30 天)
显示 更早的评论
Hi,
we are using the Partial Differential Equation Toolbox so solve a 2D System with 2 equations. The solving procedure takes virtually forever because the solver evaluates a lot of time points. How can I get the solver to be less accurate and therefore evaluate fewer time points? I tried changing the SolverOptions from the PDEModel but I can not notice any significant effect regardless of the settings is set.
Best regards Andreas
0 个评论
回答(1 个)
Alan Weiss
2017-1-26
There are two possible sets of time points that the solver visits. One is the set in tlist, the points you tell the solver to compute. The others are out of your control, they are the points that the internally-called ode15s decides to compute. If ode15s is visiting a lot of points, it is because your problem requires it due to stiffness, fast changes, or the like.
You say that you have relaxed the tolerances, presumably AbsoluteTolerance, RelativeTolerance, and/or ResidualTolerance. You might also want to set the ReportStatistics option to 'on' to see exactly how ode15s is struggling.
So, sorry, I don't have any good ideas for you. Some problems are just not simple to solve.
Alan Weiss
MATLAB mathematical toolbox documentation
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Ordinary Differential Equations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!