Mex files - Invalid mex file - Error message - Reg
Show older comments
I linked GAMS optimization software with MATLAB successfully by seeing the video in youtube. I was able to run the GAMS model from MATLAB command prompt by typing following "system 'gams C:\users\admin\Documents\gamsdir\projdir\LagrangianRelax lo=3 gdx=tmp'" where LagrangianRelax is the GAMS model file. The model run successfully from MATLAB and the system displayed log file also. But when i wanted to view the gdx file of GAMS from MATLAB by using command gdxWhos, the system is displaying the error message Invalid MEX-file 'C:\GAMS\win32\24.7\gdxWhos.mexw32': The specified module could not be found.
But the file gdxWhos.mexw32 is there on the MATLAB path. This i came to know because when i typed the command which gdxWhos -all the system is showing the following message C:\GAMS\win32\24.7\gdxWhos.mexw32 C:\GAMS\win32\24.7\gdxWhos.m % Shadowed .
what could be the probable reason for the gdxWhos command not working and how can i make it to work.
Thanks
Accepted Answer
More Answers (1)
Walter Roberson
on 31 Dec 2016
0 votes
You might be missing a DLL that it needs
Could you confirm that you are using a 32 bit MATLAB?
2 Comments
Siva
on 31 Dec 2016
Walter Roberson
on 31 Dec 2016
Sorry, I do not know anything about installing GAMS.
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!