ArticleslgStudy

biology

Generalized minimal residual method

Generalized minimal residual method is a biology topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Generalized minimal residual method rather than just read about it. In short: In mathematics, the generalized minimal residual method (GMRES) is an iterative method for the numerical solution of an indefinite nonsymmetric system of linear equations. The method approximates the solution by the vector in a Krylov subspace with minimal residual.

Key takeaways

  • Generalized minimal residual method belongs to biology; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Generalized minimal residual method to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Generalized minimal residual method from memory before moving on to harder problems.

Reference excerpt

In mathematics, the generalized minimal residual method (GMRES) is an iterative method for the numerical solution of an indefinite nonsymmetric system of linear equations. The method approximates the solution by the vector in a Krylov subspace with minimal residual. The Arnoldi iteration is used to find this vector. The GMRES method was developed by Yousef Saad and Martin H. Schultz in 1986. It is a generalization and improvement of the MINRES method due to Paige and Saunders in 1975. The MINRES method requires the matrix to be symmetric, but has the advantage that it only requires handling of three vectors. GMRES is a special case of the DIIS method developed by Peter Pulay in 1980. DIIS is applicable to non-linear systems.

The method Denote the Euclidean norm of any vector v by ‖v‖. Denote the (square) system of linear equations to be solved by Ax=b. The matrix A is assumed to be invertible of size m-by-m. Furthermore, it is assumed that b is normalized, i.e., that ‖b‖=1. The n-th Krylov subspace for this problem is Kn=Kn(A,r0)=span⁡{r0,Ar0,A2r0,…,An−1r0}. where r0=b−Ax0 is the initial residual given an initial guess x0≠0. Clearly r0=b if x0=0. GMRES approximates the exact solution of Ax=b by the vector xn∈x0+Kn that minimizes the Euclidean norm of the residual rn=b−Axn. The vectors r0,Ar0,…An−1r0 might be close to linearly dependent, so instead of this basis, the Arnoldi iteration is used to find orthonormal vectors q1,q2,…,qn which form a basis for Kn. In particular, q1=‖r0‖2−1r0. Therefore, the vector xn∈x0+Kn can be written as xn=x0+Qnyn with yn∈ℝn, where Qn is the m-by-n matrix formed by q1,…,qn. In other words, finding the n-th approximation of the solution (i.e., xn) is reduced to finding the vector yn, which is determined via minimizing the residue as described below. The Arnoldi process also constructs H~n, an (n+1)-by-n upper Hessenberg matrix which satisfies AQn=Qn+1H~n an equality which is used to simplify the calculation of yn (see § Solving the least squares problem). Note that, for symmetric matrices, a symmetric tri-diagonal matrix is actually achieved, resulting in the MINRES method. Because columns of Qn are orthonormal, we have‖rn‖=‖b−Axn‖=‖b−A(x0+Qnyn)‖=‖r0−AQnyn‖=‖βq1−AQnyn‖=‖βq1−Qn+1H~nyn‖=‖Qn+1(βe1−H~nyn)‖=‖βe1−H~nyn‖ where e1=(1,0,0,…,0)T is the first vector in the standard basis of ℝn+1, andβ=‖r0‖, r0 being the first trial residual vector (usually b). Hence, xn can be found by minimizing the Euclidean norm of the residualrn=H~nyn−βe1. This is a linear least squares problem of size n. This yields the GMRES method. On the n-th iteration:

calculate qn with the Arnoldi method; find the yn which minimizes ‖rn‖; compute xn=x0+Qnyn; repeat if the residual is not yet small enough. At every iteration, a matrix-vector product Aqn must be computed. This costs about 2m2 floating-point operations for general dense matrices of size m, but the cost can decrease to O(m) for sparse matrices. In addition to the matrix-vector product, O(nm) floating-point operations must be computed at the n -th iteration.

Convergence The nth iterate minimizes the residual in the Krylov subspace Kn. Since every subspace is contained in the next subspace, the residual does not increase. After m iterations, where m is the size of the matrix A, the Krylov space Km is the whole of Rm and hence the GMRES method arrives at the exact solution. However, the idea is that after a small number of iterations (relative to m), the vector xn is already a good approximation to the exact solution. This does not happen in general. Indeed, a theorem of Greenbaum, Pták and Strakoš states that for every nonincreasing sequence a1, ..., am−1, am = 0, one can find a matrix A such that the ‖rn‖ = an for all n, where rn is the residual defined above. In particular, it is possible to find a matrix for which the residual stays constant for m − 1 iterations, and only drops to zero at the last iteration. In practice, though, GMRES often performs well. This can be proven in specific situations. If the symmetric part of A, that is (AT+A)/2, is positive definite, then ‖rn‖≤(1−λmin2(1/2(AT+A))λmax(ATA))n/2‖r0‖, where λmin(M) and λmax(M) denote the smallest and largest eigenvalue of the matrix M, respectively. If A is symmetric and positive definite, then we even have ‖rn‖≤(κ2(A)2−1κ2(A)2)n/2‖r0‖. where κ2(A) denotes the condition number of A in the Euclidean norm. In the general case, where A is not positive definite, we have ‖rn‖‖b‖≤infp∈Pn‖p(A)‖≤κ2(V)infp∈Pnmaxλ∈σ(A)|p(λ)|, where Pn denotes the set of polynomials of degree at most n with p(0) = 1, V is the matrix appearing in the spectral decomposition of A, and σ(A) is the spectrum of A. Roughly speaking, this says that fast convergence occurs when the eigenvalues of A are clustered away from the origin and A is not too far from normality. All these inequalities bound only the residuals instead of the actual error, that is, the distance between the current iterate xn and the exact solution.

Extensions of the method Like other iterative methods, GMRES is usually combined with a preconditioning method in order to speed up convergence. The cost of the iterations grow as O(n2), where n is the iteration number. Therefore, the method is sometimes restarted after a number, say k, of iterations, with xk as initial guess. The resulting method is called GMRES(k) or Restarted GMRES. For non-positive definite matrices, this method may suffer from stagnation in convergence as the restarted subspace is often close to the earlier subspace. The shortcomings of GMRES and restarted GMRES are addressed by the recycling of Krylov subspace in the GCRO type methods such as GCROT and GCRODR. Recycling of Krylov subspaces in GMRES can also speed up convergence when sequences of linear systems need to be solved.

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Generalized minimal residual method

Start with the simplest possible case. Write down what Generalized minimal residual method claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In biology, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Generalized minimal residual method before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Generalized minimal residual method ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Generalized minimal residual method

In research
Generalized minimal residual method appears in biology research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Generalized minimal residual method in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Generalized minimal residual method is common in secondary-school and first-year university syllabi. It links to neighbouring topics Numerical linear algebra, so understanding it makes those chapters shorter.
In everyday life
Look for Generalized minimal residual method outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Generalized minimal residual method” →

How to study Generalized minimal residual method in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Generalized minimal residual method means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Generalized minimal residual method out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Generalized minimal residual method in simple terms?

In mathematics, the generalized minimal residual method (GMRES) is an iterative method for the numerical solution of an indefinite nonsymmetric system of linear equations. The method approximates the solution by the vector in a Krylov subspace with minimal residual.

Why does Generalized minimal residual method matter?

Because it connects several biology ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Generalized minimal residual method?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Generalized minimal residual method.

Tags

  • Numerical linear algebra

Keep exploring