-
-
Notifications
You must be signed in to change notification settings - Fork 528
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
SCIPBackend: Faster copy, remove_constraint methods #34890
Comments
This comment has been minimized.
This comment has been minimized.
Author: Matthias Koeppe |
Last 10 new commits:
|
Commit: |
comment:5
Just 1 commit on top of #21003 |
comment:9
When creating a constraint, then copying the MILP, and then adding the constraint to the copied MILP, I sometimes get errors as follows:
Maybe something like |
comment:10
are you passing |
comment:11
yes, as I wrote. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:13
Please check if this fixes it |
comment:14
Yes, this makes it look good. |
comment:15
Thanks for testing! |
Reviewer: Martin Rubey, ... |
comment:17
I think I should mention that copying is still a bit slower than adding and removing constraints, apparently, no matter whether I use SCIP or GLPK. However, it seems that this is only relevant for extremely small problems, usually almost all time is spent in the solver itself. Running all tests with SCIP without copying takes about 4.2 seconds, with copying it is about 4.9 seconds. Including the long tests, I get about 56 seconds either way. (GLPK: with and without copying 2.4 seconds, including long tests 73 seconds) Besides, it might make sense to have a method |
comment:18
Thanks for these benchmarks with #33238. These timings suggest that we have been successful in removing the artificial slowdowns in Not sure about |
comment:19
Is there any real difference between vector valued constraints and lists of constraints? |
comment:20
No. In the end, everything is a matrix |
comment:21
OK. In any case, it is confusing that we have two methods for removing constraints but only one to add constraints. |
comment:22
We could introduce |
comment:23
I guess, for |
comment:24
No, here on the ticket this is a fix for the backend method |
comment:25
I've opened #34896 for these changes to the frontend |
Removed branch from issue description; replaced by PR #35103 |
(from #21003 comment:142)
Depends on #21003
CC: @mantepse @dimpase
Component: linear programming
Author: Matthias Koeppe
Reviewer: Martin Rubey, ...
Issue created by migration from https://trac.sagemath.org/ticket/34890
The text was updated successfully, but these errors were encountered: