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

num cuts as attribute #446

Merged
merged 7 commits into from
Apr 5, 2023
Merged

Conversation

matbesancon
Copy link
Collaborator

No description provided.

@matbesancon
Copy link
Collaborator Author

not sure what happened with precompiling here

src/MOI_wrapper.jl Outdated Show resolved Hide resolved
"""
struct NumberOfCuts <: MOI.AbstractOptimizerAttribute end

function MOI.get(opt::Optimizer, ::NumberOfCuts)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Implement is_set_by_optimize and attribute_value_type, you can take example on MOI.NodeCount for instance

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these two methods are not implemented for NodeCount here no?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah ok I saw what you meant, done

@matbesancon
Copy link
Collaborator Author

@chriscoey looks good here

@codecov
Copy link

codecov bot commented Apr 5, 2023

Codecov Report

Patch coverage: 80.00% and project coverage change: -0.21 ⚠️

Comparison is base (bd3f78f) 90.39% compared to head (9e820d9) 90.18%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #446      +/-   ##
==========================================
- Coverage   90.39%   90.18%   -0.21%     
==========================================
  Files          12       12              
  Lines        1020     1029       +9     
==========================================
+ Hits          922      928       +6     
- Misses         98      101       +3     
Impacted Files Coverage Δ
src/MOI_wrapper.jl 86.11% <80.00%> (+1.26%) ⬆️

... and 8 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@chriscoey
Copy link
Contributor

Thanks for adding this @matbesancon, looks good!

@chriscoey chriscoey merged commit 1aa993f into jump-dev:main Apr 5, 2023
@chriscoey
Copy link
Contributor

I could have sworn I selected squash when I merged that, but doesn't look like it.

Anyway, I invited you as a collaborator @matbesancon. If you want to tag a new minor version, go ahead!

@matbesancon
Copy link
Collaborator Author

perfect thanks!

@matbesancon matbesancon deleted the numcut-attribute branch April 5, 2023 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants