Page 1 of 1

Alias Dynamic Sets

Posted: Thu Dec 06, 2018 1:43 pm
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

Re: Alias Dynamic Sets

Posted: Mon Dec 10, 2018 10:38 am
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