different dimension

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

different dimension

Post by jang dong jun » 3 months ago

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

Re: different dimension

Post by Renger » 3 months ago

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