-
Notifications
You must be signed in to change notification settings - Fork 17
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
Remove MOI as Explicit Dependency #157
Conversation
Codecov Report
@@ Coverage Diff @@
## master #157 +/- ##
=======================================
Coverage 99.96% 99.96%
=======================================
Files 32 32
Lines 6286 6286
=======================================
Hits 6284 6284
Misses 2 2
Continue to review full report at Codecov.
|
@@ -2,8 +2,7 @@ module TranscriptionOpt | |||
|
|||
# Import the necessary packages. | |||
import JuMP | |||
import MathOptInterface | |||
const MOI = MathOptInterface | |||
const MOI = JuMP.MOI |
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 surprising that MOI doesn't get pulled in by using JuMP
. Anyway, this seems to work.
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.
Here I just use import JuMP
which I wouldn't think pulls in any of its exported objects. However, I realized this is redundant this using ..InfiniteOpt
used below it pulls in JuMP and its exports anyway. #158 removes this redundancy.
This is a test to see if we can remove MOI.
EDIT:
It appears that we can since
Reexport
exports theMOI
alias defined inJuMP
.