Skip to content

Add binary variable bounds#670

Closed
odow wants to merge 2 commits into
masterfrom
binary-bounds
Closed

Add binary variable bounds#670
odow wants to merge 2 commits into
masterfrom
binary-bounds

Conversation

@odow

@odow odow commented May 5, 2026

Copy link
Copy Markdown
Member

@odow

odow commented May 5, 2026

Copy link
Copy Markdown
Member Author

This needs some changes to check for existing bounds.

Or we could just decide not to merge this. It's a pretty niche bug in Gurobi that they should fix in an upcoming release.

@odow

odow commented May 5, 2026

Copy link
Copy Markdown
Member Author

I don't think we need this. We can just tell people to do @variable(model, 0 <= x[1:N, 1:N] <= 1, Bin). Adding bounds fixes my original issue in jump-dev/MultiObjectiveAlgorithms.jl#198 (comment).

If bounds on binary variables are helpful, then Gurobi reeeeeaaaally should be doing this internally.

@odow odow closed this May 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants