power-grid-model
power-grid-model copied to clipboard
[FEATURE] *Add P and Q min and max to LoadGenerator*
The LoadGenerator types: sym_load
, sym_gen
, asym_load
, and asym_gen
, have as input p_specified
and q_specified
which are RealValueInput, so they can take both positive and negative values.
My proposal is to add attributes 'p_min', 'p_max', 'q_min', 'q_max' to the LoadGenerators, that can be used to indicate what are the minimum and maximum values that can be taken.
For example, now a sym_load only has p_specified, which is its nominal(maximum)power. But a sym_load can take a negative value as well as a result of a calculation in p
. However, since no lower/minimum is specified, it cannot be compared or checked after PGM runs a calculation to see if the result p
is within the expected bounds.
As default the following is proposed:
sym_load
: p_min
= 0, p_max
= p_specified
, equivalent for q and reference direction load.
sym_gen
: p_min
= 0, p_max
= p_specified
, equivalent for q and reference direction generation.