@@ -57,15 +57,17 @@ mutable struct Map <: AbstractDict{MOI.VariableIndex,AbstractBridge}
5757 index_in_vector:: Vector{Int64}
5858 bridges:: Vector{Union{Nothing,AbstractBridge}}
5959 sets:: Vector{Union{Nothing,Type}}
60- # Parent context (slot) of the bridge that created this slot, 0 if root
61- parent_index:: Vector{Int64}
62- current_context:: Int64
63- constraint_context:: Dict{MOI.ConstraintIndex,Int64}
6460 # If `nothing`, it cannot be computed because some bridges does not support it
6561 unbridged_function:: Union {
6662 Nothing,
6763 Dict{MOI. VariableIndex,Tuple{Int64,MOI. AbstractScalarFunction}},
6864 }
65+ # Parent context (slot) of the bridge that created this slot, 0 if root
66+ parent_index:: Vector{Int64}
67+ # Current bridge, 0 otherwise.
68+ current_context:: Int64
69+ # Context of constraint bridged by constraint bridges
70+ constraint_context:: Dict{MOI.ConstraintIndex,Int64}
6971 # Same as in `MOI.Utilities.VariablesContainer`
7072 set_mask:: Vector{UInt16}
7173end
@@ -80,10 +82,10 @@ function Map()
8082 Int64[],
8183 Union{Nothing,AbstractBridge}[],
8284 Union{Nothing,Type}[],
85+ Dict {MOI.VariableIndex,Tuple{Int64,MOI.AbstractScalarFunction}} (),
8386 Int64[],
8487 0 ,
8588 Dict {MOI.ConstraintIndex,Int64} (),
86- Dict {MOI.VariableIndex,Tuple{Int64,MOI.AbstractScalarFunction}} (),
8789 UInt16[],
8890 )
8991end
0 commit comments