### controling equations with subsets

Posted:

**Fri Aug 24, 2018 5:56 pm**Dear all,

I have the following two sets

and the following two parameters/variables:

If I now want a constraint equation to hold over subset_of_technology, which of the following two ways is possible?:

or

Unfortunately I couldn't find any information on this or just used the wrong search string .... If anyone could help me out, I'd be really grateful!

Best,

F.

I have the following two sets

Code: Select all

```
technology
subset_of_tech(technology)
```

Code: Select all

```
var(technology)
par(technology)
```

Code: Select all

`constraint(subset_of_tech).. var(technology) =g= par(technology)`

Code: Select all

`constraint(subset_of_tech).. var(subset_of_tech) =g= par(subset_of_tech)`

Unfortunately I couldn't find any information on this or just used the wrong search string .... If anyone could help me out, I'd be really grateful!

Best,

F.