-
-
Notifications
You must be signed in to change notification settings - Fork 482
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
LinearFunctionOrConstraint.__richcmp__ should replace before converting #24423
Milestone
Comments
This comment has been minimized.
This comment has been minimized.
Commit: |
New commits:
|
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
comment:6
Can't really say I understand all implications, but this looks at least as reasonable as the previous version |
Reviewer: Marc Mezzarobba |
comment:7
Thanks! |
Changed branch from u/jdemeyer/linearfunctionorconstraint___richcmp___should_replace_before_converting to |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The logic in the hack to allow linear functions like
x_0 <= x_1 <= x_2
is wrong: currently, when doingx <= y
, it first convertsx
andy
to the correct parent and then it checks for a chained comparison. This is wrong: it should check for a chained comparison on the input of the__richcmp__
function before converting.One consequence is that the following does not work as expected:
CC: @vbraun
Component: linear programming
Author: Jeroen Demeyer
Branch/Commit:
4606309
Reviewer: Marc Mezzarobba
Issue created by migration from https://trac.sagemath.org/ticket/24423
The text was updated successfully, but these errors were encountered: