-
Notifications
You must be signed in to change notification settings - Fork 87
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
Add Utilities.sorted_list_of_model_attributes #2371
Conversation
0931bd8
to
82dacaa
Compare
Looking into why Juniper started to fail tests |
So this issue is that Juniper defines a bunch of model filters: |
@@ -9,9 +9,39 @@ | |||
|
|||
include("copy/index_map.jl") | |||
|
|||
_sort_priority(::Any) = 2 | |||
_sort_priority(::MOI.UserDefinedFunction) = 0 | |||
_sort_priority(::MOI.ObjectiveSense) = 1 |
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.
So in retrospect, all this PR really needed was _sort_priority(::Any) = 3
and _sort_priority(::MOI.ObjectiveFunction) = 2
.
Do we want to make this all public?
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.
I would do this simple fix, and reopen this PR if this keeps coming back and someone actually needs to extend this kind of methods.
Closing in favor of #2372 |
Closes #2366
Closes #2369
https://github.com/jump-dev/MathOptInterface.jl/actions/runs/7282138662