Search found 6 matches
- 3 years ago
- Forum: API
- Topic: Non-ASCII characters in .gdx created with Python API
- Replies: 2
- Views: 4867
Re: Non-ASCII characters in .gdx created with Python API
Thank you very much for the support! I just kept using the traditional IDE instead of GAMS Studio - old habits die hard, right?
- 3 years ago
- Forum: API
- Topic: Non-ASCII characters in .gdx created with Python API
- Replies: 2
- Views: 4867
Non-ASCII characters in .gdx created with Python API
I am struggling to work with the Python API when there are some interactions with .gdx files containing Non-ASCII characters. Of course one possible workaround would be to simply avoid such type of characters, but this is not the solution that I am looking for because in my application the .gdx file...
- 3 years ago
- Forum: API
- Topic: Defining initial values
- Replies: 1
- Views: 3372
Defining initial values
reactorModel_v6.gms I am currently struggling with the definition of initial conditions when using the Python API. As far as I understand, when running a model from GAMS IDE the level value is considered as the initial point of the search. Therefore, if I call the same solve statement twice without...
- 4 years ago
- Forum: API
- Topic: Reusing a model instance in different function calls
- Replies: 6
- Views: 6978
Re: Reusing a model instance in different function calls
Dear Clemens, I have attached an example of a workaround that I implemented instead of the solution that I was looking for. I hope this will make my intention clearer. The main problem is that I do not know beforehand what will be the values to be modified in the future, because they are calculated ...
- 4 years ago
- Forum: API
- Topic: Reusing a model instance in different function calls
- Replies: 6
- Views: 6978
Re: Reusing a model instance in different function calls
Dear Clemens, Thank you for your advice. From my understanding of such example, I was able to write the attached piece of code, where instead of just calling ws.add_checkpoint() to add a new checkpoint, I can reuse a previous one. However, this does not solve my problem because the commands in lines...
- 4 years ago
- Forum: API
- Topic: Reusing a model instance in different function calls
- Replies: 6
- Views: 6978
Reusing a model instance in different function calls
Dear all, I am implementing a model predictive controller, which means that I have to solve as fast as possible a series of optimization problems with the same structure but with different data. I have successfully adapted the example of Python API library (transport11.py) to change a parameter in m...