Search found 21 matches

by Clemens
1 month ago
Forum: API
Topic: _gdxcc.so issue
Replies: 3
Views: 202

Re: _gdxcc.so issue

David, The file _gdxcc.so is required by the Object-oriented Python API. GAMS distributes different version of the file for the different API versions (Python 2.7, 3.6, etc.) and one version which is located directly in the GAMS system directory ( /Applications/GAMS25.0/sysdir/ ). This version of th...
by Clemens
1 month ago
Forum: API
Topic: Is there any tutorial about the connection between python and gams?
Replies: 1
Views: 88

Re: Is there any tutorial about the connection between python and gams?

Hi, GAMS offers basically two technologies for combining Python and GAMS. The GAMS Object-oriented Python API offers a Python interface for interacting with GAMS. For further information, please have a look at the documentation which also provides a tutorial: https://www.gams.com/latest/docs/API_PY_...
by Clemens
3 months ago
Forum: Announcements
Topic: GAMS Studio
Replies: 3
Views: 1021

Re: GAMS Studio

Chris,

Thank you for sharing this idea with us. The concept of a language server is very nice. However, the first versions of GAMS Studio will most likely not support this feature. We keep this in our backlog and will at some stage decide if and how such a feature can be implemented.

Best,
Clemens
by Clemens
3 months ago
Forum: API
Topic: model2tex
Replies: 4
Views: 638

Re: model2tex

The overflowing problem is well known to us. Unfortunately so far we do not have a general solution for this. model2tex is written in Python and implements a stack machine that works on the instructions generated by the GAMS compiler. If you put a $debug dmpins at the end of a model you can look at ...
by Clemens
3 months ago
Forum: API
Topic: model2tex
Replies: 4
Views: 638

Re: model2tex

Hi, This seems to be a bug in model2tex regarding SOS variables. Thank you very much for reporting. For now you could temporarily change your SOS variables to non-SOS variables to see if this lets you generate the LaTeX file. Afterwards you can change them back to SOS variables. The only effect on t...
by Clemens
4 months ago
Forum: API
Topic: GAMS and Python 2
Replies: 2
Views: 322

Re: GAMS and Python 2

David,

You might want to specify the output argument in GamsJob.run() in order to redirect the GAMS log. Assuming that t1 is an instance of type GamsJob, the following code will print the log to stdout:

Code: Select all

t1.run(output=sys.stdout)
Hope that helps,
Clemens
by Clemens
4 months ago
Forum: API
Topic: GAMS and Python
Replies: 3
Views: 473

Re: GAMS and Python

David, The return code you receive indicates a compilation error. When an instance of GamsWorkspace is created, the working_directory is set to a temporary directory. The GamsJob.run() call runs the model in this directory. If your model relies on certain other files like include or GDX files, the G...
by Clemens
4 months ago
Forum: API
Topic: model2tex on macOS
Replies: 8
Views: 763

Re: model2tex on macOS

Hermann,

The use of GAMS singleton sets in your model cause a problem in model2tex. The bug will be fixed in future releases of GAMS. Thank you very much for reporting this!

Best,
Clemens
by Clemens
4 months ago
Forum: API
Topic: model2tex on macOS
Replies: 8
Views: 763

Re: model2tex on macOS

Hermann, This seems to be related to your model. Is it possible to give me access to your model or to the files generated by the docFile command? A minimal example that generates this error would also be sufficient. GAMS syntax can be quite versatile and most likely there is another bug in model2tex...
by Clemens
4 months ago
Forum: API
Topic: model2tex on macOS
Replies: 8
Views: 763

Re: model2tex on macOS

Hermann, This is a bug that will be fixed in future releases of GAMS. Thank you very much for reporting this. The actual problem is a wrong library dependency in the file _gdxcc.so . You can fix the problem on your machine by navigating into your GAMS system directory using a Terminal. In a sub dire...