Search found 5 matches

by alodi
5 years ago
Forum: Tools
Topic: Problem with round-tripping variables using rgdx / wgdx
Replies: 10
Views: 12414

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

Hi Renger, hi Steve, thanks for your help. Providing the sets for the dimensions when writing to gdx does indeed solve the problem! Here is the solution based on the example, where I included the call to wgdx: > x=rgdx("test1.gdx", list(name="X", field="all")) > s=rgdx(...
by alodi
5 years ago
Forum: Tools
Topic: Problem with round-tripping variables using rgdx / wgdx
Replies: 10
Views: 12414

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

Hi, I modified your script slightly to have a variable (X) with two dimensions. The results are quite interesting. - Using execute_unload without specifying the variables that are to be saved to the gdx, a subsequent call to rgdx yields the correct domains: GAMS: execute_unload 'test1.gdx' R: > data...
by alodi
5 years ago
Forum: Tools
Topic: Problem with round-tripping variables using rgdx / wgdx
Replies: 10
Views: 12414

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

Hi Renger, thanks again for taking your time. It looks like there is no change in 1.0.4 regarding the observed behavior. In particular I could reproduce all steps in this issue and there is 1) no change in the layout of the domains when re-reading data from the gdx and 2) no compress flag available ...
by alodi
5 years ago
Forum: Tools
Topic: Problem with round-tripping variables using rgdx / wgdx
Replies: 10
Views: 12414

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

Hello, thanks for your help. In gdxrrw's version 1.0.2 (part of gams 25.1), there is, according to the documentation, no compress flag for rgdx available. This seems to be true: Error in rgdx(gdx, list(name = "v35_shEsPeT"), compress = T) : unused argument (compress = T) It seems to be the...
by alodi
5 years ago
Forum: Tools
Topic: Problem with round-tripping variables using rgdx / wgdx
Replies: 10
Views: 12414

Problem with round-tripping variables using rgdx / wgdx

Hello, I try to read a variable from a gdx file, write this variable to another gdx file and read it in again using the R bindings. > var <- rgdx("fulldata.gdx", list(name="v35_shEsPeT")) > str(var) List of 11 $ name : chr "v35_shEsPeT" $ type : chr "variable"...