Hello
I’m new in GAMS and MATLAB. I worked with GAMS V24.1 and MATLAB v7.12. I want to link between GAMS and MATLAB
I did many ways for example:
I ran this command in MATLAB and set path via :
addpath ‘C:\gams’; savepath;
and set this path via current folder in MATLAB then created tmp directory via:
mkdir \tmp
and entered to it:
cd \tmp
but when I ran testlib gdxmrw03, I got this error:
Undefined function or method ‘testlib’ for input arguments of type
‘char’.
WHAT IS MY PROBLEM PLEASE?
ALSO I tested the other way; I opened the GAMS IDE. then created a new project in a new directory name gamsproj4, then extracted the model gdxmrw05 from testlib (To do this, I used the Model Libraries tab. choosed GAMS Test Library, typed gdxmrw05 in the search box, and doubled-click the model to copy it). then closed the GAMS IDE and opened MATLAB and cd to the project directory used above. but when I ran testinst from Matlab I got the error:
last error message: Undefined function or method ‘gams’ for input arguments of type ‘char’.
last error identifier: MATLAB:UndefinedFunction
See testinst log file testinstlog.txt for details
??? Error using ==> testinst at 128
Error in testinst: terminating prematurely
WHAT IS MY PROBLEM?
\
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.