Running NEOS from Python API , importing data from excel

Questions on using the GAMS APIs (Python, .NET, etc.)
Post Reply
danish3186
User
User
Posts: 6
Joined: 2 years ago

Running NEOS from Python API , importing data from excel

Post by danish3186 »

I am trying to run a model using NEOS from Python
For modelling I am using:

Code: Select all

def get_model_text():
For the data , I am importing it from excel.

Then, I want to combine it and send it to NEOS to solve.

The example in GAMS implementing NEOS uses a .gms file which contains the data and model both, as implemented by the following code:

Code: Select all

model = 'trnsport' # str | Name of the main .gms file
    ws.gamslib(model)
I am unable to build my model from text and excel and send it to NEOS.

Has anyone implemented this?

Thank You!
Post Reply