Using fmincon with Matlab 2010 and 2016 returns different results
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I ran a code I used on a previous version of Matlab (2010) on the latest version (2016), but the results I got are different.
I need the code to find the parameters of a certain density function, using the maximum likelihood estimation. So I decided to use fmincon. The code I wrote is exactly the same on both Matlab versions, and so are the data I used. However, on the 2010 version I obtain a certain x vector and on the 2016 version I obtain a different one, even after having specified the same optimoptions in both versions.
Why is that so?
0 commentaires
Réponses (1)
Walter Roberson
le 21 Nov 2016
There are a number of different possibilities, including different default algorithms, differences in linear algebra libaries, and accumulation of round-off differences.
Does your function have some steep gradients? Exploration of those could be affected by round-off differences.
0 commentaires
Voir également
Catégories
En savoir plus sur Linear Least Squares dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!