User Tools

Site Tools


platform:how_to_use_gams_from_a_unix_shell

How to use GAMS from a Unix shell

Q: Could you give me some clue as to how to run my MIP model on UNIX.

On a Unix box please do the following, all at the Unix command prompt:

  1. Make sure the gams system directory is in your PATH.
  2. Change to a directory you will put your model in (e.g. cd ~/models)
  3. Test your installation by retrieving a model from the GAMS model library and running it:
     gamslib trnsport
     gams trnsport
 

For a test with a MIP model, enter

     gamslib bid
     gams bid
 

If GAMS can solve these models successfully, GAMS is installed correctly.

Now, to solve your model, you will need to ftp your files to the Unix machine and run GAMS in the same way.

As far as looking at output, etc., that depends on what system tools (editors, print queues, etc.) your have installed there.

platform/how_to_use_gams_from_a_unix_shell.txt · Last modified: 2011/07/11 10:28 by support