Skip to content

Commit 34227bf

Browse files
committed
fix of minor syntax error in constraint_active_kcl_shunt_ne
1 parent 15829a9 commit 34227bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/form/acp.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function constraint_active_kcl_shunt_ne{T <: AbstractACPForm}(pm::GenericPowerMo
7676
p_ne = getvariable(pm.model, :p_ne)
7777
pg = getvariable(pm.model, :pg)
7878

79-
c = @constraint(pm.model, sum(p[a] for a in bus_branches) + sum(p_ne[a] for a in bus_branches_ne) == sum(pg[g], g in bus_gens) - bus["pd"] - bus["gs"]*v[i]^2)
79+
c = @constraint(pm.model, sum(p[a] for a in bus_branches) + sum(p_ne[a] for a in bus_branches_ne) == sum(pg[g] for g in bus_gens) - bus["pd"] - bus["gs"]*v[i]^2)
8080
return Set([c])
8181
end
8282

0 commit comments

Comments
 (0)