Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.


Torsten
Posts:
1,627
Registered:
11/8/10


Re: Error running fminsearch
Posted:
Aug 20, 2013 10:20 AM


"Josef" wrote in message <kule45$d4r$1@newscl01ah.mathworks.com>... > Thank you very much. The problem is that although the program is now running, it is far from finding the actual solution. It always gets stuck at a local minima. Does anyone have an idea which solver works better? > The problem is a system of some 68 equations (depends on specification), and there is no easy way of updating the variables in order to find the solution mechanically. This is why I tried with some solver in the first place. Apparently it does not do any better... > Any help would be greatly appreciated. > > Thanks, > > David
I did not look at your code in detail, but I guess that the function you try to minimze is far from being smooth. Fminsearch and all other codes for continuous optimization only work for differentiable functions. Maybe you can formulate your problem as a mixedinteger problem and use a solver adequate for this problem type.
Best wishes Torsten.



