Hello everyone!(adsbygoogle = window.adsbygoogle || []).push({});

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).Code (Text):Cases[

NSolve[

{equations},{variables}],

{Rule[_, _?NonNegative] ..},

1 ]

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

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Mathematica: speeding up NSolve

Loading...

Similar Threads for Mathematica speeding NSolve |
---|

Mathematica Storing Mathematica output |

Mathematica Mathematica to MATLAB |

Mathematica Cannot do the integral of the Hyper-geometric function? |

Mathematica Cannot Plot This Function in Mathematica |

Mathematica While Loop in Mathematica |

**Physics Forums | Science Articles, Homework Help, Discussion**