How to update Gams and keeping an older version

Gams is often updated and sometimes it can be good to have the old version still around (especially if you are not sure if the new version is working properly or if you are trying the beta version and want to switch back to the old version).
What I usually do is the following:
  1. I rename the directory of my installed version to GamsOld
  2. Install the new version (directory “Gams”)
  3. That is almost all.

The advantages ares:

  1. first of all, I still have the older version around (I usually keep one older version and delete the others).
  2. As I work
Read the rest “How to update Gams and keeping an older version”

Guidelines for Posting to the Gams Mailing List

The Gams mailing list can be very helpful. There are a lot of people who are willing to use their free time to answer your questions. My advice: subscribe to the mailing list at http://www.listserv.dfn.de/cgi-bin/wa?SUBED1=gams-l&A=1 ( and even if you don’t post to it, you can learn a lot of the questions and answers by others. If you post: don’t be afraid to ask a stupid question. The worst thing that can happen is that you get an answer like I once got. I asked a really stupid answer and got the answer: “Think”!

Tom Rutherford posted some nice guidelines … Read the rest “Guidelines for Posting to the Gams Mailing List”

Outline Mode in Gams-Mode for Emacs

Let’s get to know the great things you can do with Gams-mode. In the previous post I showed how Gams-mode nicely colors your code, the syntax-highlighting. In this post we will look at the great way Gams-mode shows the results of your model run. This is done in the Gams-Outline mode.
First run your model by hitting C-c C-s (C stands for Ctrl) or use the same command from the menu. Emacs will open a new window and you see how Gams solves your model. When Gams is finished you can hit F10 (or C-c C-v)  to show the listing
Read the rest “Outline Mode in Gams-Mode for Emacs”

Syntax Coloring in Gams-Mode

I suppose you have installed emacs and gams-mode for emacs (if not see my preceding posts) and now are eager to start working on your model.
Let us start simple and get a model from the Gams-library. If you started emacs you are not in gams-mode (you can check this by looking at the menu bar: there is no gams-entry). If you load a gams model (with the extension “gms”), Emacs automatically turns on gams-mode and the gams entry appears in the menu bar (blue arrow). The first thing you probably notice is the syntax coloring. The coloring you will
Read the rest “Syntax Coloring in Gams-Mode”

Installing Gams-Mode for Emacs

After installing Emacs (see my previous post), the next thing to do is install gams-mode. If you got Emacs running, installing gams-mode is not so difficult.
First of all download gams-mode from Shiro Takeda’s website: You will find it here: gams-mode-download.
Update: you can now directly install gams-mode from the package repository:
  • Alt-x and type ‘list-packages’
  • search for gams-mode
  • click on it and install.

That’s all.

The files are zipped and should be unzipped to a directory Emacs will find. I show you my settings (as usual, you can do it in another way).
I have all my additional … Read the rest “Installing Gams-Mode for Emacs”