Problem With MATLAB R2010a and GAMS 23.5.1

209 views
Skip to first unread message

Crystal

unread,
Mar 27, 2012, 3:04:52 AM3/27/12
to gamsworld
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

Steven Dirkse

unread,
Mar 27, 2012, 1:51:29 PM3/27/12
to gams...@googlegroups.com
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

> --
> You received this message because you are subscribed to the Google Groups "gamsworld" group.
> To post to this group, send email to gams...@googlegroups.com.
> To unsubscribe from this group, send email to gamsworld+...@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
sdi...@gams.com
http://www.gams.com

Crystal

unread,
Apr 4, 2012, 12:44:52 AM4/4/12
to gamsworld
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 <sdir...@gams.com> wrote:
> Crystal,
>
> http://support.gams.com/doku.php?id=matlab_and_gams:interfacing_optim...
> > 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
Reply all
Reply to author
Forward
0 new messages