-
Notifications
You must be signed in to change notification settings - Fork 63
[Performance] don't pass names by default #393
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #393 +/- ##
==========================================
- Coverage 50.76% 50.57% -0.20%
==========================================
Files 7 7
Lines 3936 3937 +1
==========================================
- Hits 1998 1991 -7
- Misses 1938 1946 +8
Continue to review full report at Codecov.
|
|
|
||
| """ | ||
| Optimizer(env::Union{Nothing, Env} = nothing) | ||
| Optimizer(env::Union{Nothing, Env} = nothing; pass_names::Bool = false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not an AbstractOptimizerAttribute?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because this is really a CPLEX.jl hack, rather than an option supported by CPLEX.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still, it would make sense to have attributes of the wrapper. I don't consider a hack, but an actual option of the wrapper.
The attribute (with a supports function) path is more generic, for users calling multiple solvers in a more abstract manner.
In fact, Xpress will require this eventually.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with @joaquimg. It could be optimizer_with_attributes(CPLEX.Optimizer, CPLEX.PassNames() => true)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, I'll make a new PR.
Closes #392