how to reduce the calculation time when calling a .exe file from a MATLAB function
Mostrar comentarios más antiguos
I'm going to use "gamultiobj" genetic algorithm multi objective function optimisation and in my objective function I call an .exe file instead of defining it directly in MATLAB. I tried two simple parabolic functions as my objectives (a given example in MATLAB help for gamultiobj). It takes 26 seconds when use objective functions defined in MATLAB, but when I call a .exe file which calculates same functions, it takes 21 minutes!! Is this normal? Is there any way to reduce the time? Will the time reduce if I convert my Fortran program to a MEX file and call this one instead of compiled .exe file?
6 comentarios
Walter Roberson
el 22 de Jun. de 2015
We don't know because we do not have the sources to compare.
Gitesh Nandre
el 23 de Jun. de 2015
How are you calling the exe file from MATLAB?
Mohsen2015
el 25 de Jun. de 2015
Sean de Wolski
el 25 de Jun. de 2015
What is the exe?
Mohsen2015
el 29 de Jun. de 2015
Quy Nguyen
el 12 de Abr. de 2024
i have a project that generates exe files from matlab/guide. Instructions on how to reduce matlab exe application processing time
Respuestas (1)
Sean de Wolski
el 29 de Jun. de 2015
0 votos
Without knowledge of how the exe works this is hard to answer.
One thing you might want to try, if you are calling the exe multiple times is parfeval in the Parallel Computing Toolbox. This will allow you to submit asynchronous calls to the exe and the file read in parallel so that it can be running multiple times concurrently. This won't speed up calling the exe but will allow you to call it more frequently.
Categorías
Más información sobre Fortran with MATLAB en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!