-
Notifications
You must be signed in to change notification settings - Fork 28
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
Packaging of Mosek + MOI #168
Comments
I would be very sorry to change
|
In function Optimizer(args...; kwargs...)
error("To use Mosek with JuMP (or MathOptInterface), you need to import ",
"the package `MosekTools` (via `import MosekTools`). You may need ",
"to first install it via `import Pkg; Pkg.add("MosekTools")`.")
end Then |
@ulfworsoe |
@blegat is right though. You will get an annoying "Method overwritten warning". You should probably add the following to function Optimizer(args...; kwargs...)
error("To use Mosek with JuMP (or MathOptInterface), you need to use ",
"`MosekTools.Optimizer` instead of `Mosek.Optimizer`. You can ",
"install `MosekTools` via `import Pkg; Pkg.add("MosekTools")`.")
end and then define |
You won't get a warning if the signature is more specific, e.g. |
The approach seems to work. So the plan is
Sounds good ? |
Are you sure? Have you tested to see if there is a conflict? What happens with |
Yes, you can test it with julia> f() = 1
f (generic function with 1 method)
julia> f(args...) = 2
f (generic function with 2 methods)
julia> f()
1
julia> f(:a)
2 |
MosekTools has just been released |
Currently, to use Mosek with JuMP master, the user needs to do
while for any other solver, it is
This lack of consistency makes Mosek less convenient to use for JuMP users.
I understand that having a separate package for the Mosek API and for the Mosek implementation of MOI is appropriate (as discussed in JuliaOpt/MathOptInterfaceMosek.jl#34 (comment)).
However, we could have them separate while still allowing
Mosek.Optimizer
to be an MOI optimizer.I see two options for that:
@ulfworsoe What do you think ?
The text was updated successfully, but these errors were encountered: