Azzera filtri
Azzera filtri

Slightly different outcomes in the fminunc() function for matlab2022 compared to matlab 2017

1 visualizzazione (ultimi 30 giorni)
Hi,
We are currently switching from matlab version 2017a to 2022a. However, we get slightly different parameters (up to 6 decimals) with the following function:
[parameters,LL,exitflag,output]=fminunc('tarch_likelihood',startingvals_transformed,options,epsilon_augmented,fepsilon,fIepsilon,p,o,q,error_type,tarch_type,back_cast,T,1);
parameters (matlab 2017a): 1.29415540923115, -1.19100655789619
parameters (matlab 2022a): 1.294156237365114, -1.191008840253841
The inputs are exactly the same so it seems that optimizer in 2022a has changed. Does anyone know the exact reason for these different slightly different outcomes between the two matlab versions 2017a and 2022a?

Risposte (1)

Ganapathi Subramanian
Ganapathi Subramanian il 26 Apr 2023
Hi Jeroen,
It is my understanding that you are using fminunc and getting slightly different results in R2017a and R2022a. Many updates are present in each version of MATLAB. The usual issue is that the underlying math libraries can have slight differences. As optimization routines iterate, these differences get amplified. This is the reason behind the slight variation in your case.

Categorie

Scopri di più su Mathematics in Help Center e File Exchange

Prodotti


Release

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by