-
Notifications
You must be signed in to change notification settings - Fork 8
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
Help wanted: update to MathOptInterface #29
Comments
NEOS.jl has not been updated to Julia 1.0 |
Hi Oscar, |
I'm going to leave this open for the next person who comes along looking. I have no plans to update this in the near term. It would make a good project for someone looking to get into JuMP/Julia development. |
This should be pretty achievable now that MathOptInterface has support for various file-formats. We can start by defining an struct Optimizer <: MOI.AbstractOptimizer
model::MOI.Utilities.Model{Float64}
# ... some other fields for NEOS stuff
end
function MOI.optimize!(model::Optimizer)
file = MOI.FileFormats.MPS.Model()
MOI.copy_to(file, model)
io = IOBuffer()
write(io, file)
seekstart(io)
s_file = read(io, String)
# send `s_file` to NEOS using current implementation
return
end |
I tried to install the NEOS package in Julia 1.0.4 (see code and error message below.) but the installation failed.
The text was updated successfully, but these errors were encountered: