Hi
Are you using Gams 22.2 or a newer version? This might be causing the problem. Download a newer version and try if it works.
Cheers
Renger
Search found 639 matches
- 4 years ago
- Forum: API
- Topic: GamsException: Error retrieving audit info
- Replies: 3
- Views: 5034
- 4 years ago
- Forum: Modeling
- Topic: assign parameters in sequence
- Replies: 4
- Views: 5141
Re: assign parameters in sequence
Hi
You are assigning the value to a vector (P_1(ii)) and not to a scalar P_1=P_rec(ii). So,just replace P_1(ii) in your loop by P_1.
Cheers
Renger
You are assigning the value to a vector (P_1(ii)) and not to a scalar P_1=P_rec(ii). So,just replace P_1(ii) in your loop by P_1.
Cheers
Renger
- 4 years ago
- Forum: Modeling
- Topic: Coding second order cone constraint in GAMS
- Replies: 3
- Views: 2614
Re: Coding second order cone constraint in GAMS
Hi You define the equation over bi , but the equation itself is over bi and bj on the left hand side: conic(bi).. V(bi)+V(bj) =C= sum(bj, (2*P(bi,bj) + 2*Q(bi,bj))) In this equation, Gams has to use one V(bj) but is not clear which bj to choose. Then on the RHS you use at the same time the sum over ...
- 4 years ago
- Forum: Syntax
- Topic: Error in the constraint writing
- Replies: 8
- Views: 5179
Re: Error in the constraint writing
Hi Stef As I wrote before,f you sum over two indices, they should be surrounded by parentheses (e.g. sum(i,t....), b(i,t)*x(i,t));). Furthermore, your summing of the objective misses a closing matrix. As GAMS collects all the set elements used in a model from begin to start in a unified element list...
- 4 years ago
- Forum: Syntax
- Topic: Export listing files as pdf or Excel file
- Replies: 1
- Views: 1731
Re: Export listing files as pdf or Excel file
Hi
Exporting your listing directly to pdf or excel is not possible in GAMS. You can of course print your listing as a pdf-file. If you want your results to be exported to Excel, you might want to look at the gdxxrw utility (see the GAMS documentation).
Hope this helps,
Renger
Exporting your listing directly to pdf or excel is not possible in GAMS. You can of course print your listing as a pdf-file. If you want your results to be exported to Excel, you might want to look at the gdxxrw utility (see the GAMS documentation).
Hope this helps,
Renger
- 4 years ago
- Forum: Syntax
- Topic: How to reach the benchmark?
- Replies: 3
- Views: 4559
Re: How to reach the benchmark?
Hi Rodrigue I have a "3am-question" when teaching CGE. This is question that every student should be able to answer immediately and without hesitation when I would wake them at that time. The question is "What is the most important point when debugging your benchmark?" The answer...
- 4 years ago
- Forum: Tools
- Topic: Error 207 - A phantom element must have a zero value
- Replies: 4
- Views: 4734
Re: Error 207 - A phantom element must have a zero value
Hi Tonanto
The last reply was 2 years ago, so it would be better to post your problem instead of relying on a continuation of this post.
Cheers
Renger
The last reply was 2 years ago, so it would be better to post your problem instead of relying on a continuation of this post.
Cheers
Renger
- 4 years ago
- Forum: Syntax
- Topic: Error in the constraint writing
- Replies: 8
- Views: 5179
Re: Error in the constraint writing
Hi Stef It would be better to attach the code..., but here some hints. Look always at the first error that appears. Following errors can be caused by the first error. In your case error 148 148 Dimension different - The symbol is referenced with more/less 148 indices as declared It looks like you de...
- 4 years ago
- Forum: Modeling
- Topic: All elements of a set before a certain element
- Replies: 1
- Views: 1704
Re: All elements of a set before a certain element
Hi Zack I don't know if this helps: set i /first, second, third, fourth/; parameter TT(i); TT('first')=0; TT('second')=0; TT('third')=1; TT('fourth')=0; parameter k(i); alias(i,j); K(i) = 1-sum(j$(ord(j) < ord(i)+1), TT(j));; display k; This gives: ---- 15 PARAMETER k first 1.000, second 1.000 Cheer...
- 4 years ago
- Forum: Syntax
- Topic: problem with syntax of the equation
- Replies: 15
- Views: 18010
Re: problem with syntax of the equation
Hi
It is not clear what you want to do with this equation. My advice: write it down as a proper mathematical expression, read how to use the sum in GAMS as well as the $-sign, and proceed from there.
Cheers
Renger
It is not clear what you want to do with this equation. My advice: write it down as a proper mathematical expression, read how to use the sum in GAMS as well as the $-sign, and proceed from there.
Cheers
Renger