Large symbolic linear system, solution is too slow
이전 댓글 표시
Hello, I have to solve a linear system Ax=b, where A is a 539x539 matrix. A is very sparse and it contains a symbolic parameter 's'. I'm trying to solve it using x=A\b but it takes hours. How can i solve the problem in a reasonable time?
답변 (3개)
John D'Errico
2015년 10월 7일
편집: John D'Errico
2015년 10월 7일
2 개 추천
You simply can't.
The solution will be immense. Everybody wants things done immediately. They think their computer is infinitely fast, and that if they can't solve their problem, then there must be some magic trick.
Computers are not infinitely capable. (Well, except on tv or in the movies.) They have limits, and your problem is well beyond those capabilities. (You don't say HOW sparse it is.) Try it again in 5 or 10 or 20 years. :) Even then, make sure you have some capable hardware, and lots of memory.
Walter Roberson
2015년 10월 7일
0 개 추천
You solve the problem in a "reasonable" time by redefining "reasonable" to extend to numerous hours.
If you had been asked 20 years ago what a "reasonable" time was to solve such a system, would you have answered "a few minutes" ? "reasonable" is not an absolute quantity: it is based upon expectations, and sometimes those expectations do not have a lot of connection to what is feasible with affordable equipment.
john ulster
2015년 10월 8일
편집: john ulster
2015년 10월 8일
0 개 추천
댓글 수: 2
Walter Roberson
2015년 10월 8일
We do not know how sparse your matrix is or what the structure of it is. For example, a tridiagonal band matrix might have a much more efficient solution than a system whose entries are scattered at more or less random through the entire entire array.
john ulster
2015년 10월 8일
편집: john ulster
2015년 10월 8일
카테고리
도움말 센터 및 File Exchange에서 Mathematics에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!