Search found 161 matches

by Renger
2 days ago
Forum: Syntax
Topic: .inc files
Replies: 6
Views: 97

Re: .inc files

Hi
GDXXRW has the option "CheckDate": it checks before importing the data from an excel sheet if the sheet has been changed in the meantime. If not, it will skip the import and use the already available gdx file from the most recent import.
Cheers
Renger
by Renger
3 days ago
Forum: Syntax
Topic: Problem in changing the parameter.
Replies: 6
Views: 139

Re: Problem in changing the parameter.

Hi Luca If you are sure that the equations are the same, make a check by writing a report parameter that looks at the differences between solutions (just write out the matrix fssol for every solve and compare them. Thy dynamic set works fine (one element of the set is added in every run). Cheers Ren...
by Renger
4 days ago
Forum: Modeling
Topic: WGDX help for newbie
Replies: 1
Views: 57

Re: WGDX help for newbie

Hi
Could you please post a running example of the matlab code, i.e. how you generate the variable n? Don't expect people to infer parts of your code .
CHeers
Renger
by Renger
4 days ago
Forum: Syntax
Topic: Problem in changing the parameter.
Replies: 6
Views: 139

Re: Problem in changing the parameter.

Hi Luca
It looks obvious that you have different solutions as you choose different values for the parameters.
The question on the dynamic set is hard to answer without the code to run the model and the exact error.
Cheers
Renger
by Renger
4 days ago
Forum: Modeling
Topic: Can someone help me with GAMS error 148. I have attached the code with errors.l
Replies: 4
Views: 77

Re: Can someone help me with GAMS error 148. I have attached the code with errors.l

Hi Take a good look at the error messages. They appear right where you made an error. 163 eq1.. Z =e=(1)*sum((d,dl),pdemand(d,dl)*Charge_DSO(d,dl)) 164 + sum (GSP,Pgrid(GSP,d,dl)*LMP(GSP,d,dl)) **** $149,149 $149,149 **** 149 Uncontrolled set entered as constant Gams tells you what went wrong: You u...
by Renger
1 week ago
Forum: Modeling
Topic: Can someone help me with GAMS error 148. I have attached the code with errors.l
Replies: 4
Views: 77

Re: Can someone help me with GAMS error 148. I have attached the code with errors.l

Hi

Michael was faster with replying.
Another hint:
Have a look at https://www.gams.com/latest/docs/UG_FixingErrors.html and search for "errmsg". If you use the trick described there, the error messages will appear in your listing file directly below the error itself.

Cheers
Renger
by Renger
1 week ago
Forum: Syntax
Topic: Can GAMS do matrix calculations?
Replies: 1
Views: 28

Re: Can GAMS do matrix calculations?

Hi

Just enter "matrix" in the search field on the Gams homepage and you will find lots of information (and read the "rules" for this forum ;) ).

Cheers

Renger
by Renger
2 weeks ago
Forum: Syntax
Topic: Precedence constraint
Replies: 4
Views: 121

Re: Precedence constraint

Sorry Ike, no idea to rewrite the equation.
Renger
by Renger
2 weeks ago
Forum: Solvers
Topic: Error: Endogenous function arguments not allowed in linear models
Replies: 1
Views: 48

Re: Error: Endogenous function arguments not allowed in linear models

Hi

You could make it a MINLP instead of a MIP. This solves fine using DICOPT.

Cheers
Renger
by Renger
2 weeks ago
Forum: Syntax
Topic: Precedence constraint
Replies: 4
Views: 121

Re: Precedence constraint

Hi Ike
It is hard to say what the problem is as the syntax of this specific constraint looks fine.
Could you attach the model?
Cheers
Renger