Dynamic sets and binary variables in equation definition

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

Dynamic sets and binary variables in equation definition

Post by jaimegaribay » 2 years ago

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: 397
Joined: 3 years ago

Re: Dynamic sets and binary variables in equation definition

Post by Renger » 1 year ago

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