You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
julia> model =Model(Gurobi.Optimizer)
julia>@variable(model, a[x in1:10; x <5], Bin)
JuMP.Containers.SparseAxisArray{VariableRef, 1, Tuple{Int64}} with 4 entries:
julia>@variable(model, b[x in1:10; x >15], Bin)
JuMP.Containers.SparseAxisArray{Any, 1, Tuple{Any}} with 0 entries
Here, I would expect the second example to return a JuMP.Containers.SparseAxisArray{VariableRef, 1, Tuple{Int64}}
I don't know if the current behaviour is expected, but it can cause type unstability if we don’t check the emptiness of the resulting container beforehand.
The text was updated successfully, but these errors were encountered:
Here, I would expect the second example to return a
JuMP.Containers.SparseAxisArray{VariableRef, 1, Tuple{Int64}}
I don't know if the current behaviour is expected, but it can cause type unstability if we don’t check the emptiness of the resulting container beforehand.
The text was updated successfully, but these errors were encountered: