- Do you have a rand() in there that makes your function non-deterministic?
- Is your function non-deterministic in some other way?
- Are you using the same starting point, x0?
- Are you modifying the options at all?
why fmincon returns different results every time
2 views (last 30 days)
Show older comments
Hi fellows,
I am using fmincon to do the optimization problem. But every time I run it it gives me different result. Is there anyone who know what the reason could be?
Cheers
0 Comments
Accepted Answer
Sean de Wolski
on 10 Sep 2012
The more details you can provide us with the better.
1 Comment
SHWETA GUPTA
on 28 Feb 2013
I don't have rand() in my code, starting point is same every time I run the code but still it gives me different result. Please help.
More Answers (1)
See Also
Categories
Find more on Get Started with Optimization Toolbox 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!