-
-
Notifications
You must be signed in to change notification settings - Fork 398
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
initial implementation of new default solvers; passing on Julia 0.6 #959
Conversation
Codecov Report
@@ Coverage Diff @@
## master #959 +/- ##
==========================================
+ Coverage 87.79% 90.02% +2.23%
==========================================
Files 18 18
Lines 4513 4854 +341
==========================================
+ Hits 3962 4370 +408
+ Misses 551 484 -67
Continue to review full report at Codecov.
|
And we have tests passing on 0.6! |
@joehuchette, any objection to merging this and bikeshedding and documenting the default solver stuff in a separate PR? |
src/solvers.jl
Outdated
solvers = Symbol(solvertype*"solvers") | ||
functionname = Symbol("default"*solvertype*"solver") | ||
if VERSION > v"0.6.0-" | ||
@eval function ($functionname)() |
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.
Indentation here is confusing
if VERSION < v"0.6.0-dev" | ||
@objective(mod, Max, obj[1]) | ||
else | ||
@objective(mod, Max, 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.
Oh, this is nice
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.
Vector transposes are taken seriously now
@constraint(m, x'*A*x .>= 1) | ||
else | ||
# force vector output | ||
@constraint(m, reshape(x,(1,3))*A*x .>= 1) |
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.
This...not so much
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.
It's just to test the vector pathway.
No objections, looks good to me |
Default solver stuff needs to be tidied up (docs and examples), but this should now be passing on 0.6.