-
-
Notifications
You must be signed in to change notification settings - Fork 394
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix regression when creating constraints comparing with ints or floats (
#795) * Fix regression when creating constraints comparing with ints or floats * RHS should not be negated * Have LpConstraint maintain its own constant to avoid using a shared constant when different constraints are instantiated with the same LpAffineExpression * Format with black * Fix implementation of LpConstraint.valid * Fix type hint for Python 3.8 * Format with black * LpConstraintVar.value should call value on LpConstraint and not LpAffineExpression
- Loading branch information
Showing
3 changed files
with
77 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters