I have the following piece of code in PowerModels that does some post processing procedures. It works perfectly for small test systems.
aa = getvalue(var(pm, :cs)) bpp = Dict( (parse(Int,i), branch["f_bus"] , branch["t_bus"]) => aa[(branch["f_bus"],branch["t_bus"])] for (i,branch) in case["branch"])
However, when I apply it on larger test systems (e.g., nesta_case1394_sop_eir), I would get the following error. I will appreciate it if you guide me to fix this issue.
ERROR: Failed attempt to index JuMPArray along dimension 1
All the best,