Skip to content
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

Merged
merged 2 commits into from
Aug 3, 2021
Merged

Remove MOI as Explicit Dependency #157

merged 2 commits into from
Aug 3, 2021

Conversation

pulsipher
Copy link
Collaborator

@pulsipher pulsipher commented Aug 3, 2021

This is a test to see if we can remove MOI.

EDIT:
It appears that we can since Reexport exports the MOI alias defined in JuMP.

@pulsipher pulsipher added the simplification Simplify the underlying complexity label Aug 3, 2021
@codecov
Copy link

codecov bot commented Aug 3, 2021

Codecov Report

Merging #157 (50de740) into master (20a9ed6) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #157   +/-   ##
=======================================
  Coverage   99.96%   99.96%           
=======================================
  Files          32       32           
  Lines        6286     6286           
=======================================
  Hits         6284     6284           
  Misses          2        2           
Impacted Files Coverage Δ
src/InfiniteOpt.jl 100.00% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 20a9ed6...50de740. Read the comment docs.

@pulsipher pulsipher closed this Aug 3, 2021
@pulsipher pulsipher deleted the remove_moi branch August 3, 2021 16:04
@pulsipher pulsipher restored the remove_moi branch August 3, 2021 22:21
@pulsipher pulsipher reopened this Aug 3, 2021
@pulsipher pulsipher merged commit 277442d into master Aug 3, 2021
@pulsipher pulsipher deleted the remove_moi branch August 3, 2021 22:44
@@ -2,8 +2,7 @@ module TranscriptionOpt

# Import the necessary packages.
import JuMP
import MathOptInterface
const MOI = MathOptInterface
const MOI = JuMP.MOI
Copy link
Contributor

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.

Copy link
Collaborator Author

@pulsipher pulsipher Aug 3, 2021

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.

@pulsipher pulsipher restored the remove_moi branch August 3, 2021 23:04
@pulsipher pulsipher added this to the v0.4.3 milestone Oct 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
simplification Simplify the underlying complexity
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants