Large symbolic linear system, solution is too slow
10 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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?
0 comentarios
Respuestas (3)
John D'Errico
el 7 de Oct. de 2015
Editada: John D'Errico
el 7 de Oct. de 2015
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.
0 comentarios
Walter Roberson
el 7 de Oct. de 2015
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.
0 comentarios
john ulster
el 8 de Oct. de 2015
Editada: john ulster
el 8 de Oct. de 2015
2 comentarios
Walter Roberson
el 8 de Oct. de 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.
Ver también
Categorías
Más información sobre Linear Algebra en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!