Solved

Properly using index domain with 3 indices and 2 subsets

  • 11 January 2023
  • 1 reply
  • 42 views

Badge +4

Hi all, 

I  try to implement the following index domain in a constraint but I get the error “,)” is expected. 

OperationsPOforJ(i) and OperationsPOforK(i) are two subsets of set OperationPOs. Am i making a typo or is it not possible to use two “in” functions in an index domain?

 

icon

Best answer by gdiepen 11 January 2023, 11:18

View original

1 reply

Userlevel 5
Badge +7

You would need to formulate this slightly different:

(i,j,k) | j in OperationsPOForJ(i) and k in operationsPOForK(i) and ord(j) < ord(k)

So on the left side of the | operator you only have the index names and on the right hand side you do all the restrictions.

Reply


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

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