Search found 214 matches
- 11 months ago
- Forum: Modeling
- Topic: Mixed Complementarity problem with PATH returns solution that is infeasible
- Replies: 1
- Views: 1646
Re: Mixed Complementarity problem with PATH returns solution that is infeasible
Ryan, The solution PATH is returning is a valid solution. With complementarity models, the type of inequality you use when defining the function (Equ6 in your case) does not play a role in defining the problem. It is essentially ignored. Consider the matched pair f() perp-to L <= x <= U. In your cas...
- 11 months ago
- Forum: Modeling
- Topic: Error in Equation
- Replies: 2
- Views: 1205
Re: Error in Equation
Hello,
You have declared parameter d(i,j) but you reference d(r,c). That won't work.
-Steve
You have declared parameter d(i,j) but you reference d(r,c). That won't work.
-Steve
- 11 months ago
- Forum: Modeling
- Topic: Solve aborted Error
- Replies: 12
- Views: 4142
Re: Solve aborted Error
Hermela,
I don't see the files 2simulation.log and 2simulation.lst in your attachments. If you send those, it is more likely you'll get good help.
-Steve
I don't see the files 2simulation.log and 2simulation.lst in your attachments. If you send those, it is more likely you'll get good help.
-Steve
- 11 months ago
- Forum: Modeling
- Topic: Solve aborted Error
- Replies: 12
- Views: 4142
Re: Solve aborted Error
Hermela,
I don't see the file 2simulation.log in the .zip file. Ditto for 2simulation.lst. If you send those, it is more likely you'll get good help.
-Steve
I don't see the file 2simulation.log in the .zip file. Ditto for 2simulation.lst. If you send those, it is more likely you'll get good help.
-Steve
- 11 months ago
- Forum: Syntax
- Topic: Is there a way to $include csv files into parameters/sets?
- Replies: 2
- Views: 2586
Re: Is there a way to $include csv files into parameters/sets?
Hello, The empty GDX file may go back to cases where csv2gdx encounters an error and returns an error code. For example, with an empty (zero-length) CSV file I get an empty GDX file if csv2gdx fails but a nice GDX file if csv2gdx runs cleanly. fractal:/home/sdirkse/models/csv$ csv2gdx emptyNoHeader....
- 11 months ago
- Forum: Modeling
- Topic: Solve aborted Error
- Replies: 12
- Views: 4142
Re: Solve aborted Error
Hermela,
I looked at the 1model.log file in the .zip you sent. It looks like a normal and successful run. Where are you seeing errors? Please be specific about where you see errors, and why you consider them to be so.
-Steve
I looked at the 1model.log file in the .zip you sent. It looks like a normal and successful run. Where are you seeing errors? Please be specific about where you see errors, and why you consider them to be so.
-Steve
- 1 year ago
- Forum: Modeling
- Topic: HELP!Questions about linear planning
- Replies: 3
- Views: 1609
Re: HELP!Questions about linear planning
Hello, If you use better names, the model explains itself. This can be very useful when starting to write models. For example, I would expect a model about diets to have a set for the possible foods to choose from. This set could better be named food[/code than i or j. Ditto for the set of nutrients...
- 1 year ago
- Forum: Syntax
- Topic: save time solution with Xpress
- Replies: 2
- Views: 2280
Re: save time solution with Xpress
Hello,
As a first cut, you could take the solve time from <modelname>.resusd, save it as a scalar in GAMS, write this scalar to GDX, and read the GDX to Matlab via GAMS Transfer Matlab (i.e. GTM).
HTH,
-Steve
As a first cut, you could take the solve time from <modelname>.resusd, save it as a scalar in GAMS, write this scalar to GDX, and read the GDX to Matlab via GAMS Transfer Matlab (i.e. GTM).
HTH,
-Steve
- 1 year ago
- Forum: Tools
- Topic: cutstrategy with xpress in Gams
- Replies: 2
- Views: 5617
Re: cutstrategy with xpress in Gams
Hello,
To pass solver-specific options (like the XPRESS cutstrategy parameter) to a solver, use a solver options file.
https://www.gams.com/latest/docs/UG_SolverUsage.html
https://www.gams.com/latest/docs/S_XPRE ... SS_OPTIONS
-Steve
To pass solver-specific options (like the XPRESS cutstrategy parameter) to a solver, use a solver options file.
https://www.gams.com/latest/docs/UG_SolverUsage.html
https://www.gams.com/latest/docs/S_XPRE ... SS_OPTIONS
-Steve
- 1 year ago
- Forum: API
- Topic: Gamstransfer not available for this version of R
- Replies: 2
- Views: 4883
Re: Gamstransfer not available for this version of R
I tried this on my Windows 11 machine, and I get gamstransfer installed on R 4.2.2 without a problem. I did this in RStudio: RStudio 2022.12.0+353 "Elsbeth Geranium" Release (7d165dcfc1b6d300eb247738db2c7076234f6ef0, 2022-12-03) for Windows Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWe...