Search found 150 matches

by Renger
1 week ago
Forum: Syntax
Topic: Produce .lst, .gdx and .xls for each solve statement
Replies: 3
Views: 97

Re: Produce .lst, .gdx and .xls for each solve statement

Hi You could use setglobal to define your scenarios and then write a batch "myrun.bat" file with the following lines (I usually do stuff like this writing a small gams program with the put utility and the loops I use in the model): call gams --scenario=myscenario1_1_1 --myparam1=1 myparam2=1 myparam...
by Renger
1 week ago
Forum: Bugs
Topic: An unknown variable
Replies: 2
Views: 73

Re: An unknown variable

Hi When I run your model, I get the following errors: **** $65,56,65,56,65,56,256 **** 56 Endogenous operands for * not allowed in linear models **** 65 Discrete variables can only appear in MIP, RMIP, MINLP **** RMINLP MIQCP or RMIQCP MPEC RMPEC problems. **** 256 Error(s) in analyzing solve statem...
by Renger
1 week ago
Forum: Solvers
Topic: JAMS Pre Processing Failed - Solver Error
Replies: 2
Views: 106

Re: JAMS Pre Processing Failed - Solver Error

Hi I ran your model on my notebook (Gams 24.9.1 with CPLEX) and it runs fine. Here is the essential output: EXECUTION TIME = 0.172 SECONDS 4 MB 24.9.1 r63795 WEX-WEI GAMS 24.9.1 r63795 Released Aug 30, 2017 WEX-WEI x86 64bit/MS Windows 07/14/18 16:37:20 Page 5 G e n e r a l A l g e b r a i c M o d e...
by Renger
1 week ago
Forum: Solvers
Topic: Non-Binary values taken by binary variables in GAMS/LINDO
Replies: 1
Views: 89

Re: Non-Binary values taken by binary variables in GAMS/LINDO

Hi
Perhaps this might help you (same issue when using dicopt: viewtopic.php?f=13&t=6802&p=15100&hilit ... ous#p15100.
Cheers
Renger
by Renger
1 week ago
Forum: Modeling
Topic: logical errors for an economic model
Replies: 4
Views: 194

Re: logical errors for an economic model

This is just information by the solver and not an error. Check the manual for more information on the reduced gradient information.
CHeers
Renger
by Renger
1 week ago
Forum: Modeling
Topic: How to compute endogenous cost expressions in GAMs
Replies: 3
Views: 114

Re: How to compute endogenous cost expressions in GAMs

Hi
As in most modeling and programming languages there is a way to write the square root. In Gams there is an explicit function SQRT(x) or you can use x**0.5.

Cheers
Renger
by Renger
1 week ago
Forum: Modeling
Topic: Using same identifier twice in variable.
Replies: 2
Views: 57

Re: Using same identifier twice in variable.

Hi
Use an alias and define the parameter like this

alias(i,j);
mult(i,j) = a(i) * a(j);

cheers
Renger
by Renger
1 week ago
Forum: Modeling
Topic: Error 495 and Error 141 : Load Dimensions are different and symbol declared but no values have been assigned
Replies: 1
Views: 52

Re: Error 495 and Error 141 : Load Dimensions are different and symbol declared but no values have been assigned

Hi
You have a two-dimensional variable with 1 dimension in the row and 1 dimension in the column, so you should inform gdxxrw accordingly with rdim=1 cdim=1 instead of 1 0.
Cheers
Renger
by Renger
1 week ago
Forum: Modeling
Topic: GAMS parameter issue
Replies: 6
Views: 277

Re: GAMS parameter issue

Hi
As written in the Rules to this forum

...send the self-contained, executable GAMS code that reproduces your problem to the group.
...describe your problem as clearly as possible.

You might try to reformulate your question, so people will be able to answer it.

CHeers
Renger
by Renger
1 week ago
Forum: Modeling
Topic: rmip solver in GAMS - Reg
Replies: 1
Views: 44

Re: rmip solver in GAMS - Reg

Hi
Just do an internet search for Relaxed Mixed Integer Programming.
Cheers
Renger