Hello,
is it possible to generate a set depending on a parameter. For example a set of time instants /0*(n*100)/ where n is defined somehwere else? This can, for example, be used for resolution parameterization.
Best regards
–
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.
Hi,
$if not set n $set n 2
scalar n /%n%/;
$eval nrElements %n%100
set s /0%nrElements%/;
If you specify “–n=4” on the command line, you can control n from outside of the GAMS program. If you do not
specify a value for n, then the default value(2) will be used.
Hope that helps
Clemens
On 7/1/2015 2:41 PM, Sten Gruener wrote:
Hello,
is it possible to generate a set depending on a parameter. For example a set of time instants /0*(n*100)/ where n is defined somehwere else? This can, for example, be used for resolution parameterization.
Best regards
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.
–
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.