Search found 639 matches
- 3 years ago
- Forum: Syntax
- Topic: EXIT CODE =3 , the equation is infes
- Replies: 11
- Views: 8761
Re: EXIT CODE =3 , the equation is infes
Hi As you don't seem to scale the model 1E-5 is negligible. However, not that convergence will probably only to this level. Some notes to your model: - You don't have to fix the variables to check the model. The better and more efficient way is to set the iteration limit to zero (cge.iterlim = 0) an...
- 3 years ago
- Forum: Syntax
- Topic: Importing data from Excel | sets as domain of parameter
- Replies: 5
- Views: 4170
Re: Importing data from Excel | sets as domain of parameter
Hi Simon
I am at a loss. But it isn't very important as you read lsl correctly defined over the sets.
Cheers
Renger
I am at a loss. But it isn't very important as you read lsl correctly defined over the sets.
Cheers
Renger
- 3 years ago
- Forum: Modeling
- Topic: Molecular structure formulating problem
- Replies: 1
- Views: 1708
Re: Molecular structure formulating problem
Hi Ashraf
If you want the help of people in the forum, please read the "Rules" of this forum and formulate your question according to these rules.
Cheers
Renger
If you want the help of people in the forum, please read the "Rules" of this forum and formulate your question according to these rules.
Cheers
Renger
- 3 years ago
- Forum: Syntax
- Topic: Importing data from Excel | sets as domain of parameter
- Replies: 5
- Views: 4170
Re: Importing data from Excel | sets as domain of parameter
Hi Simon
Could you attach your excel sheet, so I can check what the problem is.?
Cheers
Renger
Could you attach your excel sheet, so I can check what the problem is.?
Cheers
Renger
- 3 years ago
- Forum: Syntax
- Topic: Exit code = 2, Endogenous relational operations require model type "dnlp"?
- Replies: 3
- Views: 2671
Re: Exit code = 2, Endogenous relational operations require model type "dnlp"?
Hi
You can use $-operators in equations, however, you can't, in an MCP model, use variables in the $-conditions. You should replace QA by QA0.
Read my answers to this topic this.
Cheers
Renger
You can use $-operators in equations, however, you can't, in an MCP model, use variables in the $-conditions. You should replace QA by QA0.
Read my answers to this topic this.
Cheers
Renger
- 3 years ago
- Forum: Tools
- Topic: Solving stochastic gams model multiple times in gams
- Replies: 4
- Views: 8466
Re: Solving stochastic gams model multiple times in gams
Hi The error means that you have declared a parameter, variable or set within the loop. Assignments (... = ...;) are allowed but declaration are not. YOu have to put the declarations before the loop starts. Renger PS. Your code doesn't reproduce this error. Next time, please add the code that reprod...
- 3 years ago
- Forum: Syntax
- Topic: matrix error the objective variable has vanished from the model
- Replies: 8
- Views: 5957
Re: matrix error the objective variable has vanished from the model
There is a button "new topic" in every board ("syntax", "solvers", etc.) .
Cheers
Renger
Cheers
Renger
- 3 years ago
- Forum: Syntax
- Topic: rPower: FUNC DOMAIN: x**y, x=0,y<0
- Replies: 5
- Views: 5244
Re: rPower: FUNC DOMAIN: x**y, x=0,y<0
Hi
You can add the dollar constraint like this:
Cheers
Renger
You can add the dollar constraint like this:
Code: Select all
deltaCET(a)$(PDA0(a) > 0 and QE(0) > 0) =PDA0(a)*QDA0(a)**(1-rhoCET(a))/(PDA0(a)*QDA0(a)**(1-rhoCET(a))+PE0(a)*QE0(a)**(1-rhoCET(a)));
Renger
- 3 years ago
- Forum: Syntax
- Topic: rPower: FUNC DOMAIN: x**y, x=0,y<0
- Replies: 5
- Views: 5244
Re: rPower: FUNC DOMAIN: x**y, x=0,y<0
Hi This kind of error is mostly due to having no starting values for the variables. Gams assumes in that case 0, causing an error in the power function. As your model is a CGE model, you should start with an equilibrium based on your SAM data. This means if you plug in all the values of your SAM and...
- 3 years ago
- Forum: Modeling
- Topic: e-Constraint AUGMECON2 decision variables
- Replies: 6
- Views: 5193
Re: e-Constraint AUGMECON2 decision variables
Hi Jan
Here a trick to do that:
Cheers
Renger
Here a trick to do that:
Code: Select all
* Ad the following to your code
parameter counter /0/;
repeat
counter = counter + 1;
...
results4(solu,k,"z")$(solu.val = counter) = Z.L(k);
results3(solu,j, "X")$(solu.val = counter) = X.L(j););
...
Renger