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

Fix integer-valued attributes bug #99

Merged
merged 1 commit into from
Feb 10, 2025
Merged

Conversation

simonbowly
Copy link
Member

Fixes #98, where setting a series of attributes to a single value incorrectly casts the value to a float, causing gurobipy to raise an exception. The fix is to use the value as-is if it is an int type (trying to cast to int is lossy).

Fixes #98, where setting a series of attributes to a single value
incorrectly casts the value to a float, causing gurobipy to raise
an exception. The fix is to use the value as-is if it is an int
type (trying to cast to int is lossy).
@simonbowly simonbowly merged commit f291dd6 into v1.1.x Feb 10, 2025
14 checks passed
@simonbowly simonbowly deleted the gh98-int-attributes branch February 10, 2025 22:36
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.

1 participant