Error tolerance in ODE45

조회 수: 12 (최근 30일)
Buttercup12
Buttercup12 2022년 2월 10일
댓글: Steven Lord 2022년 2월 11일
What's the role of the error tolerance in ode45? What does it do?

채택된 답변

Steven Lord
Steven Lord 2022년 2월 10일
Are you referring to the options in the Error Control option group in the table on this documentation page? If you click on the name of the option you will be taken to the section of the odeset documentation page discussing that option. After reading the sections on RelTol, AbsTol, and NormControl do you have a specific question about one or all of those options?
You might also find pages 11-13 of the paper "The MATLAB ODE Suite" included in the PDF documentation and the chapter on ODEs in Cleve Moler's Numerical Computing with MATLAB informative.
  댓글 수: 2
Buttercup12
Buttercup12 2022년 2월 10일
Your answer helped to clear some things up, but I got another follow-up question. From one of the sources you gave me I found this:
"To be successful, the step must have acceptable error, as determined by both the relative and absolute error tolerances..."
What happes if the step doesn't have an acceptable error? Is the step adjusted?
Steven Lord
Steven Lord 2022년 2월 11일
Yes. ode45 uses an adaptive Runge-Kutta method. If the estimated error is not below tolerance the ODE solver will adapt by rejecting the step it just tried and trying a smaller step.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by