Search found 5 matches

by jan_gh
3 weeks ago
Forum: Syntax
Topic: How can I change the folder where Gams saves the result.gdx file?
Replies: 1
Views: 65

How can I change the folder where Gams saves the result.gdx file?

Hi guys,

I have the problem, that I don't know how to change the destination where the result.gdx file is saved. It loads the input.gdx right (same folder where the project is stored). But why does it saves the output.gdx wrong?

Best,
Jan
by jan_gh
4 months ago
Forum: Syntax
Topic: Multiplying binary variables
Replies: 7
Views: 369

Re: Multiplying binary variables

Hi Cladepino,

yes exactly! If a(i1,t1)= 1 , the point i1 will have the colour t1.

Colours are just used as an example. But its: t colors /1,2,3 ... T/

Best and thank you!
by jan_gh
4 months ago
Forum: Syntax
Topic: Multiplying binary variables
Replies: 7
Views: 369

Re: Multiplying binary variables

Point i and j will still have the same color. If points are not connected they might have the same color, only if they are connected they must have.

Circles ( like < b(i1,i2) = 1 > and < b(i2,i1)=1 > ) are even not allowed. To avoid them the constraint < b(i,j)+b(j,i) <=1 is implemented.

Thank you!
by jan_gh
4 months ago
Forum: Syntax
Topic: Multiplying binary variables
Replies: 7
Views: 369

Re: Multiplying binary variables

Hi Claudio, thank you very much for your reply! I'm sorry for not exactly described the problem, I will clarify. I have <b(i,j)> which is a (nxn) binary variable, whereas <j> is an alias of <i>. Then I have <a(i,t)> which is a (nxm) binary variable. I want to set, that whenever <b(i,j)> is 1, <a(i,t...
by jan_gh
4 months ago
Forum: Syntax
Topic: Multiplying binary variables
Replies: 7
Views: 369

Multiplying binary variables

Hi all! I'm new with Gams, I thing that problem is easy to solve. Could you please help me? 1) I try to avoid to multiply binary variables. But if I'm doing so and using the MINLP solver, the results are not binary anymore. How can that be? So the equations are met, but the binary variables are inte...