Search found 545 matches

by Renger
1 year ago
Forum: Tools
Topic: Problem with round-tripping variables using rgdx / wgdx
Replies: 10
Views: 3056

Re: Problem with round-tripping variables using rgdx / wgdx

Hi Alois Could you send code that reproduces this problem. Here is a small model you could use for generating variables. set s /a,b,c/, t /1,2,3/; variables Y(s) Sectors, X(t) Technologies, dummy Dummy variable; equations eqY(s) eqX(t) dummyeq; eqY(s).. Y(s) =E= 1; eqX(t).. X(t) =E= 1; dummyeq.. dum...
by Renger
1 year ago
Forum: Tools
Topic: Problem with round-tripping variables using rgdx / wgdx
Replies: 10
Views: 3056

Re: Problem with round-tripping variables using rgdx / wgdx

Hi Alois
There is a newer version 1.0.4. Perhaps updating might resolve this problem: https://support.gams.com/doku.php?id=gd ... ams_and_r
Cheers
Renger
by Renger
1 year ago
Forum: Tools
Topic: SAS files into GAMS
Replies: 11
Views: 3300

Re: SAS files into GAMS

Hi Irena
I would recommend to use R to read SAS-files. You can then export the data to a gdx file using gdxxrw.
Cheers
Renger
by Renger
1 year ago
Forum: Tools
Topic: Problem with round-tripping variables using rgdx / wgdx
Replies: 10
Views: 3056

Re: Problem with round-tripping variables using rgdx / wgdx

Hi
Perhaps you should try the option compress = TRUE

if TRUE, compress the factors in the data frame so they only include required levels. For the default compress=FALSE, each factor includes levels for the entire universe of UELs in the GDX file

Hope this helps

Renger
by Renger
1 year ago
Forum: Syntax
Topic: .inc files
Replies: 13
Views: 7298

Re: .inc files

Hi
GDXXRW has the option "CheckDate": it checks before importing the data from an excel sheet if the sheet has been changed in the meantime. If not, it will skip the import and use the already available gdx file from the most recent import.
Cheers
Renger
by Renger
1 year ago
Forum: Syntax
Topic: Problem in changing the parameter.
Replies: 6
Views: 1500

Re: Problem in changing the parameter.

Hi Luca If you are sure that the equations are the same, make a check by writing a report parameter that looks at the differences between solutions (just write out the matrix fssol for every solve and compare them. Thy dynamic set works fine (one element of the set is added in every run). Cheers Ren...
by Renger
1 year ago
Forum: Modeling
Topic: WGDX help for newbie
Replies: 1
Views: 697

Re: WGDX help for newbie

Hi
Could you please post a running example of the matlab code, i.e. how you generate the variable n? Don't expect people to infer parts of your code .
CHeers
Renger
by Renger
1 year ago
Forum: Syntax
Topic: Problem in changing the parameter.
Replies: 6
Views: 1500

Re: Problem in changing the parameter.

Hi Luca
It looks obvious that you have different solutions as you choose different values for the parameters.
The question on the dynamic set is hard to answer without the code to run the model and the exact error.
Cheers
Renger
by Renger
1 year ago
Forum: Modeling
Topic: Can someone help me with GAMS error 148. I have attached the code with errors.l
Replies: 5
Views: 1310

Re: Can someone help me with GAMS error 148. I have attached the code with errors.l

Hi Take a good look at the error messages. They appear right where you made an error. 163 eq1.. Z =e=(1)*sum((d,dl),pdemand(d,dl)*Charge_DSO(d,dl)) 164 + sum (GSP,Pgrid(GSP,d,dl)*LMP(GSP,d,dl)) **** $149,149 $149,149 **** 149 Uncontrolled set entered as constant Gams tells you what went wrong: You u...
by Renger
1 year ago
Forum: Modeling
Topic: Can someone help me with GAMS error 148. I have attached the code with errors.l
Replies: 5
Views: 1310

Re: Can someone help me with GAMS error 148. I have attached the code with errors.l

Hi

Michael was faster with replying.
Another hint:
Have a look at https://www.gams.com/latest/docs/UG_FixingErrors.html and search for "errmsg". If you use the trick described there, the error messages will appear in your listing file directly below the error itself.

Cheers
Renger