lanl-ansi / PowerModelsDistribution.jl

A Julia/JuMP Package for Unbalanced Power Network Optimization
https://lanl-ansi.github.io/PowerModelsDistribution.jl/stable/
Other
146 stars 43 forks source link

[BUG] Equation for load.kva might be wrong in create_dss_object #467

Open John-Boik opened 3 months ago

John-Boik commented 3 months ago

In the function create_dss_object, for creating loads, the following occurs three times:

load.kva = abs(load.kw) + load.kvar^2

I believe the equation be:

load.kva =  sqrt(load.kw^2 + load.kvar^2)

In the same function, line 27, the following appears:

elseif :pf ∈ raw_fields && load.pf != 0.88

This seems like a rather strange test for power factor. Is it intended to be this way?