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
Replaces InfinitePolynomialRing in MixedIntegerLinearProgram by 'var', and bug fixing in constraints() #7561
Comments
This comment has been minimized.
This comment has been minimized.
comment:2
Patch looks good and indeed speeds up everything considerably for me. Some small issues:
|
comment:3
Hello !!! It seems there are no "id" anymore in the file, and I corrected the x[3].. The min/max variables are only defined in some (short) functions where they appear natural enough... Do you think we should change the arguments of the add_constraint() function ? I understand why you do not like to see this and I was not aware of it before you mentionned it, but they seem mostly harmless and I have no idea of which keyword we could pick to replace them... If you have any idea, though.... :-) Nathann |
comment:4
Still around ??? :-) It would be good if this patch was merged into next release ! :-) |
comment:5
Replying to @nathanncohen:
Hi, it seems you didn't upload your new patch.
How about |
comment:6
I forgot to uploaded it and erased it since... I'll upload a new one in a few seconds ! :-) |
comment:7
Here it is ! I only corrected the x[3] and let the min/max be... The function in which they appear is very short, and longer version would mean updating manymany patches (currently under review) and having longer aliases when it does not hurt that much. ( though I understand how you felt about them, I did not realized it when I first used them ). We will be able to change them later if needed anyway :-) Nathann |
comment:8
Attachment: trac_7561.patch.gz This should go into 4.3, it opens a whole new world for MIP problems. |
comment:9
Thankssssssssssssss :-) |
comment:10
Attachment: trac_7561-review.patch.gz |
Reviewer: Martin Albrecht |
Author: Nathann Cohen |
Merged: sage-4.3.rc0 |
InfinitePolynomialRing was responsible for some bugs and extreme slowness in the utilisation of MixedINtegerLinearProgram for LP containing more than 1000 variables.
By replacing this polynomial ring by 'var', this is settled and waaaaayyyy mroe efficient !!
One simple bug in constraints() is also fixed in this patch. A nasty -1 was shifting all the constraints compared to their bounds. This only affected the functions show() and constraints() and is of no incidence on the solve() function.
This patch depends on #7270
Component: numerical
Author: Nathann Cohen
Reviewer: Martin Albrecht
Merged: sage-4.3.rc0
Issue created by migration from https://trac.sagemath.org/ticket/7561
The text was updated successfully, but these errors were encountered: