Ax=b ์์ A์ ๋๊ฐ ํ๋ ฌ์ 0์ด ํฌํจ๋์ด ์์ง ์์ ๊ฒฝ์ฐ, ํด x๋ฅผ ๊ณ์ฐํ๋ ๋ฐฉ๋ฒ์๋ ํฌ๊ฒ ์ง์ ๋ฒ(direct method)์ ๋ฐ๋ณต๋ฒ(iterative method)์ด ์๋ค. ์ ์๋ ๋จ ํ๋ฒ์ ํ๋ ฌ ๊ณ์ฐ์ผ๋ก ์ ํํ ํด๋ฅผ ๊ตฌํ๋ ๋ฐ๋ฉด, ํ์๋ ํ๋ ฌ ๊ณ์ฐ์ ๋ฐ๋ณตํ์ฌ ๊ทผ์ฌํด(approximate solution)๋ฅผ ๊ตฌํ๋ ๊ฒ์ด๋ค. ํ๋ ฌ์ ํฌ๊ธฐ๊ฐ ์๋ค๋ฉด ์ ์๊ฐ ํจ๊ณผ์ ์ด์ง๋ง ํ๋ ฌ์ ํฌ๊ธฐ๊ฐ ์ปค์ง๋ฉด ํ์๊ฐ ํจ๊ณผ์ ์ด๋ค.
์ง์ ๋ฒ์ ๊ฐ์ฅ ๋ํ์ ์ธ ๋ฐฉ๋ฒ์ผ๋ก ๊ฐ์ฐ์ค ์๊ฑฐ๋ฒ(Gauss elimination method)์ ๋ค ์๊ฐ ์๋ค๋ฉด, ๋ฐ๋ณต๋ฒ์ผ๋ก๋ ์ผ์ฝ๋น ๊ธฐ๋ฒ(Jacobi iteration method)์ ๋ค ์ ์๋ค.
Jacobi Iteration
์ผ์ฝ๋น ๋ฐฉ๋ฒ์ ๋ ๊ฐ์ง์ ๊ฐ์ ์ผ๋ก๋ถํฐ ์ถ๋ฐํ๋ค. (1) ํด๋น ๋ฐฉ์ ์์ด ์ ์ผํ ํด(unique solution)๋ฅผ ๊ฐ๊ณ ์์ผ๋ฉฐ, (2) ๊ณ์ ํ๋ ฌ(coefficient matrix) A์ ๋๊ฐ ์ฑ๋ถ์ด 0์ ๊ฐ๊ณ ์์ง ์๋ค๋ ๊ฒ์ด๋ค.
์ด ๊ธฐ๋ฒ์ ๊ธฐ๋ณธ๊ฐ๋ ์ ํ๋ ฌ A๋ฅผ ๋๊ฐ ์ฑ๋ถ D์ ๊ทธ ๋๋จธ์ง R๋ก ๋ถํดํ์ฌ Dxk+1 = b-Rxk ํํ์ ๋ฐ๋ณต์์ผ๋ก ์ ํํ์ฌ ํด x๋ฅผ ๋ฐ๋ณต๊ณ์ฐ์ ํตํด ๊ตฌํ๋ ๊ฒ์ด๋ค. ๋ฐ๋ณต๊ณ์ฐ์ ์ด๊ธฐ์ x๋ฅผ ์์์ ๊ฐ์ผ๋ก ์ถ์ ํ์ฌ ๋ฐ๋ณต์์ ์ฐ๋ณ์ ๋์ ํ์ฌ ์ข๋ณ์ x๋ฅผ ๊ตฌํ๊ณ , ์ด ๊ฐ์ ๋ค์ ๋ฐ๋ณต์์ ์ฐ๋ณ์ ๋์ ํ์ฌ ์๋ก์ด x๋ฅผ ๊ตฌํ๋ ๋ฐ๋ณต๊ณผ์ ์ ์ํํ๋ค. ๋ฐ๋ณต๊ณ์ฐ์ x๊ฐ ์ํ๋ ํ์ฉ์ค์ฐจ(allowable error) ๋ฒ์์ ๋ค์ด์ค๊ฒ ๋๋ฉด ๋ฉ์ถ๊ฒ ๋๋ค.
์ผ์ฝ๋น ๊ธฐ๋ฒ์ ๊ฐ์ฅ ๊ธฐ๋ณธ์ ์ธ ๋ฐ๋ณต๋ฒ์ผ๋ก์จ, ๋ฐ๋ณต๊ณ์ฐ์ ํ์๋ฅผ ์ค์ฌ ์ ์ํ๊ฒ ๊ณ์ฐํ๊ธฐ ์ํด ์ฌ๋ฌ ๊ฐ์ง ์ ํ์ ๋ณํ๋ ๋ฐ๋ณต๋ฒ๋ค์ด ์๊ฐ๋์ด ์๋ค. ๊ฐ์ฅ ๋ํ์ ์ธ ๋ณํ๋ ๋ฐ๋ณต๋ฒ์ผ๋ก ๊ฐ์ฐ์ค-์์ด๋ธ๋ฒ(Gauss-Seidel Method)์ด ์๋ค.
Gauss-Seidel Method
์ผ์ฝ๋น ๊ธฐ๋ฒ์ n๋ฒ์งธ ์ถ์ (nth approximation)์์ ์ป์ด์ง ๊ฐ xi์ ๊ฐ์ด (n+1)๋ฒ์งธ ์ถ์ ์ ํ๊ธฐ ์ ๊น์ง ๊ทธ๋๋ก ์ ์ฅ๋์ด ์๋ค. ๊ทธ๋ฌ๋ ๊ฐ์ฐ์ค-์์ด๋ธ ๊ธฐ๋ฒ์ ๊ฒฝ์ฐ์๋ ์๋ก์ด xi๊ฐ ์ป์ด์ง์๋ง์ ๋ค์ ๋ณ์์ ๋ํ ๊ณ์ฐ์ ์๋ก ์ป์ด์ง ๊ฐ์ ๋ฃ์ด ๊ณ์ฐํ๋ค. ๊ฒฐ๊ณผ์ ์ผ๋ก, ํด์ ์๋ ด ์๋๊ฐ ๋ ๋นจ๋ผ์ง๊ฒ ๋๋ค.
๊ทธ๋ฌ๋ ์์ ๋ ๊ฐ์ง ๋ฐฉ๋ฒ์ด ์ด๋ ๋ฐฉ์ ์์๋ ์ฌ์ฉ๋ ์ ์๋ ๊ฒ์ ์๋๋ค. Divergence๊ฐ 0์ธ(์๋ ดํ๋) ๋ฐฉ์ ์์๋ง ์ฌ์ฉ์ด ๊ฐ๋ฅํ๋ค. ๊ณ์ ํ๋ ฌ A๊ฐ ๋๊ฐ์ ์ง๋ฐฐ ํ๋ ฌ(strictly diagonally dominant matrix)์ผ ๋์๋ง ์ ๋๊ฐ์ง ๋ฐฉ๋ฒ์์ ์๋ ดํด๊ฐ ๋์จ๋ค. ์ฆ, ๊ณ์ ํ๋ ฌ์ ๋๊ฐ ์ฑ๋ถ์ ์ ๋๊ฐ์ด ๊ฐ์ ํ์ ๋ชจ๋ ์ฑ๋ถ์ ์ ๋๊ฐ์ ํฉ๋ณด๋ค ํด ๋๋ง ์๋ ดํ๋ค.
An (nxn) matrix A is strictly diagonally dominant if the absolute value of each entry on the main diagonal is greater than the sum of the absolute values of the other entries in the same row. That is,
์์ ๋ฐ๋ผ์ ์ ํ์ฐ๋ฆฝ๋ฐฉ์ ์์์ ๊ณ์ ํ๋ ฌ์ด ๋๊ฐ์ ์ง๋ฐฐ ํ๋ ฌ์ผ ๊ฒฝ์ฐ ์ด๋ ํ ์ด๊ธฐ๊ฐ์ ๋ํด์๋ ์ผ์ฝ๋น์ ๊ฐ์ฐ์ค-์์ด๋ธ๋ฒ์ผ๋ก ์๋ ดํด๋ฅผ ๊ตฌํ ์ ์๋ค๋ ์๋์ theorem์ด ์ ๋ฆฌ๋๋ค. ๊ทธ๋ฌ๋ ์ด๋ ์ถฉ๋ถ์กฐ๊ฑด์ด์ง ํ์์กฐ๊ฑด์ด ์๋๋ค. ๋ฐ๋์ ๋๊ฐ์ ์ง๋ฐฐ ํ๋ ฌ์ด ์๋์ด๋ ํน์ ์ด๊ธฐ๊ฐ์ ๋ํ์ฌ ์๋ ดํด๊ฐ ๋์ฌ ์ ์๋ค.
If A is strictly diagonally dominant, then the system of linear equations given by Ax=b has a unique solution to which the Jacobi method and the Gauss-Seidel method will converge for any initial approximation.
http://college.cengage.com/mathematics/larson/elementary_linear/5e/students/ch08-10/chap_10_2.pdf
'ํ๋ก๊ทธ๋๋ฐ' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
ํ์ค ํ ํ๋ฆฟ ๋ผ์ด๋ธ๋ฌ๋ฆฌ STL; Standard Template Library (0) | 2015.03.18 |
---|---|
๋ฆฌ๋ ์ค ๋ช ๋ น์ด Linux Commands (0) | 2015.03.16 |
int main ( int argc, char ** argv ) (0) | 2015.03.09 |
์ ์ฒ๋ฆฌ ์ง์์ Preprocessor Directive (0) | 2015.03.09 |
[tbd] Jos Stam, Stable Fluids (1999) (0) | 2015.03.06 |