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

Support disjunct constraints with integer variables #109

Merged
merged 5 commits into from
Feb 8, 2024

Conversation

hdavid16
Copy link
Owner

@hdavid16 hdavid16 commented Jan 18, 2024

Fixes #105. Still disallows binary variables in a disjunct constraint. The error message is improved to indicate that the user should rely on Logic variables to model any binary decisions.

Note: @pulsipher, I saw some printing tests failed locally MacOS where == was being replaced with = and \\iff was expected instead.

@hdavid16 hdavid16 requested a review from pulsipher January 18, 2024 20:11
src/constraints.jl Outdated Show resolved Hide resolved
@pulsipher
Copy link
Collaborator

The printing problem can be fixed by updating to use the printing API provided by jump-dev/JuMP.jl#3609. I will open a PR when I can find some extra time.

Copy link

codecov bot commented Feb 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (eb1ce6c) 99.80% compared to head (03f3653) 99.80%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #109   +/-   ##
=======================================
  Coverage   99.80%   99.80%           
=======================================
  Files          11       11           
  Lines        1021     1021           
=======================================
  Hits         1019     1019           
  Misses          2        2           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@pulsipher pulsipher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we're ok to merge this.

@hdavid16 hdavid16 merged commit fc4c5eb into master Feb 8, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Disjunct constraints cannot contain binary or integer variables.
2 participants