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>using JuMP
julia> m =Model();
julia>@defVar(m, x[2:3]);
julia> x[4]
ERROR: BoundsError: attempt to access 2-element Array{JuMP.Variable,1}:
x[2]
x[3]
at index [3]
in getindex at no file
The text was updated successfully, but these errors were encountered:
julia> x[4]
ERROR: Failed attempt to index JuMPArray along dimension 1: 4 ∉ 2:3
in error at error.jl:21
in getindex at /home/mlubin/.julia/v0.4/JuMP/src/JuMPArray.jl:70
The text was updated successfully, but these errors were encountered: