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()
Feasibility problem with:*0 linear constraints
*0 variables
Solver is default solver
julia> d =Dict(:a=>1)
Dict{Symbol,Int64} with 1 entry::a=>1
julia>@variable(m, x[keys(d)])
x[i] free ∀ i ∈ {…}
julia>@variable(m, y[1:2])
2-element Array{JuMP.Variable,1}:
Error showing value of type Array{JuMP.Variable,1}:
ERROR: MethodError:`getindex` has no method matching getindex(::Base.KeyIterator{Dict{Symbol,Int64}}, ::Int64)
in fill_var_names at /home/mlubin/.julia/v0.4/JuMP/src/print.jl:314in var_str at /home/mlubin/.julia/v0.4/JuMP/src/print.jl:302in showcompact_lim at show.jl:120in sprint at iostream.jl:206in alignment at show.jl:1012in print_matrix at show.jl:1087in print_matrix at show.jl:1079in anonymous at replutil.jl:23in with_output_limit at ./show.jl:1276in writemime at replutil.jl:23in display at REPL.jl:114in display at REPL.jl:117
[inlined code] from multimedia.jl:151in display at multimedia.jl:163in print_response at REPL.jl:134in print_response at REPL.jl:121in anonymous at REPL.jl:624in run_interface at ./LineEdit.jl:1610in run_frontend at ./REPL.jl:863in run_repl at ./REPL.jl:167in _start at ./client.jl:420
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: