Fmincon does not even try other points other than initial x0
Show older comments
I am running into a problem I cannot understand,
I have an objective function that uses some external .exe programs to obtain its value, thus I believe a complex one
I ask matlab to provide the x values being used in the objective function at each iteration, and for some reason, fmincon always uses the exact same values of x0 several times, and then it says it found that the initial point is the local optimal.
wasn't fmincon supposed to try other values of x before getting to that final result? what could I be doing wrong?
- I tried the same code using ga and it does try different x and gives different results at each iteration, for that reason I believe the code I used for fmincon should not have any basic mistake (such as the objective function being constant).
thanks,
Accepted Answer
More Answers (1)
Alan Weiss
on 11 Jun 2020
1 vote
The documentation has some suggestions about this type of thing.
Alan Weiss
MATLAB mathematical toolbox documentation
1 Comment
Conrado Neto
on 11 Jun 2020
Categories
Find more on Choose a Solver in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!