Hi Coffrin,

I notice that in the constraints, there is a function to get the power flow variables:

function constraint_thermal_limit_from(pm::GenericPowerModel, n::Int, c::Int, f_idx, rate_a)

p_fr = var(pm, n, c, :p, f_idx)

end

I know the f_idx = (i, f_bus, t_bus), but what is n and c? From the definition, n is the network id and c is the conductor id. When I assign the corresponding number, it shows key not found. Do I need to specify something else for n, and c.

I want to get the flow variables individually, like this:

p1=var(pm, nw, cnd,:p,(1,1,5)) #p[(1,1,5)]

p2=var(pm, nw, cnd,:p,(2,2,3)) #p[(2,2,3)]

p3=var(pm, nw, cnd,:p,(3,3,4)) #p[(3,3,4)]

p4=var(pm, nw, cnd,:p,(4,4,5)) #p[(4,4,5)]

pne1=var(pm, nw, cnd,:p_ne,(1,1,2)) #p_ne[(1,1,2)]

pne2=var(pm, nw, cnd,:p_ne,(2,1,4)) #p_ne[(2,1,4)]

pne3=var(pm, nw, cnd,:p_ne,(3,2,4)) #p_ne[(3,2,4)]

and put them into my nonlinear objective equation, which is very messy.

Thanks