Alias Dynamic Sets

Problems with syntax of GAMS
Post Reply
richard
User
User
Posts: 27
Joined: 5 years ago

Alias Dynamic Sets

Post by richard »

Hi all,

I used this command in order to have a set to be able to changing depending on the value of a scalar.https://support.gams.com/gams:a_scalar_ ... h_of_a_set

in this code , is it possible to define " Alias " (e.g: alias(myset,myset1) ?

Code: Select all

set univ the universe /1*1000/;
scalar dim /6/;
set myset(univ);

myset(univ)$(ord(univ) <= dim) = yes;

Display myset; 
Actually , I need to have set to be able to changing depending on the value of a scalar , i used above method but when I use it , I need to have Alias in Dynamic Sets. is it possible?
what should I do?

Thanks
User avatar
Renger
Posts: 639
Joined: 7 years ago

Re: Alias Dynamic Sets

Post by Renger »

Hi Richard
I probably don't get your question right, but you set an alias for a dynamic set
alias(myset, myset1);
Cheers
Renger
____________________________________
Enjoy modeling even more: Read my blog on modeling at The lazy economist
Post Reply