Skip to content

Read integers with round i/o int for Gurobi#884

Open
hbierlee wants to merge 2 commits intomasterfrom
fix/read-integers-issue-858
Open

Read integers with round i/o int for Gurobi#884
hbierlee wants to merge 2 commits intomasterfrom
fix/read-integers-issue-858

Conversation

@hbierlee
Copy link
Copy Markdown
Contributor

Fixes #858

We should at least use round to read integers, because now whenever Gurobi decides to slightly assign an integer variables to a value below rather than above the integer (e.g 0.99999 v. 1.000001), we'll floor/truncate to the (likely) wrong assignment. However, to be even safer, we'll have to look into IntegralityFocus.

@hbierlee hbierlee changed the title Read integers issue 858 Read integers with round i/o int Mar 25, 2026
@hbierlee hbierlee changed the title Read integers with round i/o int Read integers with round i/o int for Gurobi Mar 25, 2026
@hbierlee hbierlee requested a review from ThomSerg March 25, 2026 10:34
@hbierlee
Copy link
Copy Markdown
Contributor Author

Maybe @ThomSerg can have a look since you ran into similar issues recently :) we can also think about follow-up tests / trying out IntegralityFocus

@hbierlee
Copy link
Copy Markdown
Contributor Author

Just a note, the "test demonstrating issue" is passing CI because gurobi is not run in CI

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.

Tolerance issue for gurobi leading to incorrect/out-of-domain assignments

1 participant