Search found 8 matches

by T_k
6 months ago
Forum: Syntax
Topic: How to terminate mpec sooner
Replies: 1
Views: 8561

How to terminate mpec sooner

I am using mpec=nlpec to solve a mpec problem. however, the solver keeps running for a long time. i want to terminate early. How do I terminate after say a gap of 0.03 and still get the full feasible solution?
by T_k
1 year ago
Forum: Syntax
Topic: Running NEOS from Python API
Replies: 7
Views: 8018

Re: Running NEOS from Python API

Is it possible to export the optimization output in an excel file by running NEOS from Python API?
by T_k
1 year ago
Forum: API
Topic: Error while running a gams file from python (macOS)
Replies: 1
Views: 4989

Error while running a gams file from python (macOS)

Hello, I am trying to run a gams file from a python program and get its output back to python again. However, I am getting this error: *** Unexpected EInOutError *** Msg=I/O error on write of file: No such file or directory *** compiling line 22 *** Please report to support@gams.com *** including ve...
by T_k
1 year ago
Forum: Tools
Topic: reading and writing data from/to excel (macOS)
Replies: 4
Views: 5135

Re: reading and writing data from/to excel (macOS)

Thank you.

How do I run a gams file from Python?
by T_k
1 year ago
Forum: Tools
Topic: reading and writing data from/to excel (macOS)
Replies: 4
Views: 5135

reading and writing data from/to excel (macOS)

Hello,

I am using GAMS on macOS. How can I read/write data from/to an excel file? For example, attached is a classic example from GAMS model library. How can I export the solution variables to an excel file? How can I read the parameter values from an excel file?
transport.gms
(1.71 KiB) Downloaded 244 times
by T_k
1 year ago
Forum: Tools
Topic: Data exchange from excel to gams (on macOS)
Replies: 6
Views: 9377

Re: Data exchange from excel to gams (on macOS)

Hi Aileen, thanks for the explanation. I am wondering how we could be able to write data from GAMS to excel. I would be grateful if you provide me any resource or a simple example code.
by T_k
1 year ago
Forum: Modeling
Topic: GAMS error in equation when using conditional sum
Replies: 2
Views: 1330

Re: GAMS error in equation when using conditional sum

Thank you. I am sorry. Ill make sure to follow the forum rules for my future posts.
by T_k
1 year ago
Forum: Modeling
Topic: GAMS error in equation when using conditional sum
Replies: 2
Views: 1330

GAMS error in equation when using conditional sum

online truck routing.gms I am new to GAMS. I apologize in advance if I am making silly mistakes. I am getting the following errors when I attempt to solve the model on the equation Xlt_eq- Error 8 ')' expected *** Error 10 in ',' expected *** Error 119 Number (primary) expected *** Error 8 ')' expe...