Dynamic sets and binary variables in equation definition

Problems with modeling
Post Reply
jaimegaribay
User
User
Posts: 1
Joined: 6 years ago

Dynamic sets and binary variables in equation definition

Post 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
User avatar
Renger
Posts: 639
Joined: 7 years ago

Re: Dynamic sets and binary variables in equation definition

Post by Renger »

Hi
Could you post some code that makes your question more explicit?
Cheers
Renger
____________________________________
Enjoy modeling even more: Read my blog on modeling at The lazy economist
Post Reply