Open SanPen opened 1 year ago
The power flow results already include the node injection power which is calculated by network parameters. At the same time all appliances have their power values by appliance parameters.
The difference of these two is the power mismatch. I am hesitating to provide additional attributes for the mismatch. The user can easily calculate this by himself. @petersalemink95 what do you think?
Hi,
Maybe not the mismatch vector but the norm max(abs(mismatch))
since this is a useful value to decide if to trust the solution.
a potentially useful consideration here is the following:
@mgovers even with columnar dataset we are not dealing with memory issue. The calculation itself still cost some CPU time. It might not be very much.
But indeed, with columnar dataset we are more permissive to add new attributes. That's why I keep this issue open.
Detailing the steps for finding mismatch in power after calculation. Correct me if I am wrong:
const_impedance
and const_current
type by result's voltage.How about we provide a utility function to do this? Or what if we have this as addition for the PGM data science toolkit? This problem is a post calculation operation on numpy arrays. Similar might be applicable to bad data detection with chi square test feature request.
It would be nice if the results would provide the nodal power mismatch or the norm of this.
This is the stopping criteria for Newton Raphson.
For methods that use voltage iteration similarity as criteria (i.e. Backwards-Forward) provide the power mismatch as well.