Define a set for each element in another set

34 views
Skip to first unread message

Pikhan

unread,
Oct 22, 2013, 8:28:46 AM10/22/13
to ai...@googlegroups.com
Hi,

I am pretty new to AIMMS and I have a question about creating sets. I would like to define sets A_i for each element in another set I, like,
A_1, A_2, A_3 for I={1, 2, 3}. 

How do I achieve this? 

Thanks for your response.

Best,
PJ

Franco Peschiera

unread,
Oct 22, 2013, 11:28:02 AM10/22/13
to ai...@googlegroups.com
Good day,

You probably want to create an indexed set like for example: "A(i)" where i is an index of the set "I".
Indexed sets can only be created as subsets of a bigger set so A(i) should be a subset of "A_CompleteSet".

An alternative to this association is to create a binary parameter p01ExistsRelation(i, j) defined for each i, element of "I" and each j element of "A_CompleteSet".

regards,


Franco Peschiera
Jefe de proyectos
baobab soluciones


--
You received this message because you are subscribed to the Google Groups "AIMMS - The Modeling System" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aimms+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages