Hi! I have a constraint (shown at the photo below) wherein two sets need to be subtracted. I tried introducing another set Kw with a definition of k-Ks but it says subtraction of element valued expressions require the set range to be equal, but the ranges domain set "Subblock" and set "Candidate_Subblocks" differ.
Identifier: Subblock
Index: k
Identifier: Candidate_Subblock
Index: Ks
Identifier: Subblock_Difference
Subset of: Subblock, Candidate_Subblocks
Index: Kw
Definition: k-Ks
above is the current code I have. Do you have any Idea on how I can code my constraint?
Solved
Subtraction of Element Valued Expressions
Best answer by deannezhang
Making both Candidate_Subblock and Subblock_Difference as a subset of Subblock and change the definition of Subblock_Difference like below should work.
Identifier: Subblock
Index: k
Identifier: Candidate_Subblock
Subset of: Subblock
Index: Ks
Identifier: Subblock_Difference
Subset of: Subblock
Index: Kw
Definition: Subblock - Candidate_Subblock
Identifier: Subblock
Index: k
Identifier: Candidate_Subblock
Subset of: Subblock
Index: Ks
Identifier: Subblock_Difference
Subset of: Subblock
Index: Kw
Definition: Subblock - Candidate_Subblock
Sign up
Already have an account? Login
Please use your business or academic e-mail address to register
Login to the community
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.

