Numerically solving linear equation and optimization

57 Views Asked by At

I have to solve for $x$ in the linear equation $Ax=B$. However, $A$ has singular values that are close to zero (very small). So direct inversion is not a good idea. I wanted to solve for $ x$ using one of the numerical equation solvers? Does any one know which is the best one I could use? I used conjugate gradient method but the convergence is not achieved. Any better method?

1

There are 1 best solutions below

1
On

Most solvers today use Singular Value Decomposition. See, for example, Numerical Recipes in C, Sec. 2.6.