Search found 63 matches

by Clemens
6 years ago
Forum: API
Topic: model2tex on macOS
Replies: 8
Views: 8621

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
6 years ago
Forum: API
Topic: model2tex on macOS
Replies: 8
Views: 8621

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...
by Clemens
6 years ago
Forum: API
Topic: model2tex on macOS
Replies: 8
Views: 8621

Re: model2tex on macOS

Hermann, The GAMS file you found is part of the GAMS Test Library which is primarily designed to be used for testing by the GAMS staff. Therefore certain models in this library might have specific prerequisites. For model2tex1.gms, an environment variable called PYTHON27 needs to be set to a Python ...
by Clemens
6 years ago
Forum: API
Topic: Python API Installation User Folder
Replies: 1
Views: 4699

Re: Python API Installation User Folder

Hello, Thank you for providing the "--user" problem. We will look into this and see how to fix this. Most likely it is a problem in our setup scripts. Note that you can also always set the PYTHONPATH in order to tell the Python interpreter where to look for modules. The actual problem you ...
by Clemens
6 years ago
Forum: API
Topic: Modify multidimensional parameter with Python GamsModelInstance
Replies: 1
Views: 3831

Re: Modify multidimensional parameter with Python GamsModelInstance

Please have a look at the transport7.py example: https://www.gams.com/latest/docs/apis/examples_python/transport7_8py_source.html Although it doesn't show how to modify a two dimensional parameter, it shows both the use of a scalar parameter and a two dimensional variable. Instead of adding a scalar...
by Clemens
6 years ago
Forum: API
Topic: model2tex
Replies: 0
Views: 4113

Re: model2tex

It seems that in your GAMS code you did not define an actual model. This is required
since model2tex is meant to create documentation for a specific model in your GAMS code.

Clemens
by Clemens
6 years ago
Forum: Announcements
Topic: GAMS Distribution 24.9.0 (Beta Version) Announcement
Replies: 0
Views: 9053

GAMS Distribution 24.9.0 (Beta Version) Announcement

We would like to announce the availability of the GAMS Distribution 24.9.0 (Beta Version). Please consult the beta release notes for details about new features and updated solvers: https://www.gams.com/24.9/docs/releasenotes/index.html If you are interested in experimenting with this beta release, p...
by Clemens
7 years ago
Forum: API
Topic: Installing Python API
Replies: 7
Views: 14051

Re: Installing Python API

1. The GAMS Python API is installed using distutils. As far as I know there is no automatic way of uninstalling a package/module that was installed using distutils. If you have accidentally installed the wrong version of GAMS Python API files, you might try to run the setup.py script from the correc...
by Clemens
7 years ago
Forum: API
Topic: Installing Python API
Replies: 7
Views: 14051

Re: Installing Python API

I read this over, sorry. Support for Python 3.6 was added recently in GAMS 24.8.4. If you ran the setup script from the directory 'api', you have installed the Python 2.7 version which is not compatible with Python 3.6

Best,
Clemens
by Clemens
7 years ago
Forum: API
Topic: Installing Python API
Replies: 7
Views: 14051

Re: Installing Python API

The GAMS Python API comes in separate directories for different versions of Python. Please have a look at the 'Getting Started' section of the tutorial and make sure that you install the correct files for your version of Python: https://www.gams.com/latest/docs/apis/examples_python/index.html Best, ...