Hello!
I am having some troubles with GAMS 49 and Matlab 2024b.
I added the GAMS installation folder to the Matlab path as in the documentation here, but I can’t use the gams
and wgdx
functions, as they are not defined, according to Matlab.
Has there been an API change from older versions of GAMS? The same code runs without any issues on an a colleague’s machine with an older version of GAMS (I believe it is version 37).
Any help is appreciated
Thanks!
Paolo
Hi Paolo,
gdxmrw
was depreciated in GAMS 38 (38 Distribution)… Our new data only API is called GAMS Transfer (Transfer). We recommend users migrate there code over for all the benefits that the new GT interface offers.
Best,
Adam
1 Like
Thank you Adam for the reply,
I read the documentation for GAMS Transfer, but I am unsure how to replace the gams
function I used from the old API.
From what I understand GT offers a way to create gdx
files from within Matlab, but no way to run a specific gms
file or GAMS model.
To actually run GAMS models from within Matlab, should I use GAMS Control API or is there another way to do that while still using GAMS Transfer?
Bests,
Paolo
Hi Paolo,
You are right, if you wanted to actually run GAMS from MATLAB you will need to use the GAMS Control API. GAMS Transfer will likely be more performant when exporting very large GDX files… you can use both of these tools together to manage your work flow.
best,
adam
1 Like