Search found 13 matches

by hermann.westerholt
4 months ago
Forum: Bugs
Topic: RGDX compress issue
Replies: 3
Views: 1058

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 ...
by hermann.westerholt
4 months ago
Forum: Syntax
Topic: Solve statement: $148 - Dimension different
Replies: 2
Views: 345

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
by hermann.westerholt
4 months ago
Forum: Syntax
Topic: Solve statement: $148 - Dimension different
Replies: 2
Views: 345

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. ...
by hermann.westerholt
4 months ago
Forum: Syntax
Topic: Cumulative sums
Replies: 5
Views: 522

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.
by hermann.westerholt
4 months ago
Forum: Syntax
Topic: Cumulative sums
Replies: 5
Views: 522

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...
by hermann.westerholt
4 months ago
Forum: Syntax
Topic: Cumulative sums
Replies: 5
Views: 522

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...
by hermann.westerholt
4 months ago
Forum: Tools
Topic: GDXMRW installation issues
Replies: 0
Views: 425

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...
by hermann.westerholt
5 months ago
Forum: Bugs
Topic: RGDX compress issue
Replies: 3
Views: 1058

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...
by hermann.westerholt
5 months ago
Forum: API
Topic: model2tex on macOS
Replies: 8
Views: 830

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
by hermann.westerholt
5 months ago
Forum: API
Topic: model2tex on macOS
Replies: 8
Views: 830

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