diff --git a/src/MOI/indicator_constraint.jl b/src/MOI/indicator_constraint.jl index 9260b11..880ee0a 100644 --- a/src/MOI/indicator_constraint.jl +++ b/src/MOI/indicator_constraint.jl @@ -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(