Search found 3 matches

by bdasovic
1 year ago
Forum: API
Topic: Python API trigger to solve problem from a file
Replies: 4
Views: 8194

Re: Python API trigger to solve problem from a file

Dear Michael,

I am really sorry if my questions are trivial, but as I said earlier I don't have much experience with Python. Thank you for your help and suggestions, I have managed to make my code work as intended.

Thank you once again :D

bdasovic
by bdasovic
1 year ago
Forum: API
Topic: Python API trigger to solve problem from a file
Replies: 4
Views: 8194

Re: Python API trigger to solve problem from a file

The very first example (https://www.gams.com/latest/docs/apis/examples_python/transport1_8py_source.html) should do most of this. You need to add the working_directory=r'C:\My_problem' argument to the GamsWorkspace constructor. Don't do the "ws.gamslib('trnsport')" and point to your GAMS ...
by bdasovic
1 year ago
Forum: API
Topic: Python API trigger to solve problem from a file
Replies: 4
Views: 8194

Python API trigger to solve problem from a file

Hello everyone and thanks in forehand for any help with my problem. So, I have developed my model, and let's just say it is placed on my PC in the directory "C:\My_problem\My_model.gms". The directory contains my excel file with problem input data and my GDX file. When I start optimization...