Iterative method
In computational mathematics, an iterative method is a mathematical procedure that uses an initial value to generate a sequence of improving approximate solutions for a class of problems, in which the i-th approximation (called an "iterate") is derived from the previous ones.
A specific implementation with termination criteria for a given iterative method like gradient descent, hill climbing, Newton's method, or quasi-Newton methods like BFGS, is an algorithm of an iterative method or a method of successive approximation. An iterative method is called convergent if the corresponding sequence converges for given initial approximations. A mathematically rigorous convergence analysis of an iterative method is usually performed; however, heuristic-based iterative methods are also common.
In contrast, direct methods attempt to solve the problem by a finite sequence of operations. In the absence of rounding errors, direct methods would deliver an exact solution (for example, solving a linear system of equations by Gaussian elimination). Iterative methods are often the only choice for nonlinear equations. However, iterative methods are often useful even for linear problems involving many variables (sometimes on the order of millions), where direct methods would be prohibitively expensive (and in some cases impossible) even with the best available computing power.[1]
Attractive fixed points
ถ้าสมการสามารถเขียนให้อยู่ในรูปf ( x ) = xและคำตอบxเป็นจุดคงที่ ดึงดูด ของฟังก์ชันfแล้ว เราอาจเริ่มต้นด้วยจุดx₁ในแอ่งดึงดูดของxและให้xₙ⁺₁ = f ( xₙ สำหรับn 1 และลำดับ { xₙ n จะลู่เข้าสู่คำตอบxโดยที่xₙ⁺₁คือ ค่าประมาณหรือการ ซ้ำ ครั้งที่ n x และ xₙ⁺₁ คือค่าประมาณหรือการวนซ้ำ + ถัดไปของ x หรืออีกทางหนึ่ง มักใช้ตัวยกในวงเล็บในวิธีการเชิงตัวเลข เพื่อไม่ให้รบกวนตัวห้อยที่มีความหมายอื่น (ตัวอย่างเช่นx ( n +1) = f ( x ( n ) )) ถ้าฟังก์ชันfสามารถหาอนุพันธ์ได้อย่างต่อเนื่องเงื่อนไขที่เพียงพอสำหรับการลู่เข้าคือรัศมีสเปกตรัมของอนุพันธ์มีขอบเขตจำกัดอย่างเคร่งครัดด้วยหนึ่งในบริเวณใกล้เคียงจุดคงที่ ถ้าเงื่อนไขนี้เป็นจริงที่จุดคงที่ แสดงว่าต้องมีบริเวณใกล้เคียงที่เล็กพอ (แอ่งดึงดูด) อยู่[ 2 ]
ระบบเชิงเส้น
ในกรณีของระบบสมการเชิงเส้นวิธีการวนซ้ำหลักสองประเภท ได้แก่วิธีการวนซ้ำแบบอยู่กับที่ และ วิธีการวนซ้ำแบบ Krylov ซึ่ง เป็นวิธีการ ทั่วไปมากกว่า
วิธีการวนซ้ำแบบอยู่กับที่
การแนะนำ
วิธีการวนซ้ำแบบอยู่กับที่จะแก้ระบบสมการเชิงเส้นโดยใช้ตัวดำเนินการประมาณค่าของตัวดำเนินการเดิม และจากค่าความคลาดเคลื่อนในผลลัพธ์ ( ค่าตกค้าง ) จะสร้าง "สมการแก้ไข" ซึ่งกระบวนการนี้จะถูกทำซ้ำ แม้ว่าวิธีการเหล่านี้จะง่ายต่อการคิดค้น นำไปใช้ และวิเคราะห์ แต่การลู่เข้าจะรับประกันได้เฉพาะกับเมทริกซ์บางประเภทเท่านั้น
คำนิยาม
วิธีการวนซ้ำถูกกำหนดโดย และสำหรับระบบเชิงเส้นที่กำหนดพร้อมวิธีแก้ปัญหาที่แม่นยำข้อผิดพลาดโดย วิธีการวนซ้ำเรียกว่าเชิงเส้นถ้ามีเมทริกซ์อยู่โดยที่ และเมทริกซ์นี้เรียกว่าเมทริกซ์การวนซ้ำวิธีการวนซ้ำโดยใช้เมทริกซ์การวนซ้ำที่กำหนดให้ is called convergent if the following holds
An important theorem states that for a given iterative method and its iteration matrix it is convergent if and only if its spectral radius is smaller than unity, that is,
The basic iterative methods work by splitting the matrix into and here the matrix should be easily invertible. The iterative methods are now defined as or, equivalently, From this follows that the iteration matrix is given by
Examples
Basic examples of stationary iterative methods use a splitting of the matrix such as where is only the diagonal part of , and is the strict lower triangular part of . Respectively, is the strict upper triangular part of .
- Richardson method:
- Jacobi method:
- Damped Jacobi method:
- Gauss–Seidel method:
- Successive over-relaxation method (SOR):
- Symmetric successive over-relaxation (SSOR):
Linear stationary iterative methods are also called relaxation methods.
Krylov subspace methods
Krylov subspace methods[3] work by forming a basis of the sequence of successive matrix powers times the initial residual (the Krylov sequence). The approximations to the solution are then formed by minimizing the residual over the subspace formed. The prototypical method in this class is the conjugate gradient method (CG) which assumes that the system matrix is symmetricpositive-definite. For symmetric (and possibly indefinite) one works with the minimal residual method (MINRES). In the case of non-symmetric matrices, methods such as the generalized minimal residual method (GMRES) and the biconjugate gradient method (BiCG) have been derived.
Convergence of Krylov subspace methods
Since these methods form a basis, it is evident that the method converges in N iterations, where N is the system size. However, in the presence of rounding errors this statement does not hold; moreover, in practice N can be very large, and the iterative process reaches sufficient accuracy already far earlier. The analysis of these methods is hard, depending on a complicated function of the spectrum of the operator.
Preconditioners
The approximating operator that appears in stationary iterative methods can also be incorporated in Krylov subspace methods such as GMRES (alternatively, preconditioned Krylov methods can be considered as accelerations of stationary iterative methods), where they become transformations of the original operator to a presumably better conditioned one. The construction of preconditioners is a large research area.
Methods of successive approximation
Mathematical methods relating to successive approximation include:
- Babylonian method, for finding square roots of numbers[4]
- Fixed-point iteration[5]
- Means of finding zeros of functions:
- Differential-equation matters:
- Picard–Lindelöf theorem, on existence of solutions of differential equations
- Runge–Kutta methods, for numerical solution of differential equations
History
Jamshīd al-Kāshī used iterative methods to calculate the sine of 1° and π in The Treatise of Chord and Sine to high precision. An early iterative method for solving a linear system appeared in a letter of Gauss to a student of his. He proposed solving a 4-by-4 system of equations by repeatedly solving the component in which the residual was the largest .
The theory of stationary iterative methods was solidly established with the work of D.M. Young starting in the 1950s. The conjugate gradient method was also invented in the 1950s, with independent developments by Cornelius Lanczos, Magnus Hestenes and Eduard Stiefel, but its nature and applicability were misunderstood at the time. Only in the 1970s was it realized that conjugacy based methods work very well for partial differential equations, especially the elliptic type.
See also
External links
- Templates for the Solution of Linear Systems
- Y. Saad: Iterative Methods for Sparse Linear Systems, 1st edition, PWS 1996