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

Switch to MOI.Parameter and fixes tests #140

Merged
merged 10 commits into from
Dec 1, 2023
Merged

Switch to MOI.Parameter and fixes tests #140

merged 10 commits into from
Dec 1, 2023

Conversation

joaquimg
Copy link
Member

@joaquimg joaquimg commented Nov 30, 2023

close #132
close #136
replaces #139
replaces #137

Copy link

codecov bot commented Nov 30, 2023

Codecov Report

Attention: 15 lines in your changes are missing coverage. Please review.

Comparison is base (c0e8af9) 95.26% compared to head (2df7aad) 94.08%.

Files Patch % Lines
src/ParametricOptInterface.jl 82.14% 15 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #140      +/-   ##
==========================================
- Coverage   95.26%   94.08%   -1.18%     
==========================================
  Files           4        4              
  Lines        1034     1065      +31     
==========================================
+ Hits          985     1002      +17     
- Misses         49       63      +14     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

docs/src/Examples/example.md Outdated Show resolved Hide resolved
docs/src/Examples/example.md Outdated Show resolved Hide resolved
# MathOptInterface.Parameter(5.0)
# ```
# """
# struct Parameter <: MOI.AbstractScalarSet
Copy link
Member

Choose a reason for hiding this comment

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

To make this backwards compatible, you could do const Parameter = MOI.Parameter{Float64}?

Copy link
Member Author

Choose a reason for hiding this comment

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

I am thinking about that still.
Maybe it is better just to break it sooner rather than later.

Copy link
Member

Choose a reason for hiding this comment

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

Yeah maybe

@odow
Copy link
Member

odow commented Nov 30, 2023

Project.toml also needs to be updated with minimum MOI version

@joaquimg joaquimg merged commit 7c862f4 into master Dec 1, 2023
6 of 8 checks passed
@joaquimg joaquimg deleted the jg/moip branch December 1, 2023 00:07
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.

MOI.get(model, MOI.ListOfConstraintTypesPresent()) throws BoundsError Use MOI's Parameter set
2 participants