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!

## Search found 4 matches

- 2 months ago
- Forum: Syntax
- Topic: Multiplying binary variables
- Replies:
**7** - Views:
**286**

- 2 months ago
- Forum: Syntax
- Topic: Multiplying binary variables
- Replies:
**7** - Views:
**286**

### 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!

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!

- 2 months ago
- Forum: Syntax
- Topic: Multiplying binary variables
- Replies:
**7** - Views:
**286**

### 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...

- 2 months ago
- Forum: Syntax
- Topic: Multiplying binary variables
- Replies:
**7** - Views:
**286**

### 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...