MATLAB: How to select an interval in fsolve

fsolveinterval

I am using fsolve to solve a set of two non linear equations in two variables. But I have no idea which interval I should select. Is there any way or procedure to guess the interval ? please help. Thanks.

Best Answer

It depends on the functions. If there is a global minimum (one unique solution), where you start will likely not be important. If you doubt that there is a global minimum, and if there could be several regional minima, use the Global Optimization Toolbox patternsearch function. The other option is to use a genetic algorithm. Even if you do not have the Global Optimization Toolbox, genetic algorithms are easy to write in MATLAB.