Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fillVarNames assumes ordered index set #200

Closed
mlubin opened this issue Jun 13, 2014 · 1 comment
Closed

fillVarNames assumes ordered index set #200

mlubin opened this issue Jun 13, 2014 · 1 comment

Comments

@mlubin
Copy link
Member

mlubin commented Jun 13, 2014

julia> s = Set([:foo,:bar]);

julia> @defVar(m, x[s]);

julia> x[:foo]
ERROR: no method getindex(Set{Symbol}, Int64)
 in fillVarNames at /home/mlubin/.julia/v0.3/JuMP/src/print.jl:49
 in getName at /home/mlubin/.julia/v0.3/JuMP/src/JuMP.jl:201
 in show at /home/mlubin/.julia/v0.3/JuMP/src/print.jl:311

This might be fixed anyway when printing is rewritten for #192.

@joehuchette
Copy link
Contributor

No longer an problem on master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants