Large symbolic linear system, solution is too slow
Show older comments
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?
Answers (3)
John D'Errico
on 7 Oct 2015
Edited: John D'Errico
on 7 Oct 2015
2 votes
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
on 7 Oct 2015
0 votes
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
on 8 Oct 2015
Edited: john ulster
on 8 Oct 2015
0 votes
2 Comments
Walter Roberson
on 8 Oct 2015
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
on 8 Oct 2015
Edited: john ulster
on 8 Oct 2015
Categories
Find more on Linear Algebra in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!