- #1
Sosi
- 13
- 1
Hello everyone!
I have a system of equations which I am trying to solve in order to 13 dependent variables. Yet, I am only interested in the answers which are real positives. In my code I have implemented a way to select only the answer which satisfies this constraint:
Yet, this is a very slow process, taking about 14 seconds for each value of an independent value that I am considering (and I want to take into consideration several hundreds).
I know that FindRoot is able to speed up this process, but I want to search for a global (not local) solution. Is there any way to speed up this process?
Thanks so much
I have a system of equations which I am trying to solve in order to 13 dependent variables. Yet, I am only interested in the answers which are real positives. In my code I have implemented a way to select only the answer which satisfies this constraint:
Code:
Cases[
NSolve[
{equations},{variables}],
{Rule[_, _?NonNegative] ..},
1 ]
Yet, this is a very slow process, taking about 14 seconds for each value of an independent value that I am considering (and I want to take into consideration several hundreds).
I know that FindRoot is able to speed up this process, but I want to search for a global (not local) solution. Is there any way to speed up this process?
Thanks so much