I’m having a common problem but I’ve not been able to find a common
solution.
I have a licensed version of GAMS 23.5.1 running on Windows 7. I run
my optimization problems on it using approapriate solvers and iit
works perfectly .
Now I tried to interface with MATLAB R2010a following the instructions
in GDXMRW:Interfacing GAMS and MATLAB (Feb. 7, 2011).
I created a temp folder and unpacked these 3 files (gdxmrw03,
gdxmrw04, and gdxmrw05) into the folder but I keep getting errors when
I tried to execute them in GAMS.
gdxmrw03:
No such file or directory for {r1,r2,rfull,rsparse}_result.gdx
MATLAB shows "Undefined function or variable ‘r_batch’ "
gdxmrw04:
writeset.gdx and writepar.gdx: No such file or directory
MATLAB shows "Undefined function or variable ‘r_batch’ "
gdxmrw05: MATLAB returns “Error in testinst: terminating prematurely”
I have even tried the 23.8.1 latest version but I’m having the same
problem. I’ve read as many similar post but none of the suggestions
cut it for me yet.
I’m not sure of what I’m doing wrong. Can sombody help me please?
Thank you
TestinstLog
Date = 27-Mar-2012
Matlab version = 7.10.0.499 (R2010a)
GAMS Mex-file version = Id: gams.c 18385 2010-06-29
GAMS/Base version = unknown: Error using ==> gams
Cannot find/open gversion.gms file.
Error in testinst: terminating prematurely
last error message: Error using ==> gams
Cannot find/open testinst.gms file.
last error identifier: MATGAMS:misc
\
Crystal,
http://support.gams.com/doku.php?id=matlab_and_gams:interfacing_optimization_and_visualization_software_via_the_gdxmrw_utilities
contains some helpful hints, etc.
-Steve
On Tue, Mar 27, 2012 at 3:04 AM, Crystal wrote:
I’m having a common problem but I’ve not been able to find a common
solution.
I have a licensed version of GAMS 23.5.1 running on Windows 7. I run
my optimization problems on it using approapriate solvers and iit
works perfectly .
Now I tried to interface with MATLAB R2010a following the instructions
in GDXMRW:Interfacing GAMS and MATLAB (Feb. 7, 2011).
I created a temp folder and unpacked these 3 files (gdxmrw03,
gdxmrw04, and gdxmrw05) into the folder but I keep getting errors when
I tried to execute them in GAMS.
gdxmrw03:
No such file or directory for {r1,r2,rfull,rsparse}_result.gdx
MATLAB shows "Undefined function or variable ‘r_batch’ "
gdxmrw04:
writeset.gdx and writepar.gdx: No such file or directory
MATLAB shows "Undefined function or variable ‘r_batch’ "
gdxmrw05: MATLAB returns “Error in testinst: terminating prematurely”
I have even tried the 23.8.1 latest version but I’m having the same
problem. I’ve read as many similar post but none of the suggestions
cut it for me yet.
I’m not sure of what I’m doing wrong. Can sombody help me please?
Thank you
TestinstLog
Date = 27-Mar-2012
Matlab version = 7.10.0.499 (R2010a)
GAMS Mex-file version = Id: gams.c 18385 2010-06-29
GAMS/Base version = unknown: Error using ==> gams
Cannot find/open gversion.gms file.
Error in testinst: terminating prematurely
last error message: Error using ==> gams
Cannot find/open testinst.gms file.
last error identifier: MATGAMS:misc
–
To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.
– Steven Dirkse, Ph.D. GAMS Development Corp., Washington DC Voice: (202)342-0180 Fax: (202)342-0181 sdirkse@gams.com http://www.gams.com
Thank you so much Steven.
I installed the latest 23.8.1 version (Demo) and tried again. The
MATLAB / GAMS connection was successful without any hitch.
I just wonder why the previous license (e.g. 23.5.1) cannot be used to
run (23.8.1). I guess it means I have to buy another license for every
new release… (?)
Thank you so much for your response.
\
- Richard
On Mar 28, 2:51 am, Steven Dirkse wrote:
Crystal,
http://support.gams.com/doku.php?id=matlab_and_gams:interfacing_optim…
contains some helpful hints, etc.
-Steve
On Tue, Mar 27, 2012 at 3:04 AM, Crystal wrote:
I’m having a common problem but I’ve not been able to find a common
solution.
I have a licensed version of GAMS 23.5.1 running on Windows 7. I run
my optimization problems on it using approapriate solvers and iit
works perfectly .
Now I tried to interface with MATLAB R2010a following the instructions
in GDXMRW:Interfacing GAMS and MATLAB (Feb. 7, 2011).
I created a temp folder and unpacked these 3 files (gdxmrw03,
gdxmrw04, and gdxmrw05) into the folder but I keep getting errors when
I tried to execute them in GAMS.
gdxmrw03:
No such file or directory for {r1,r2,rfull,rsparse}_result.gdx
MATLAB shows "Undefined function or variable ‘r_batch’ "
gdxmrw04:
writeset.gdx and writepar.gdx: No such file or directory
MATLAB shows "Undefined function or variable ‘r_batch’ "
gdxmrw05: MATLAB returns “Error in testinst: terminating prematurely”
I have even tried the 23.8.1 latest version but I’m having the same
problem. I’ve read as many similar post but none of the suggestions
cut it for me yet.
I’m not sure of what I’m doing wrong. Can sombody help me please?
Thank you
TestinstLog
Date = 27-Mar-2012
Matlab version = 7.10.0.499 (R2010a)
GAMS Mex-file version = Id: gams.c 18385 2010-06-29
GAMS/Base version = unknown: Error using ==> gams
Cannot find/open gversion.gms file.
Error in testinst: terminating prematurely
last error message: Error using ==> gams
Cannot find/open testinst.gms file.
last error identifier: MATGAMS:misc
–
To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/gamsworld?hl=en.
–
Steven Dirkse, Ph.D.
GAMS Development Corp., Washington DC
Voice: (202)342-0180 Fax: (202)342-0181
sdir…@gams.comhttp://www.gams.com
\