Introduction
Quote
A poor choice of basis functions can cause the matrix H in (7.3) to be ill-conditioned for large order polynomials. In order to diagonalize H and ensure that it is well-conditioned matrix we use Legendre polynomials as basis functions for the krth derivatives of our positions.
D. W. Mellinger, โTrajectory Generation and Control for Quadrotors.โ
Thesis ๋ฅผ ์ ๋ฆฌํ๋ฉฐ ์ฝ๋ ์ค optimization-based ๊ฒฝ๋ก ์์ฑ์์ ์ข ์ข ๋ฑ์ฅํ๋ ill-conditioned matrix ๊ฐ ๋ฌด์์ธ์ง ์์๋ณด๊ณ ์ ํ๋ค.
์ ์ธ์ฉํ ๋ ผ๋ฌธ์์ QP ์์์์์ hessian matrix ๊ฐ ์ฝ๊ฒ ill-conditioned ์ผ ์ ์๋ค๊ณ ํ๋ค.
ill-posed, well-posed, ill-conditioned, well-conditioned matrix(or problem)
well-posed ๋ ํด๊ฐ ์กด์ฌํ๋ฉฐ ์ ์ผํ๊ฒ ๊ฒฐ์ ๋๋ ๊ฒ์ ์๋ฏธํ๊ณ , ๋ฐ์ดํฐ(matrix entity or )๊ฐ ์ฐ์์ ์ผ๋ก ๋ณํ ๋, ํด๋ ์ฐ์์ ์ผ๋ก ๋ณํ๋ ๊ฒ์ ์๋ฏธํ๋ค.
์์ ๊ฐ invertible ํ๋ค๋ฉด ํด๋ฅผ ์ฝ๊ฒ ๊ตฌํ ์ ์์ผ๋ฏ๋ก well-posed ๋ผ ํ๋ค.
ํ์ง๋ง ํน์ ์ ์ฝ๊ฐ์ ๋ณํ๋ง์ผ๋ก ํด๊ฐ ํฐ ๋ณํ๋ฅผ ๋ณด์ผ ์ ์๋ค. ์ด๋ฌํ ๊ฒฝ์ฐ์๋ ์ฌ์ฉํ ์์นํด์์ ๋ฐฉ๋ฒ์ด๋ noise ๋ฑ์ ์ํฅ์ผ๋ก ํด๋ฅผ ์ฝ๊ฒ ๊ตฌํ ์ ์๊ฒ ๋ ์ ์๋ค.
์ด๋ฌํ ๋ฏผ๊ฐ๋๋ฅผ ์ ๋์ ์ธ scalar ๋ก ๋ํ๋ธ ๊ฒ์ด condition number ๋ผ๊ณ ํ๋ค.
๋ฐ๋ผ์ system matrix ์ condition number ๊ฐ ์์ ๊ฒฝ์ฐ well-conditioned ๋ผ๊ณ ํ๋ค. ๋ฐ๋๋ก condition number ๊ฐ ์ง๋์น๊ฒ ํฐ ๊ฒฝ์ฐ, ill-conditioned ๋ผ๊ณ ํ๋ค.
์ฐ๋ฆฌ๋ condition number ๊ฐ โ์ ํโํ ๊ฒฝ์ฐ์๋ well-posed ๋ผ๊ณ ํ๋ค.
ill-posed ๋ ๋ฐ๋๋ก condition number ๊ฐ โ๋ฌดํโํ ๊ฒฝ์ฐ์ด๋ค. ๊ฐ๋จํ ์๋ก๋ ๊ตฌํด์ผํ๋ ๋ณ์๋ณด๋ค ์ฃผ์ด์ง ์์ด ์ ์ ๊ฒฝ์ฐ๋ก ๋ฌด์ํ ๋ง์ ํด๋ฅผ ๊ฐ๋ ๊ฒฝ์ฐ๊ฐ ์๋ค.
ill-conditioned ์ ๊ฒฝ์ฐ๋ condition number ๊ฐ ๋งค์ฐ ํฐ ๊ฒฝ์ฐ์ ํด๋นํ์ฌ well-posed ์ด๋ฉด์ ill-conditioned ์ผ ์ ์๋ค.
nearly singular ๋ผ๊ณ ๋ถ๋ฅด๊ธฐ๋ ํ๋ฉฐ, ์์ ์ฑ์ด ๋ฎ์ noise ์๋ ํฐ ์ค์ฐจ๊ฐ ๋ฐ์ํ๋ค.
An example of ill-conditioned matrices
์๋์ ๊ฐ์ ์ํฉ์ ์๊ฐํด๋ณด์.
and
๊ทธ๋ ๋ค๋ฉด ์ผ์ชฝ์ ํด๋ ์ธ ๋ฐ๋ฉด, ์ค๋ฅธ์ชฝ์ ํด๋ ์ด๋ค. ์ด๋ฌํ coefficient matrix ๋ฅผ ill-conditioned ํ๋ค๊ณ ํ๋ค.
์์ ์ธ๊ธํ ๊ฒ์ฒ๋ผ, coefficient ์ ์ฝ๊ฐ์ ๋ณํ๋ก ํด๊ฐ ํฌ๊ฒ ๋ณํ๊ธฐ ๋๋ฌธ์ด๋ค. ์์ ์์์์ condition number ๋ 4004 ๋ผ๊ณ ํ๋ค.
๋ฐ์ฌ๋ฆผ ์ค์ฐจ(rounding error) ๋ก ์ธํด ill-conditioned system ์ ๋ค๋ฃจ๊ธฐ ์ด๋ ต๋ค. ์๋์ ๋๋ค๋ฅธ ์์๋ฅผ ์ดํด๋ณด์.
์ ์์์ ํด๋ ์ด๊ณ coefficient ๊ฐ ์ฝ๊ฐ ๋ณํ๋๋ผ๋ ํด๋ ํฌ๊ฒ ๋ณํ์ง ์์์ ์ ์ ์๋ค. ์ด ๊ฒฝ์ฐ condition number ๋ 4์ด๋ค.
ํ์ง๋ง ์ผ๋ฐ์ ์ธ row reduction algorithm ์ผ๋ก ํ์ด๋ด๋ฉด ill-conditioned system ์ด ๋๋ค. ์ ์์ ํ๊ธฐ ์ํด ์ฒซ ๋ฒ์งธ ์ด์ 1000์ ๊ณฑํด ๋ ๋ฒ์งธ ์ด์์ ๋นผ๋ธ๋ค๊ณ ํด๋ณด์. ๊ทธ ์ดํ, -999๋ฅผ ๋๋ ํ ์์ซ์ ์ธ ์๋ฆฌ๊น์ง ๋ฐ์ฌ๋ฆผ ํ๋ค.
์ด๋ก์จ ๋ก ์์ ํด์ ๋น๊ตํ์ ๋ ์๋นํ ๋ถ์ ํํจ์ ์ ์ ์๋ค.(condition number )
partial pivoting ์ ํ์ฉํ๋ฉด ์ด๋ฌํ ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ ์ ์๋ค. ์ด์ ์์คํ ์ ์ด์ ์๋ก ๋ฐ๊ฟ์ฃผ๋ ๊ฒ์ด๋ค.
๊ทธ๋ผ ์์ ๊ฐ์ ๊ณผ์ ์ผ๋ก ๋ฌธ์ ๊ฐ ํด๊ฒฐ๋๋ฏ๋ก rounding ์ดํ์๋ ํด๊ฐ ๋ก ๊ฝค ์ ํํ๊ฒ ๋์ด์ ์ ์ ์๋ค. (condition number )
Youtube Lesson