International
Tables for Crystallography Volume F Crystallography of biological macromolecules Edited by M. G. Rossmann and E. Arnold © International Union of Crystallography 2006 |
International Tables for Crystallography (2006). Vol. F. ch. 15.1, p. 322
Section 15.1.5.2.1. The conjugate-gradient method
a
Division of Basic Sciences, Fred Hutchinson Cancer Research Center, 1100 Fairview Ave N., Seattle, WA 90109, USA,bDepartment of Chemistry, University of York, York YO1 5DD, England, and cDepartment of Physics, University of York, York YO1 5DD, England |
The conjugate-gradient method does not require the inversion of the normal matrix, and therefore the solution to a large system of linear equations can be achieved very quickly.
Starting from a trial solution to equations (15.1.5.4), such as a null vector,
the initial residual is
and the initial search step is
The iterative process is as follows. The new shift to the density is where
and
The new residual is
where
The next search step which conjugates with the residual is
where
The process is iterated by increasing k until convergence is reached, when
The number of iterations required for an exact solution is equal to the number of unknowns, because the search vector at each step is orthogonal with all the previous steps. However, a very satisfactory solution can normally be reached after very few iterations. This makes the conjugate-gradient method a very efficient and fast procedure for solving a system of equations. Note that the normal matrix never appears explicitly, although it is implicit in (15.1.5.10) and (15.1.5.16)
. The inversion of the normal matrix and matrix multiplication is completely avoided. Most of the calculation comes from the formation of the matrix-vector products in (15.1.5.10)
, (15.1.5.14)
, and (15.1.5.16)
. These can be expressed as convolutions and can be performed using FFTs, thus saving considerably more time.
The solution to at the end of conjugate-gradient iteration is substituted into equation (15.1.5.6)
to get a new solution for
. The solution to the system of nonlinear equations (15.1.5.3)
is obtained when the Newton–Raphson iteration has reached convergence.