Lab 14 · Lecture 14 · Iterative Methods: Jacobi, Gauss–Seidel and SOR
Iterative Methods Lab
Watch Jacobi, Gauss–Seidel and SOR converge (or diverge), measure the spectral radius, and tune ω on the heat plate.
Type a 2×2 system as "a₁₁ a₁₂ b₁; a₂₁ a₂₂ b₂". Choose the method and step through. The note under the table gives diagonal dominance and the spectral radius ρ.
Jacobi, Gauss–Seidel and SOR on an N × N grid. Change N, the edge temperatures and ω. Which ω gives the fewest sweeps?
Jacobi and Gauss–Seidel
Try this
SOR on the plate
Try this
Q1 Distinguish the Jacobi and Gauss–Seidel methods.
Both solve equation for . Jacobi uses only values from the previous iteration (two vectors, easy to parallelise); Gauss–Seidel uses each new value as soon as it is computed (one vector, usually about twice as fast).
Q2 State a sufficient condition for convergence of the Jacobi and Gauss–Seidel methods.
Strict diagonal dominance: for every row. More generally, the iteration converges for every start iff the spectral radius of the iteration matrix is less than 1.
Q3 Solve , , by Gauss–Seidel.
From 0: , , , then . Solution .
Q4 Find the spectral radius of for .
, , . For Gauss–Seidel .
Q5 What is SOR and what does ω do?
Successive over-relaxation: , where is the Gauss–Seidel value. is Gauss–Seidel; over-relaxes and, with a good choice (for the plate ), reduces the number of sweeps dramatically. It diverges for .