Hi, thanks for the answer. Below the full stacktrace. Indeed one of the two p_flow (“in” or “out” of the node “r”) does not have the key depending on how is oriented, but the trick “if r==m” and “if r==k” in the sum(.) worked just fine before updating JuMP to ver >0.20.6
Any other hint?
Regards,
Fabrizio
Stacktrace:
[1] getindex(::JuMP.Containers._AxisLookup{Dict{NTuple{4,Int64},Int64}}, ::Tuple{Int32,Int32,Int32,Int64}) at C:\Users\Fabrizio.julia\packages\JuMP\klrjG\src\Containers\DenseAxisArray.jl:18
[2] _getindex_recurse(::Tuple{JuMP.Containers._AxisLookup{Dict{NTuple{4,Int64},Int64}}}, ::Tuple{Tuple{Int32,Int32,Int32,Int64}}, ::getfield(JuMP.Containers, Symbol(“##8#10”))) at C:\Users\Fabrizio.julia\packages\JuMP\klrjG\src\Containers\DenseAxisArray.jl:250
[3] to_index(::JuMP.Containers.DenseAxisArray{VariableRef,1,Tuple{Array{NTuple{4,Int64},2}},Tuple{JuMP.Containers._AxisLookup{Dict{NTuple{4,Int64},Int64}}}}, ::Tuple{Tuple{Int32,Int32,Int32,Int64}}) at C:\Users\Fabrizio.julia\packages\JuMP\klrjG\src\Containers\DenseAxisArray.jl:259
[4] getindex(::JuMP.Containers.DenseAxisArray{VariableRef,1,Tuple{Array{NTuple{4,Int64},2}},Tuple{JuMP.Containers._AxisLookup{Dict{NTuple{4,Int64},Int64}}}}, ::Tuple{Int32,Int32,Int32,Int64}) at C:\Users\Fabrizio.julia\packages\JuMP\klrjG\src\Containers\DenseAxisArray.jl:266
[5] MyNetworkcns(::Model, ::Array{Tuple{Int32,Int32,Int32},1}, ::Array{Int64,1}, ::Int64, ::Array{Float64,1}, ::Bool, ::String, ::Bool, ::Int64, ::Bool, ::Bool) at C:\Users\Fabrizio.julia\packages\MutableArithmetics\0Y9ZS\src\rewrite.jl:279
[6] SolveMyProblem(::String, ::Int64, ::Float64, ::Int64, ::Int64, ::Array{Float64,2}, ::Array{Tuple{Int32,Int32,Int32},1}, ::Array{Int64,1}, ::Array{Float64,1}, ::Bool, ::String, ::Int64, ::Bool) at C:\DATI\Codici_Sorgente\ProgrammiJulia\UCOTS_20211106_newJump\UCOTS.jl:584
[7] top-level scope at none:0
[8] include at .\boot.jl:326 [inlined]
[9] include_relative(::Module, ::String) at .\loading.jl:1038
[10] include(::Module, ::String) at .\sysimg.jl:29
[11] include(::String) at .\client.jl:403
[12] top-level scope at none:0