The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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 ]

Posts: 1,717
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$>...
> 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

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

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.