-
-
Notifications
You must be signed in to change notification settings - Fork 411
Closed
Labels
Type: Error MessagesCan be fixed with better error messageCan be fixed with better error message
Description
julia> m = Model();
julia> @variable(m, x[i=1:4; iseven(i)])
JuMP.Containers.SparseAxisArray{VariableRef,1,Tuple{Int64}} with 2 entries:
[4] = x[4]
[2] = x[2]
julia> @variable(m, y[i=1:4, iseven(i)])
JuMP.Containers.SparseAxisArray{VariableRef,2,Tuple{Int64,Bool}} with 4 entries:
[1, false] = y[1,false]
[3, false] = y[3,false]
[4, true ] = y[4,true]
[2, true ] = y[2,true]I'm not sure how to fix this, but it's unfortunate that a one-character change that's hard to spot can have this subtle effect.
Metadata
Metadata
Assignees
Labels
Type: Error MessagesCan be fixed with better error messageCan be fixed with better error message