- 2072 Asoj · 5+3 marks
Linear solution techniques; CG algorithm
Short answer
Linear systems are solved by direct methods such as Gauss elimination, LU and Cholesky, which factor the matrix, or by iterative methods such as Jacobi, Gauss-Seidel, SOR and CG, which refine a guess without fill-in. CG minimizes (1/2)x^T A x - b^T x using A-conjugate search directions and converges in at most n steps for symmetric positive definite A.
Explain different solution techniques of linear equations. Write the algorithm for the conjugate gradient method.
Linear system is solved by:
- Direct methods (finite number of steps, exact apart from round-off): Gauss elimination (reduce to upper triangular form, back-substitute), Gauss-Jordan, LU decomposition, Cholesky decomposition for symmetric positive definite , and the matrix inverse. In FEM they use banded or skyline storage.
- Iterative methods (start from a guess and improve): Jacobi, Gauss-Seidel, successive over-relaxation, and the conjugate gradient method. They suit very large sparse systems since the matrix is never changed and no fill-in occurs. Jacobi and Gauss-Seidel need diagonal dominance for convergence; CG needs a symmetric positive definite matrix.
| Direct | Iterative |
|---|---|
| Fixed operation count | Number of iterations depends on tolerance |
| Fill-in within band/skyline | Keeps sparsity |
| Good for many load cases (factor once) | Good for very large systems |
Algorithm of the conjugate gradient method
The conjugate gradient (CG) method solves for a symmetric, positive definite matrix . It is equivalent to minimising the quadratic energy
whose minimum is exactly the solution of . The minimum is searched along directions that are A-conjugate, i.e. for . Each step minimises along one direction without spoiling the earlier ones, so in exact arithmetic the solution is reached in at most steps for an system. The residual is the negative gradient of .
- Choose a starting vector (usually ). Compute the residual and set the first search direction .
- For repeat:
- Step length:
- Update the solution:
- Update the residual:
- Check convergence: stop if tolerance.
- Direction factor:
- New direction:
- The last is the solution.
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- Linear solution techniques; CG two iterations · Computational Techniques in Civil Engineering, chapter 2
- Conjugate gradient method and algorithm · Computational Techniques in Civil Engineering, chapter 2 · asked 2×
- Solution methods of linear equations with examples · Computational Techniques in Civil Engineering, chapter 2
- CG algorithm and its limitations · Computational Techniques in Civil Engineering, chapter 2
- Conjugate gradient three iterations (10,-6,0) · Computational Techniques in Civil Engineering, chapter 2
- CG algorithm; Gauss-Seidel numerical · Computational Techniques in Civil Engineering, chapter 2
All Computational Techniques in Civil Engineering chapter 2 questions →