GAMS specification for message_ix

43 views
Skip to first unread message

Miho KAMEI

unread,
Oct 10, 2019, 3:26:10 AM10/10/19
to messa...@googlegroups.com, kr...@iiasa.ac.at

Dear message_ix community,

 

Hello. I have tried to connect GAMS with MESSAGE model.

However, when I installed the GAMS, I could not see the option below.

“Add GAMS directory to PATH environment variable” on the Advanced Options page.

 

My GAMS is very old, version 23.5.

Would it be possible to connect this old version with Message ix ?

 

Or if you recommend me to buy a new one,

could you please let me know which version is the best?

(The latest version I checked is the 28.2)

 

I appreciate if you could provide me technical assistance.

 

Best regards,

Miho

 

 

Matthew Gidden

unread,
Oct 10, 2019, 3:32:11 AM10/10/19
to Miho KAMEI, message_ix, KREY Volker
Hi Miho - all you need to do is add the location of your gams executable to your PATH environment variable, how to do so depends on which operating system you're using, but there should be lots of guides out there.

I don't *think* we have a minimum gams dependency - I believe I've seen users running with 24.1, but it's worth giving it a try!

Cheers,
Matt

--
You received this message because you are subscribed to the Google Groups "message_ix" group.
To unsubscribe from this group and stop receiving emails from it, send an email to message_ix+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/message_ix/000001d57f3b%24fc2d4180%24f487c480%24%40iges.or.jp.

Miho KAMEI

unread,
Oct 10, 2019, 3:56:54 AM10/10/19
to Matthew Gidden, message_ix, KREY Volker

Dear Matt,

 

Thank you for your help.

I will try it again.

 

Best,

Miho

Matthew Gidden

unread,
Oct 10, 2019, 4:02:35 AM10/10/19
to Miho KAMEI, message_ix, KREY Volker
Ah yes, I see now a source of the confusion. The instructions assume users are installing GAMS for the first time on Windows. During that process, you see a tick box in the GUI for this option. If you have GAMS already installed you need to go to something like System Preferences -> Environment Variables -> edit.

Cheers,
Matt

KREY Volker

unread,
Oct 10, 2019, 4:16:46 AM10/10/19
to Matthew Gidden, Miho KAMEI, message_ix

Dear Miho and Matt,

 

If you want to run MESSAGEix with MACRO linkage there is actually a GAMS version dependency. The “break” statement used in MESSAGE-MACRO_run.gms to exit the iteration loop between MESSAGE and MACRO which was added to GAMS version 24.8.1 (https://www.gams.com/latest/docs/RN_248.html#RN_2481). It seems the documentation of this dependency has been accidentally removed in the restructuring of the installation guidelines (at least I cannot find it) and should be re-added more clearly again.

 

Best, Volker.

Miho KAMEI

unread,
Oct 10, 2019, 4:23:07 AM10/10/19
to Matthew Gidden, message_ix, KREY Volker

Thanks Matt,

When I installed old version GAMS, I could not see the tick box. (But new version has.)

This is why I wondered old version might not be able to be connected.

But I will try to do the option of System Preference->Environment Variables-> edit.

 

Thank you again,

Miho KAMEI

unread,
Oct 10, 2019, 4:28:23 AM10/10/19
to KREY Volker, Matthew Gidden, message_ix

Dear Volker,

 

Thank you so much for your assistance.

So, that means I need to install the version at least after 24.8.1?

The latest version 28.2 also may work?

 

Best,

Miho

KREY Volker

unread,
Oct 10, 2019, 4:39:58 AM10/10/19
to Miho KAMEI, Matthew Gidden, message_ix

Yes. Just GAMS versions before 24.8.1 fail, because they don’t know the “break” statement used in the code.

 

Best, Volker.

Miho KAMEI

unread,
Oct 10, 2019, 4:42:56 AM10/10/19
to KREY Volker, Matthew Gidden, message_ix

Thank you so much Volker and Matt for your supports.

Now I figure out!

 

Best,

Miho

Reply all
Reply to author
Forward
0 new messages