Page 1 of 1

Dynamic sets and binary variables in equation definition

Posted: Tue Oct 24, 2017 1:09 am
by jaimegaribay
Hello,

I have a simple modelling question. Can any type of equation definition in GAMS contain dynamic sets and binary variables?, for instance:

N(j) =e= N(j-1) + SUM(i, x(i,j)) (being N(j) a dynamic set and x(i,j) a binary variable)

So that the dynamic set N(j) can then be used to filter a summation in an equation declaration.

I have not found anywhere in the GAMS guide or this forum an answer to this.

Thanks in advance

Re: Dynamic sets and binary variables in equation definition

Posted: Sun Oct 29, 2017 10:58 am
by Renger
Hi
Could you post some code that makes your question more explicit?
Cheers
Renger