Math 2.0

Numerical analysis Definition

Adaptive step size

Builds on Numerical methods for ordinary differential equationsLocal truncation error

Definition

Let a one-step method for y′=f(t,y)y' = f(t, y) come with an error estimator. From tnt_n, yny_n and a trial step hh it computes yn+1y_{n+1} and a number errn≥0\mathrm{err}_n \ge 0. This number estimates the norm of the local truncation error of the step, which behaves like Chq+1C h^{q+1} for some integer q≥1q \ge 1. Let tol>0\mathrm{tol} > 0 be a tolerance, 0<ρ<10 < \rho < 1 a safety factor, and 0<αmin⁡<1<αmax⁡0 < \alpha_{\min} < 1 < \alpha_{\max} bounds. Adaptive step size control runs the method with steps chosen as follows.

  1. If errn≤tol\mathrm{err}_n \le \mathrm{tol}, the step is accepted: tn+1=tn+ht_{n+1} = t_n + h, and yn+1y_{n+1} is kept.
  2. If errn>tol\mathrm{err}_n > \mathrm{tol}, the step is rejected and repeated from tnt_n.
  3. In both cases the next trial step is hnew=h⋅min⁡(αmax⁡,max⁡(αmin⁡,  ρ (tolerrn)1/(q+1))).h_{\mathrm{new}} = h \cdot \min\Big(\alpha_{\max}, \max\Big(\alpha_{\min}, \; \rho \, \Big(\frac{\mathrm{tol}}{\mathrm{err}_n}\Big)^{1/(q+1)}\Big)\Big).

Remarks

The formula of clause 3 comes from err≈Chq+1\mathrm{err} \approx C h^{q+1}: the step h′h' with Ch′q+1=tolC h'^{q+1} = \mathrm{tol} is h(tol/err)1/(q+1)h (\mathrm{tol}/\mathrm{err})^{1/(q+1)}, and ρ\rho, αmin⁡\alpha_{\min}, αmax⁡\alpha_{\max} protect against a poor estimate. Example: with an embedded pair of orders 44 and 55 such as the Runge–Kutta–Fehlberg method, errn=∥y^n+1−yn+1∥\mathrm{err}_n = \norm{\hat y_{n+1} - y_{n+1}} and q=4q = 4; if errn=32 tol\mathrm{err}_n = 32\,\mathrm{tol} the step is rejected and, with ρ=0.9\rho = 0.9, retried with hnew=0.9⋅32−1/5h=0.45hh_{\mathrm{new}} = 0.9 \cdot 32^{-1/5} h = 0.45 h. Other estimators use step doubling: compare one step of size hh with two steps of size h/2h/2, as in Richardson extrapolation. Non-example: a schedule fixed in advance, such as hn=2−nh_n = 2^{-n}, varies the step but is not adaptive, since it ignores the error estimate. The tolerance controls the local error per step; the global error is usually of a similar size but is not guaranteed to be below tol\mathrm{tol}.

Reading path

To understand this page from the ground up, read these 3 pages in order. The foundations come first.

Show the path as a graph
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Local truncation error concept
  2. Numerical methods for ordinary differential equations concept
  3. Adaptive step size definition

Further reading

  1. Web https://en.wikipedia.org/wiki/Adaptive_step_size
About this page
TagF7H4H711MY
URIm2://F7H4H711MY
Kinddefinition
WritingW0 stub
MSC65L50, 65L05, 65L06
DefinesAdaptive step size
UsesNumerical methods for ordinary differential equations, Local truncation error

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)
  • a source with a locator (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.