Search found 215 matches
- 9 months ago
- Forum: Syntax
- Topic: JAMS Pre processing failed
- Replies: 5
- Views: 9796
Re: JAMS Pre processing failed
Hello, Your EMP info file is not proper. It must start with a keyword, not a variable or equation name. In the docs for bilevel models there are two examples (bard511 and ccmg71). https://gams.com/latest/docs/S_JAMS.html#EMP_BILEVEL_PROGRAMS Each example includes a link to the complete model in the ...
- 11 months ago
- Forum: Modeling
- Topic: Mixed Complementarity problem with PATH returns solution that is infeasible
- Replies: 1
- Views: 1667
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: 1223
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
- 1 year ago
- Forum: Modeling
- Topic: Solve aborted Error
- Replies: 12
- Views: 4315
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
- 1 year ago
- Forum: Modeling
- Topic: Solve aborted Error
- Replies: 12
- Views: 4315
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
- 1 year ago
- Forum: Syntax
- Topic: Is there a way to $include csv files into parameters/sets?
- Replies: 2
- Views: 2607
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....
- 1 year ago
- Forum: Modeling
- Topic: Solve aborted Error
- Replies: 12
- Views: 4315
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: 1657
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: 2339
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: 5956
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