Skip to content
This repository has been archived by the owner on Nov 12, 2023. It is now read-only.

Support disjunction when specifying contraints #3

Open
ajcr opened this issue Nov 18, 2018 · 0 comments
Open

Support disjunction when specifying contraints #3

ajcr opened this issue Nov 18, 2018 · 0 comments

Comments

@ajcr
Copy link
Owner

ajcr commented Nov 18, 2018

In other words: support or.

Allow constrains such as (red > 4 and yellow < 10) or (red > 4 and green < 16).

This type of problem can be solved using inclusion-exclusion:

S(red > 4 and yellow < 10) + 
S(red > 4 and green < 16) - 
S(red > 4 and yellow < 10 and green < 16)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant