Different number of function evaluations and iterations while using MEX of objective function in patternsearch
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I generated a MEX function of my objective function to speed up the optimization process (pattern search) using Matlab coder (Matlab R2023b). The optimization with pattern search using the MEX function results in identical solutions. However, the number of function evaluations used by patternsearch is different while using the MEX of objective function. Similarly, the number of iterations employed by patternsearch is also different when I use the MEX function. The rest of the settings are identical.
I am not able to figure out the cause behind this discrepancy since MEX is essentially the same function.
Thanks in advance for any help in understanding this!
8 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu Execution Speed finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!