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

Support vector sets in MOI wrapper #669

Merged
merged 5 commits into from
May 17, 2024
Merged

Support vector sets in MOI wrapper #669

merged 5 commits into from
May 17, 2024

Conversation

blegat
Copy link
Member

@blegat blegat commented May 16, 2024

Second option of the two options listed in #668

Closes #668

::Type{MOI.ScalarNonlinearFunction},
::Type{<:Union{MOI.EqualTo{T},MOI.GreaterThan{T},MOI.LessThan{T}}},
::Type{MOI.VectorNonlinearFunction},
::Type{<:MOI.AbstractVectorSet},
Copy link
Member Author

Choose a reason for hiding this comment

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

We should probably have a list of sets for which we define vexity instead because otherwise, if there is a set for which vexity is not defined but there is a bridge to convert it into sets for which vexity is defined, it won't be applied because Convex lied saying that vexity is defined

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 added a comment

Copy link
Member

Choose a reason for hiding this comment

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

We'll say true, and then end up calling a missing vexity and get "`Convex.vexity(vex, ::$(typeof(set)))`: is not yet implemented. Please open an issue at https://github.com/jump-dev/Convex.jl", so that seems like an okay error. It tells them to open an issue, at least.

@blegat blegat added this to the v0.16.0 milestone May 16, 2024
Copy link

codecov bot commented May 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.09%. Comparing base (30825a2) to head (fb40ef4).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #669      +/-   ##
==========================================
+ Coverage   98.04%   98.09%   +0.05%     
==========================================
  Files          89       89              
  Lines        5160     5150      -10     
==========================================
- Hits         5059     5052       -7     
+ Misses        101       98       -3     

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

Copy link
Member

@odow odow left a comment

Choose a reason for hiding this comment

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

LGTM. I changed the comment

@blegat blegat merged commit d19955e into master May 17, 2024
10 checks passed
@blegat blegat deleted the bl/vector_set branch May 17, 2024 05:46
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.

2 participants