Mex files - Invalid mex file - Error message - Reg

조회 수: 3 (최근 30일)
Kallam Haranadha Reddy
Kallam Haranadha Reddy 2016년 12월 30일
댓글: Walter Roberson 2017년 8월 28일
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

채택된 답변

mangoon
mangoon 2017년 3월 11일
I had the same problem and solved it easily by installing Microsoft Visual C++ 2012 or any later version. This solution is also described here: http://www.gamsoptimization.com/variousstuff.
By the way for me it worked already on both 32 and 64 bit machines.
Let me know if it works for you!
  댓글 수: 2
Kallam Haranadha Reddy
Kallam Haranadha Reddy 2017년 8월 28일
I installed Microst VC 2010. But my problem was not solved.
Walter Roberson
Walter Roberson 2017년 8월 28일
You might need to install a newer VS.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Walter Roberson
Walter Roberson 2016년 12월 31일
You might be missing a DLL that it needs
Could you confirm that you are using a 32 bit MATLAB?
  댓글 수: 2
Kallam Haranadha Reddy
Kallam Haranadha Reddy 2016년 12월 31일
I confirm that I am using a 32 bit MATLAB.
Regarding DLLs i checked with dependency walker . Firstly it displayed that 3 DLLs are missing. (libmx.dll,libmex.dll,msvcr110.dll). i downloaded them and placed them in the respective folder on the MATLAB path.
Again i checked with dependency walker. Now it is showing that more than 10 DLLs are missing.
same kind of error messages i received before i have seen the youtube video on how to setup MATLAB to interface with GAMS. That video helped me to some extent in running the GAMS model from MATLAB. But the problem is not solved completely.
Is there something that i have to do while installing GAMS.
please throw light.
Walter Roberson
Walter Roberson 2016년 12월 31일
Sorry, I do not know anything about installing GAMS.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by