-
Notifications
You must be signed in to change notification settings - Fork 37
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
DNMY: MOI #53
DNMY: MOI #53
Conversation
@carlobaldassi, note this is reverting our decision from 2013 to split off the JuMP-related code into a separate package. Things have changed a bit since then :). @odow I don't see a need to move the code from GLPKMathProgInterface into here. It's just extra churn for code that soon won't be relevant. |
@mlubin Do you want to tag a release before this PR gets merged (or give me commit access :) )? |
@odow, all yours :) |
It looks like there's an attribute missing from the GLPKOptimizerLP(). Using this branch (and JuMP and MOI master), I can set up a simple LP: m = Model(optimizer=GLPKOptimizerLP())
@variable m x >= 0
@objective m Min x
JuMP.optimize(m) which fails with:
If I convert the objective from a single variable to a @objective m Min x + 1 then everything works. |
test/MOIWrapper.jl
Outdated
@testset "LP solver" begin | ||
config = MOIT.TestConfig() | ||
solver = GLPKOptimizerLP() | ||
MOIT.unittest(solver, config, ["solve_singlevariable_obj"]) |
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.
@rdeits yes, single variable objectives aren't supported yet. They need to be implemented in LQOI.
There is a variety of other stuff not implemented yet as well. See
JuliaOpt/LinQuadOptInterface.jl#8
Got it, thanks! |
Support single variable objective
Hmm @mlubin @joaquimg we have a problem. Because the MOI tests incorrectly allow adding multiple integer constraints (see jump-dev/MathOptInterface.jl#404, JuliaOpt/LinQuadOptInterface.jl#30, JuliaOpt/LinQuadOptInterface.jl#31), this PR now fails tests. We can either
Thoughts? |
Both "disable the failing tests here" (with a TODO explaining why) and "fix MOI tests and push a new release" are viable options. |
Okay this is failing v0.7 but now passing tests on 0.6 |
We can target v0.7 for a next release |
This also broke 32-bit because of jump-dev/MathOptInterface.jl#377 |
This PR updates GLPK for the latest version of MOI, and copies the files from https://github.com/JuliaOpt/MathOptInterfaceGLPK.jl.
Blockers
Questions
GLPKMathProgInterface.jl
to this repo?