Skip to content

Commit

Permalink
Fix get ConstraintFunction for Indicator constraints (#437)
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Oct 30, 2023
1 parent c0f46ea commit eec9f52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MOI/indicator_constraint.jl
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function MOI.get(
)
MOI.throw_if_not_valid(model, c)
func = model.indicator_constraint_info[c.value][2]
return func
return copy(func)
end

function MOI.add_constraint(
Expand Down

0 comments on commit eec9f52

Please sign in to comment.