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

Add support for constraint attributes #122

Merged
merged 2 commits into from
Mar 30, 2024
Merged

Add support for constraint attributes #122

merged 2 commits into from
Mar 30, 2024

Conversation

blegat
Copy link
Member

@blegat blegat commented Mar 28, 2024

@@ -79,7 +79,7 @@ function MOI.set(
ci::MOI.ConstraintIndex{<:PolyJuMP.ScalarPolynomialFunction{T},S},
value,
) where {T,S<:MOI.AbstractScalarSet}
return MOI.get(model.constraints[S][2], attr, model.index_map[ci], value)
return MOI.set(model.constraints[S][2], attr, ci, value)
Copy link
Member

Choose a reason for hiding this comment

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

oof

Copy link
Member Author

Choose a reason for hiding this comment

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

That's the power of coverage 😅

@blegat blegat merged commit dff7ec9 into master Mar 30, 2024
7 checks passed
@odow odow deleted the bl/constraint_start branch June 18, 2024 23:20
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