Search found 7 matches

by davidwogan
3 years ago
Forum: API
Topic: Python API: view solver output
Replies: 2
Views: 3530

Re: Python API: view solver output

Michael,

Thank you for the pointer -- the output argument worked and is very convenient!

Many thanks,

David
by davidwogan
3 years ago
Forum: API
Topic: Python API: view solver output
Replies: 2
Views: 3530

Python API: view solver output

Hi everyone, I have a workflow running GAMS models using the Python 3.6 API. I am looking for a way to inspect the solver progress, the same way you would when running a GAMS job in the IDE. Is there a class or method in the Python API to enable this type of output? This will assist in debugging the...
by davidwogan
5 years ago
Forum: Syntax
Topic: Appending to a parameter
Replies: 2
Views: 6589

Re: Appending to a parameter

Hi Steve, Thanks for the tips. Looks like $onMulti and $offMulti are exactly what I was looking for: By default, GAMS does not allow data statements to be redefined. If this option is activated the second or subsequent data statements are merged with entries of the previous ones. Note that all multi...
by davidwogan
5 years ago
Forum: Syntax
Topic: Appending to a parameter
Replies: 2
Views: 6589

Appending to a parameter

Hi everyone, I am constructing a linear program of an energy system with multiple sectors. For each sector, some calculations are performed and saved in an Excel workbook. Each workbook contains a portion of the data that makes up a parameter. I would like to define a parameter in a .gms file and ca...
by davidwogan
5 years ago
Forum: API
Topic: _gdxcc.so issue
Replies: 3
Views: 6400

Re: _gdxcc.so issue

Update! I now know the cause of the error. In following the Tutorial, I read the instructions for OS X as setting both the PATH and DYLD_LIBRARY_PATH variables. Only one needs to bet set otherwise there is a conflict. This is mentioned in the tutorial "OS X: Try to find a system directory in th...
by davidwogan
5 years ago
Forum: API
Topic: _gdxcc.so issue
Replies: 3
Views: 6400

Re: _gdxcc.so issue

Hi Clemens, Thanks for your reply. The API should be installed properly (I ran 'python setup.py install' in '/Applications/GAMS25.0/sysdir/apifiles/Python/api_36' ). When echoing $PYTHONPATH it comes up empty. The error persists when pointing to /Users/davidwogan/anaconda3/lib/python3.6/site-package...
by davidwogan
5 years ago
Forum: API
Topic: _gdxcc.so issue
Replies: 3
Views: 6400

_gdxcc.so issue

Hi all, I am trying to set up my machine to use the Python API. I am following along the Tutorial and am having issues running transport1.py script after installing the API and packages. I receive the following message when trying to run the script: Davids-MacBook:python davidwogan$ python transport...