Skip to main content

Is it possible to use an indexed set inside the domain of Exists?

For instance:

  1. I have an indexed set IS with index domain (a,b) and subset of c
  2. I want to define a new set NS which is a subset of b and c
  3. Is it possible to use in the definition of this new set NS the following expression:
    { (b,c) | Exists[ a | c in IS(a,b) ] }

 

Thank you

 

Instead of index sets, I typically try to use just binary parameters that indicate the relations instead.


Thank you @gdiepen 

Could you provide me an example or reference to understand what you are suggesting?

 

RM


Instead of seeing the items as set elements, you can just define them as a relation using a binary parameter.

 

In your case you could create a binary parameter pIsPartOfIS(a,b,c) which gets a value 1 if c ‘is an element of the indexed set IS(a,b)’ and 0 otherwise.

Then your pIsPartOfNS(b,c) is just a new binary parameter with the definition exists(a | pIsPartOfIS(a,b,c)

 

Hope this is clear enough


Reply


Didn't find what you were looking for? Try searching on our documentation pages:

AIMMS Developer & PRO | AIMMS How-To | AIMMS SC Navigator