comparing elements of set

Hello,

I have one set in my model :

i {5,6}
alias{i,j}

I would like to create a variable y which is

y 5 6

5 y_{55} y_{56}

6 y_{65} y_{66}

But I only need to make a reference to y_{56}. How do I compare the elements of the set { 5, 6 }? It would be an restriction y$ord(i) lt ord(j) ? This is not working for me. Anybody has another suggestion?

Thank you.

Brígida


To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.

Y(‘5’,’6’)



regards



From: gamsworld@googlegroups.com [mailto:gamsworld@googlegroups.com] On Behalf Of Brígida Sartini
Sent: miércoles, 23 de marzo de 2011 05:15 p.m.
To: gamsworld@googlegroups.com
Subject: comparing elements of set



Hello,

I have one set in my model :

i {5,6}
alias{i,j}

I would like to create a variable y which is

y 5 6

5 y_{55} y_{56}

6 y_{65} y_{66}

But I only need to make a reference to y_{56}. How do I compare the elements of the set { 5, 6 }? It would be an restriction y$ord(i) lt ord(j) ? This is not working for me. Anybody has another suggestion?

Thank you.

Brígida


To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.


To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.