## Search found 13 matches

6 months ago
Forum: Bugs
Topic: RGDX compress issue
Replies: 3
Views: 1159

### Re: RGDX compress issue

Steve, thank you very much for your detailed response! I am indeed keen on learning more about GDXMRW and would be glad if you could answer the following questions: 1. I use the GDX file prices.gdx (see previous post) as input in my GAMS model. It has been created with the wgdx function. Am I right ...
6 months ago
Forum: Syntax
Topic: Solve statement: \$148 - Dimension different
Replies: 2
Views: 396

### Re: Solve statement: \$148 - Dimension different

Dear Renger,

thank you once again for your great help. I promise that next time, I will take a closer look at the documentation before posting here.

Best,
Hermann
6 months ago
Forum: Syntax
Topic: Solve statement: \$148 - Dimension different
Replies: 2
Views: 396

### Solve statement: \$148 - Dimension different

Hi, my current model contains no visible errors, but my objective variable in the solve statement is flagged as being "referenced with more/less indices as declared" (\$148). I have even tried including its domain in the solve statement ("minimizing C(w)" instead of "minimizing C"), but to no avail. ...
6 months ago
Forum: Syntax
Topic: Cumulative sums
Replies: 5
Views: 567

### Re: Cumulative sums

Oh boy ... I just realised that GAMS does not display multiplications of variables - instead, subsequent variables are replaced by their initial values! It all makes sense now.

Thank you very much, Renger, this has been a valuable lesson.
6 months ago
Forum: Syntax
Topic: Cumulative sums
Replies: 5
Views: 567

### Re: Cumulative sums

Dear Renger, thank you very much for your response. I am afraid that my problem description was not accurate enough: the LHS/RHS notation GAMS uses is not the issue (I hope), but I am struggling to transform the equation I have jotted down on paper into correct GAMS code. For your example with simpl...
6 months ago
Forum: Syntax
Topic: Cumulative sums
Replies: 5
Views: 567

### Cumulative sums

Hi all, I am trying to use a cumulative sum in one of my equations. This is what I am trying to achieve: cumsum.png This is the relevant section of my current code: set i=/1*3/; alias(i,j); Parameters CPRL(i) Production cost for given week and given partition [EUR] /1 456939.268307277 2 459320.00413...
7 months ago
Forum: Tools
Topic: GDXMRW installation issues
Replies: 0
Views: 478

### GDXMRW installation issues

Hi, I am using GAMS 25.0.2 in combination with Matlab R2017b on macOS 10.13.3. Generally, this seems to be working fine, but I have recently run into a functionality issue that I have already reported in this thread . I was (and still am) not sure wether my GDXMRW utilities are set up properly, so I...
7 months ago
Forum: Bugs
Topic: RGDX compress issue
Replies: 3
Views: 1159

### RGDX compress issue

Hi, I am having some trouble with the compress feature of the GDXMRW tool (GAMS 24.9) in Matlab (R2017b). I hope that the following piece of code can explain my problem (Matlab and GDX file also in the attachments): %% Introductory text for clarity: % price.gdx contains parameters of price data, suc...
7 months ago
Forum: API
Topic: model2tex on macOS
Replies: 8
Views: 912

### Re: model2tex on macOS

Dear Clemens,

I got rid of the singleton set and it all works like a charm, thank you so much!

Best regards,
Hermann
7 months ago
Forum: API
Topic: model2tex on macOS
Replies: 8
Views: 912

### Re: model2tex on macOS

Clemens,

Please find attached the requested MWE. Uploading GDX files to the forum seems to be impossible, so I put the files into an archive. As you can see, most of my modelling is done in Matlab and I use the Matlab-GAMS interface GDXMRW. Could this possibly be the problem?

Best,
Hermann