-
Notifications
You must be signed in to change notification settings - Fork 94
Add SolverName #201
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
Add SolverName #201
Conversation
I don't know if this really fits in the attribute or parameter framework. It's get-only and we'll never want to copy it. Maybe a separate Also it's unfortunate but I think we need to do another big renaming of the MOI abstractions. "Solver" isn't currently a clear MOI term, but we're converging to it in MOIU and JuMP, e.g., |
The advantage of it being a solver parameter is that the InstanceManager can do function MOI.get(m::InstanceManager, param::MOI.AbstractSolverParameter)
MOI.get(m.solver, param)
end so it does not need to do a particular case for |
This doesn't really fit with my understanding of a "parameter" though, it's not something that affects the solution procedure. "Attribute" vs "parameter" might have been the wrong naming choice. Using "property" as the union of the two doesn't make much sense either. What about "InstanceAttribute" and "SolverAttribute"? This again pushes on us to rename |
That seems better, but I like |
I have trouble calling a solver a kind of instance, but on the other hand it doesn't bother me to say that a solver implements the instance interface. This is awkward to deal with in Julia. Usually you'd duck-type it and not even have a super type, right? |
We could duck-type but it seems unfortunate to loose the abstract type for types implementing the MOI interface. Most of the time, we need to use |
What about |
That would work, I like |
I have update the PR, do you prefer |
Codecov Report
@@ Coverage Diff @@
## master #201 +/- ##
==========================================
+ Coverage 98.07% 98.46% +0.38%
==========================================
Files 23 23
Lines 3904 4961 +1057
==========================================
+ Hits 3829 4885 +1056
- Misses 75 76 +1
Continue to review full report at Codecov.
|
I'm not bothered by |
Then again I'm also responsible for |
What do you mean by defVar ? |
Ok! |
Not bothered. |
This is needed to solve jump-dev/JuMP.jl#1092