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

JuMPDict not defined #83

Open
dourouc05 opened this issue Oct 3, 2019 · 0 comments
Open

JuMPDict not defined #83

dourouc05 opened this issue Oct 3, 2019 · 0 comments

Comments

@dourouc05
Copy link

I'm trying to use JuMPeR on Julia 1.0.5 with JuMP 0.18.6, but I get this error:

ERROR: LoadError: UndefVarError: JuMPDict not defined
Stacktrace:
 [1] top-level scope at C:\Users\Thibaut\.julia\packages\JuMP\I7whV\src\macros.jl:231
 [2] top-level scope at C:\Users\Thibaut\.julia\packages\JuMPeR\SzH48\src\robustmacro.jl:196
 [3] top-level scope at C:\Users\Thibaut\.julia\packages\JuMP\I7whV\src\macros.jl:285
 [4] include at .\boot.jl:317 [inlined]
 [5] include_relative(::Module, ::String) at .\loading.jl:1044
 [6] include(::Module, ::String) at .\sysimg.jl:29
 [7] include(::String) at .\client.jl:392
 [8] top-level scope at none:0
in expression starting at C:\Users\Thibaut\Documents\GitHub\orange\Routing\DemandOblivious\lib_jumper.jl:75

My code is the following (just a snippet):

n_edges = …::Int
n_demands = …::Int
d = …::SimpleEdge
demand_to_path_ids = …::Dict{SimpleEdge,Array{Int64,1}}
@uncertain(m, demand_flow[e in 1:n_edges, d in 1:n_demands, p in demand_to_path_ids[d]])

When looping over just e and d, I do not get this error. I have a quick fix: adding this line to robustmacro.jl, near the top.

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

No branches or pull requests

1 participant