Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Error running fminsearch
Replies: 3   Last Post: Aug 20, 2013 10:20 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Torsten

Posts: 1,439
Registered: 11/8/10
Re: Error running fminsearch
Posted: Aug 20, 2013 10:20 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"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 6-8 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 mixed-integer problem and use a solver adequate for this problem type.

Best wishes
Torsten.



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.