Should I modify the index domain in order to make clear that id and is are subsets of i?
Thank you!
Best answer by gabiservidone
Hey @Valque,
I must say that I did not fully understood the goal/problem. When setting subsets, you need to reference which set is the ‘bigger’ set of that subset. So from that, anywhere which has i index defined, you can use id or is and it will work correctly.
But looking to your contraint, I am missing a relation between i, id and is either on the sums, or in the domain of the contraint. You can also run the contraint only to (i, r) and use the subsets in sums.
If this was not helpfull, and can you clarify a little bit more what is the problem you are facing?
I must say that I did not fully understood the goal/problem. When setting subsets, you need to reference which set is the ‘bigger’ set of that subset. So from that, anywhere which has i index defined, you can use id or is and it will work correctly.
But looking to your contraint, I am missing a relation between i, id and is either on the sums, or in the domain of the contraint. You can also run the contraint only to (i, r) and use the subsets in sums.
If this was not helpfull, and can you clarify a little bit more what is the problem you are facing?