Alias Dynamic Sets

Problems with syntax of GAMS
Post Reply
richard
User
User
Posts: 22
Joined: 3 months ago

Alias Dynamic Sets

Post by richard » 1 week ago

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: 219
Joined: 2 years ago

Re: Alias Dynamic Sets

Post by Renger » 3 days ago

Hi Richard
I probably don't get your question right, but you set an alias for a dynamic set
alias(myset, myset1);
Cheers
Renger

Post Reply