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
Cplex backend: allow to set logfile #19037
Comments
Branch: public/19037 |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Commit: |
This comment has been minimized.
This comment has been minimized.
comment:3
The proposed implementation might certainly be improved. |
comment:4
Mostly up to you. The only way I see to see things differently is this: given that this is not a 'solver parameter' in the same sense than others, it could be worth creating an individual function to do that -- as it exposes a specific CPLEX API function. Either way it must appear in the documentation somewhere.
They say in the doc that it returns an 'error code' when somethings goes wrong. You should probably call the 'check' function defined in the cplex backend file, just in case. It is done almost everywhere in the file. Nathann |
comment:6
Hello, since Also, I had to
Adding
I have a remaining doctest error for method
I don't know how to fix the example. I can off course change it to something more understandable. Let me know what you prefer. David. |
comment:7
Hello,
Okayokay. Could you write it in the doc somewhere? It only appears as examples so far.
That's because you are meant to run optional=sage,cplex. But people here let things like #18904 to die, so whatever...
Okayokay. We should have detected this earlier, but then again, #18904...
It's something weird. I played with it a bit, and it looks like you should remove the first 'p.solve'. Afterwards it works. Looks like CPLEX does not like to see a change in the objective function between successive calls to solve. Nathann |
comment:9
I tried to address all your comments. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Reviewer: Nathann Cohen |
comment:11
Thank you. I added a commit that reads/write the logfile. If you agree with it, this branch can go. Nathann |
comment:12
Excellent. I was thinking of adding such a test but did not know how to deal with the print part. David. |
Changed branch from public/19037 to |
With this patch it is now possible to set a logfile for
Cplex
. This is useful for instance when you want to remember the logs or when you want to have access to them but don't want to see them on screen.I don't know how to do the same for other backends, in particular
GLPK
.CC: @nathanncohen
Component: linear programming
Author: David Coudert
Branch/Commit:
8efd3d3
Reviewer: Nathann Cohen
Issue created by migration from https://trac.sagemath.org/ticket/19037
The text was updated successfully, but these errors were encountered: