@@ -109,12 +109,12 @@ end
109109
110110function MOI. set(
111111 dest:: MOIU.UniversalFallback , attribute:: CustomVarValue , vi:: MOI.VariableIndex , value:: CD
112- ) where CD <: AbstractCustomData
112+ ) where {CD <: AbstractCustomData }
113113 if CD ∉ MOI. get(dest, CustomVars())
114114 throw(UnregisteredCustomDataFamily(string(CD)))
115115 end
116116 if ! haskey(dest. varattr, attribute)
117- dest. varattr[attribute] = Dict{MOI. VariableIndex, Any}()
117+ dest. varattr[attribute] = Dict{MOI. VariableIndex,Any}()
118118 end
119119 dest. varattr[attribute][vi] = value
120120 return
@@ -128,12 +128,12 @@ end
128128
129129function MOI. set(
130130 dest:: MOIU.UniversalFallback , attribute:: CustomConstrValue , ci:: MOI.ConstraintIndex , value:: CD
131- ) where CD <: AbstractCustomData
131+ ) where {CD <: AbstractCustomData }
132132 if CD ∉ MOI. get(dest, CustomConstrs())
133133 throw(UnregisteredCustomDataFamily(string(CD)))
134134 end
135135 if ! haskey(dest. conattr, attribute)
136- dest. conattr[attribute] = Dict{MOI. ConstraintIndex, Any}()
136+ dest. conattr[attribute] = Dict{MOI. ConstraintIndex,Any}()
137137 end
138138 dest. conattr[attribute][ci] = value
139139 return
@@ -150,4 +150,8 @@ MathOptInterface.Utilities.map_indices(
150150) = x
151151MathOptInterface. Utilities. map_indices(
152152 variable_map:: MathOptInterface.Utilities.IndexMap , x:: Vector{AbstractCustomData}
153- ) = x
153+ ) = x
154+
155+ # added for compatibility with MathOptInterface v1.23
156+ MathOptInterface. Utilities. map_indices(f:: Function , x:: AbstractCustomData ) = x
157+ MathOptInterface. Utilities. map_indices(f:: Function , x:: Vector{AbstractCustomData} ) = x
0 commit comments