Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add experimental support for != constraints #1284

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

arcondello
Copy link
Member

@arcondello arcondello commented Nov 3, 2022

See also #1030

@arcondello arcondello added the question Question or general discussion label Nov 3, 2022
@alexzucca90
Copy link

we need to add something like this:

            elif sense is Sense.Ne:
                # hard-coding violation of not equal constraints to 1
                violation = 0 if activity != 0 else 1

In the function iter_constraint_data in constrained.py

@alexzucca90
Copy link

I would also raise a ValueError when trying to add a constraint with real values, unless we think they make sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question or general discussion
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants