-
Notifications
You must be signed in to change notification settings - Fork 6
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
support for solver with direct model? #24
Comments
Correct. What is the motivation for testing in direct mode? |
To test the direct mode codepath :) Any solver would be able to use this package via any mode, I would find it nice to be able to also test the direct mode. Nothing critical, would just be nice to have. "No" is a perfectly fine answer |
Which solver? Have you implemented a specialized |
I think it would be in scope of this repo to add one "direct mode" test to the suite. Thoughts on that @odow? |
https://github.com/xhub/ReSHOP.jl I did not implement a |
Since you have this line:
Direct mode skips the JuMP cache and I don't think we need any changes to |
It dates back from February, but this is what I recall. When playing with Correct me if I am wrong, but it is not documented which functions needs to be implemented so I was just trying with some toy models. Hence, the TDD approach. There is an extensive list in |
If KNITRO doesn't implement In fact, it looks like it is missing a lot of the interface, because most tests are excluded: and it doesn't implement MOI.Test.basic_constraint_tests(model, config) or MOI.Test.unittest(model, config) If ReSHOP passed the following, plus MINLPTests, you're doing pretty well: MOI.Test.unittest(model, config)
MOI.Test.basic_constraint_tests(model, config)
MOI.Test.contlineartest(model, config) |
Thanks for the pointers, I didn't have MOI.Test.unittest(model, config)
MOI.Test.basic_constraint_tests(model, config) and I am still skipping some tests in Closing since the MOIT seems to cover quite a lot already |
Right now the tests only work with a solver specified as an
optimizer_factory
for aJuMP.Model
call.This precludes using this nice package with a solver in direct mode.
Is it planned to support specifying the solver in direct mode?
My guess is that the main hurdle is that one needs to use
JuMP.direct_model
to create such solver, rather thanJuMP.Model
.The text was updated successfully, but these errors were encountered: