1 / 27

Consider

Preconditioning – Basic Principles. Consider. Basic Idea: is to use Krylov subspace method (CG, GMRES, MINRES …) on a modified system such as. The matrix need not be formed explicitly; only need to solve whenever needed.

alda
Télécharger la présentation

Consider

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Preconditioning – Basic Principles Consider Basic Idea: is to use Krylov subspace method (CG, GMRES, MINRES …) on a modified system such as The matrix need not be formed explicitly; only need to solve whenever needed. With: requirement is that it should be easy to solve for an arbitrary vector z.

  2. Left, Right, and Symmetric Preconditioners Left preconditioning : Right preconditioning : Symmetric preconditioning :

  3. Left, Right, and Symmetric Preconditioners Symmetric preconditioning : No loss of symmetry The matrix in brackets is symmetric positive definite. ( so we can use CG) The matrix in brackets is similar to It is enough to examine the eigenvalues of the nonsymmetric matrix to investigate convergence.

  4. Example Example: CG iterations converges slowly without preconditioner. This is better than direct method

  5. Example Example: Preconditioner: No precond: after 40 iterations, achieves about 5-digit residual reduction. PCG: after 30 iterations, achieves 15-digits

  6. Practical Implementations Consider CG why No…NO?? Loss of sparsity, matrix multiplication, finding inverse

  7. Practical Implementations CG PCG-ver1

  8. Practical Implementations PCG(ver1) PCG(ver2)

  9. Practical Implementations PCG(ver2) PCG

  10. Good Preconditioner textbook The preconditioners used in practice are sometimes as simple as this one (diagonal) , but they are often far more complicated. • Good Preconditioner M: • Few number of iterations (fast convergence) • 2) Cheap to solve the system Mx = y

  11. Five items Item 1: (minimal polynomial with small degree) DEF: p(x) is the minimal polynomial of the nxn matrix A if p(x) is the monic polynomial of least degree such that  p(A)=0.  Example: Characteristic polynomial A = 2.0647 -0.2159 -0.0788 -0.8307 -0.9352 -3.8098 1.3290 -1.0141 -2.8977 -3.2940 4.6193 0.9699 3.3051 4.1618 4.6816 -1.2266 -0.2893 -0.1088 1.9143 -1.2225 1.5148 0.5460 0.2996 1.2249 4.3868 minimal polynomial

  12. Five items Item 1: (minimal polynomial with small degree) DEF: p(x) is the minimal polynomial of the nxn matrix A if p(x) is the monic polynomial of least degree such that  p(A)=0.  Example: minimal polynomial A = 2.0647 -0.2159 -0.0788 -0.8307 -0.9352 -3.8098 1.3290 -1.0141 -2.8977 -3.2940 4.6193 0.9699 3.3051 4.1618 4.6816 -1.2266 -0.2893 -0.1088 1.9143 -1.2225 1.5148 0.5460 0.2996 1.2249 4.3868 WHY?

  13. Five items Item 2: (A with few distinct eigenvalues) Note and why: Item 3: (small conditionnumber) CG Note: it is only one way ( large condition number ) Example: GMRES

  14. Five items Item 4: (residual and error) The inequality implies that condition number provide an indication of the connection between the residual vector and the accuracy of the approximation In general, the relative error is bounded by the product of condition number with the relative residual

  15. Five items Item 5: (A with a  good clustering of the eigenvalues) Textbook: A preconditioner M is good if M^(-1)A is not too far from normal and its eigenvalues are clustered.

  16. Five items Item 6: (M is close enough to A) Textbook: If the eigenvalues of are close to 1 and is small, then any of the iterations we have discussed can be expected to converge quickly.

  17. Survey of Preconditioners Textbook: The preconditioners used in practice are sometimes as simple as this one (diag(A)), but they are often far more complicated. 1) Diagonal Scaling: Choose the preconditioner to be M = diag(c) where c is a suitable vector with nonzero entries. Problem:

  18. Survey of Preconditioners 2) Incomplete Cholesky Factorization: (IC) Sparse, SPD Incomplete Cholesky factorization Incomplete Cholesky conjugate Gradient Method 3) Incomplete LU Factorization: (ILU) nonsymmetric Incomplete LU factorization Use GMRES with M as preconditioner

  19. Survey of Preconditioners 4) Local Approximation The matrix A represents coupling between elements both near and far from one another. It may be worth considering M analogous to A but with the longer-range interactions omitted – a short-range approximation A. In the simplest cases of this kind, M may consist simply of a few of the diagonals of A near the main diagonal, making this a generalization of the idea of a diagonal preconditioner.

  20. Survey of Preconditioners 5) Block Preconditioners This is another kind of local approximation, in that local effects within certain components are considered while connections to other components are ignored.

  21. Survey of Preconditioners 7) Constant-coefficient approximation PDE with variable coefficient Use the discritezed matrix as a preconditioner for the first problem 8) symmetric approximation If a differential equation is not self-adjoint but is close in some sense to a self-adjoint equation that can be solved more easily, then the latter may sometimes sevre as a preconditioner

  22. Survey of Preconditioners 6) Domain Decomposition In which solvers for certain subdomains of a problem are composed in flexible ways to form preconditioners for the global problem. This method combine mathematical power with natural paralleizability

  23. Survey of Preconditioners 6) Domain Decomposition In which solvers for certain subdomains of a problem are composed in flexible ways to form preconditioners for the global problem. This method combine mathematical power with natural paralleizability Note: the problem can be parallized

  24. Survey of Preconditioners 7) Low-order discertization Often a differential or integral equation is discretized by a higher-order method. Bringing a gain in accuracy but making the discretization stencils bigger and the matrix less sparse. A lower-order approximation of the same problem, with its sparser matrix, may be an effective preconditioner. 1 1 -4 1 1 5-point formula. 9-point formula.

  25. Survey of Preconditioners 8) saddle-point system 9) Generalized saddle-point system

  26. Survey of Preconditioners 10) Polynomial preconditioner

  27. Survey of Preconditioners 11) Splitting Many applications involve combinations of physical effects, such as the diffusion and convection that combine tp make up the Navier-Stokes equations of fluid mechanics. Example: Example: Example: Laplacian in two or three dimensions is composed of analogous operators in each of the dimensions separately. This idea may form the basis of a preconditioner.

More Related