different dimension

Problems with syntax of GAMS
Post Reply
jang dong jun
User
User
Posts: 2
Joined: 4 years ago

different dimension

Post by jang dong jun »

i m new in gams. i try to solve a problem.
in same i, there are only one scalar in NW(i,j)
sum(i,NW(i,j))/NW(i,j) =1
but i cant make any code about this. help me plz..
User avatar
Renger
Posts: 639
Joined: 7 years ago

Re: different dimension

Post by Renger »

Hi
For this you need an alias

Code: Select all

alias(i,ii);
sum(ii,NW(ii,j))/NW(i,j)
I hope you were looking for that
Cheers
Renger
____________________________________
Enjoy modeling even more: Read my blog on modeling at The lazy economist
Post Reply