Help with symbolic computation...

I wrote an m file to solve a system of equations. The system has 30 equations and 30 variables. I use the symbolic toolbox to do it, but when I run the program, there is no results. I let it run overnight still nothing so I thought I'd seek help. PS: I also tried using the numeric approach with fsolve, but I don't know how some those variables look like so my guess values aren't the best, so it is not converging.

Answers (1)

John D'Errico
John D'Errico on 3 Apr 2016
Edited: John D'Errico on 3 Apr 2016
Not all problems are solvable in a finite amount of time, or even quickly.
Big problems take big time, and just wanting them to run quickly tends not to be sufficient. You have this nasty looking nonlinear system of equations. There will be no symbolic solution almost certainly, and if one was ever found, that solution would be immense, with millions complicated terms in that solution.
I'm sorry, but trying to use solve here is a complete waste of time. No other symbolic solver would be better, since any solution will be insanely, immensely, huge.
If a solution would ever be found, it MUST be a numerical solver. You will need to try using a tool like fsolve again, but with better choice of starting values. That may require you to learn more about what the parameters in the system of equations you just created. That would surely be a good thing anyway.
If you cannot do so, then you need to formulate smaller problems, that ARE solvable. Hey, research was never intended to be simple. If it was, then they would have grade school children doing it, or you would teach your dog to do it. An art of mathematics is formulating problems that are indeed solvable, not just throwing the biggest problem at the biggest computer around and hoping something drops out of the chute.

This question is closed.

Asked:

on 3 Apr 2016

Closed:

on 20 Aug 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!