solving sparse systems of linear equations

solving sparse systems of linear equations

Hi,

I tried to use DSS to solve systems of linear equations in the optimization process. Unfortunately, my sparse matrix is ill-defined for the calculations and the result is erroneous results. Is it possible to use Intel MKL to solve this problem?

Enclosed is a simple example that explains my problem. Note:onlydiagonalelements arechanged duringoptimization.

Regards,

Stan

附件尺寸
下载 main.cpp3.63 KB
3 帖子 / 0 全新
最新文章
如需更全面地了解编译器优化,请参阅优化注意事项
Alexander Kalinkin (Intel)的头像

Hi,
Matrix from your example correspond grid version of operator of 4th derivatives with Neumann boundary condition so it's has at least 2 vectors in Kernel space. This vector correlate const and linear function (x_1 = (1,1,1,1,1,....) and x_2 = (1,2,3,4,5,6,....)). System Ax=b with symmetric degenerate matrix have a solution if and only if rhs vector orthogonal kernel space. Moreover in such case the solution is not unique. In your example b is a part of kernel space so there is not any algebraic solution of you system.
With best regards,
Alexander Kalinkin

Hi,
Alexander, thank you very much for an interesting answer. As I pointed, the calculations (optimization process) are determined diagonal elements of the matrix. I used an the iterative sparse solvers based on the reverse communication interface RCI CG and calculations give good results. Unfortunately, the number of iterations must be very large (about 2000) and my calculations are performed slower than MATLAB.

With greetings
Stan

登陆并发表评论。