(OPTIMIZATION) Initial point is a local minimum - PROBLEM!!
You are now following this question
- You will see updates in your followed content feed.
- You may receive emails, depending on your communication preferences.
An Error Occurred
Unable to complete the action because of changes made to the page. Reload the page to see its updated state.
0 votes
Share a link to this question
Accepted Answer
0 votes
16 Comments

- If your response F(x) is flat, then you need to debug your code.
- If your response F(x) is stair-stepped, then you need to use a solver that is appropriate. I would usually suggest patternsearch to minimize the sum of squares of deviations for a nonsmooth multivariable function. But maybe you don't have Global Optimization Toolbox. In that case you might have to simply calculate F at a variety of points and look for a minimum manually. Or maybe a scaled version of fminsearch could work. We can discuss details later if necessary.
- If the response is smoothly differentiable then I am surprised, because your initial problem is that the first-order optimality measure (essentially, the gradient) is zero, meaning there is no change in the response for small changes in x.

- If D0 = 0 then you are at least in the stair-stepping case I have been describing, where small changes in the parameter vector x lead to zero changes in the response.
- If D1 = 0 then you are in the case where the response is independent of the input variable x and you need to debug your program.

More Answers (0)
Categories
Find more on Get Started with Optimization Toolbox in Help Center and File Exchange
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)