hi to all
i want to define a set that is Dependent to another set so that start from 1 to cardinality of another set As follows …
set n nodes /n1*n3/
set t periods /t1*t[card(n)]/
that in this case card(n)=3 and set t /t1*t3/
please help me to write a general code.
–
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.
Dear Amin,
This is a quick solution that comes to my mind:
set n /n1*n6/;
parameter card_n;
card_n = CARD(n);
set t_MaxRange /t1*t100/;
set t(t_MaxRange);
t(t_MaxRange)$(ORD(t_MaxRange) wrote:
hi to all
i want to define a set that is Dependent to another set so that start from 1 to cardinality of another set As follows …
set n nodes /n1*n3/
set t periods /t1*t[card(n)]/
that in this case card(n)=3 and set t /t1*t3/
please help me to write a general code.
PEDRO JAVIER RAMÃREZ TORREALBA
Ingeniero Civil Eléctrico PUC
MSc en IngenierÃa Eléctrica PUC
Londres, REINO UNIDO
Celular: +44-(0)75-8069-3119
–
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.
Dear pedro …
thank you so mush … it’s done and You were right.
best regards,
Amin
On Thu, Aug 20, 2015 at 2:52 PM, Pedro Javier RamÃrez Torrealba wrote:
Dear Amin,
This is a quick solution that comes to my mind:
set n /n1*n6/;
parameter card_n;
card_n = CARD(n);
set t_MaxRange /t1*t100/;
set t(t_MaxRange);
t(t_MaxRange)$(ORD(t_MaxRange) wrote:
hi to all
i want to define a set that is Dependent to another set so that start from 1 to cardinality of another set As follows …
set n nodes /n1*n3/
set t periods /t1*t[card(n)]/
that in this case card(n)=3 and set t /t1*t3/
please help me to write a general code.
PEDRO JAVIER RAMÃREZ TORREALBA
Ingeniero Civil Eléctrico PUC
MSc en IngenierÃa Eléctrica PUC
Londres, REINO UNIDO
Celular: +44-(0)75-8069-3119
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.