fmincon different result different machine
Ältere Kommentare anzeigen
We have an existing desktop app (.net 4.6.1) Windows 10 which is using a compiled matlab dll (.net assembly) v 9.3.
We are changing the architecture to host the same matlab dll 9.3 assembly on Win Server 2016 Standard IIS using minmal web api .Net 6.
The existing desktop app fconmin produces consistent weights given the same inputs/constraints.
In Development - the server app was also producing the same weights (matching the desktop app) running on Win 10 Desktop using IIS Express Visual Studio 2022/.Net 6.
The minute the api/matlab is deployed to Win Server 2016 hosted in IIS with .Net 6, fconmin now produces a different set of weights - these weights are consistent for the same inputs/constraints even across dev/test servers, but they are different to when run on Win 10. Both solution weights sum to 100 perent but allocations differe eg. where one asset might get 11 percent on desktop the server side deployment gives it 15 percent (ie quite significant).
All the runtimes are all 9.3, there is no randomization going on, inputs/constraints are identical, the hosts are all x64. I even took the locally built Win 10 dlls and put them on the 2016 dev server , the exact same assemblies then produce the weights consistent with a 2016 deployment.
Why are the fmincon weights different the when the identical code is hosted in IIS Win 2016 server Vs Win10 desktop?
3 Kommentare
Torsten
am 14 Dez. 2021
And the objective function gives the same value for both weight vectors ?
Walter Roberson
am 14 Dez. 2021
Do the systems have the same kind of CPU? In particular does one happen to have AMD ?
Adam Archibald
am 14 Dez. 2021
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu MATLAB Compiler SDK finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!