Search found 16 matches

by M.Walde
6 years ago
Forum: Syntax
Topic: Synthax of binary variables
Replies: 3
Views: 3526

Synthax of binary variables

Hey guys, sorry for the spaming lately, but as I said I'm quite a beginner and thus there are a lot of question, which I can't answer just with the documentary. I'm now using binary variables in my model. But I got a problem with the execution, which I don't understand. This is the important code: i...
by M.Walde
6 years ago
Forum: Syntax
Topic: logical condition with equation definitions and variables
Replies: 4
Views: 4891

Re: logical condition with equation definitions and variables

Thank you very much for your fast answer!
It was really helpful.
by M.Walde
6 years ago
Forum: Syntax
Topic: logical condition with equation definitions and variables
Replies: 4
Views: 4891

Re: logical condition with equation definitions and variables

Thanks a lot for your help. I see, that my declaration didn't really make sense. I corrected it. Anyway unfortunately this doesn't solve my problem. Now I get "error 52 Endogenous $-control operations not allowed" as an error, which is basically the same. I found this threat in the archive...
by M.Walde
6 years ago
Forum: Syntax
Topic: logical condition with equation definitions and variables
Replies: 4
Views: 4891

logical condition with equation definitions and variables

Hi guys, I got another question about logical conditions for equations. As I saw in the documentation it is illegal to use if-else operations for the definition of equations. That's why I wanted to use the $ operator to put logical conditions into account. This is the important code: sets i time ste...
by M.Walde
6 years ago
Forum: Syntax
Topic: Assign Values to variables
Replies: 3
Views: 4411

Re: Assign Values to variables

Thank you for your fast reply!
Your explanation helped me a lot.
by M.Walde
6 years ago
Forum: Syntax
Topic: Assign Values to variables
Replies: 3
Views: 4411

Assign Values to variables

Hey guys, I'm a beginner, when it comes to GAMS. I have a question about a variable. I'm right now trying to model a model of a thermal energy storage. For this I need to use ordered sets to calculate the temperature with respect to the temperature of the time step before. For this I implemented the...