Assign Set in constrant

Problems with syntax of GAMS
Post Reply
sandeep.chauhaniitg
User
User
Posts: 2
Joined: 6 years ago

Assign Set in constrant

Post by sandeep.chauhaniitg »

I have a set
set S
p1 / 1 ,2, 3 /
p2 / 4,5 /
p3 /6, 7 /
p4 / 8 /
p5 / 9 /
p6 / 10, 11, 12, 13 ,14, 15/;

I want to impliment the same with the following mathematical eq.
forall (i in P)
sum(j in S(i)) Z(j) <= 10^100;
User avatar
Renger
Posts: 639
Joined: 7 years ago

Re: Assign Set in constrant

Post by Renger »

Hi
Your example is not clear to me. Either post your GAMS code or make your example more explicit, so people can try to find an answer for you.
Cheers
Renger
____________________________________
Enjoy modeling even more: Read my blog on modeling at The lazy economist
Post Reply