Package com.powsybl.loadflow.validation
Class BalanceTypeGuesser
java.lang.Object
com.powsybl.loadflow.validation.BalanceTypeGuesser
On creation, tries to guess the balancing method used by the computation, from the differences between
the computed power outputs and initial target power.
This is necessary since the balancing method actually used is not known.
- Author:
- Massimo Ferraro <[email protected]>
-
Constructor Summary
ConstructorDescriptionBalanceTypeGuesser
(Network network, double threshold) Tries to guess the balancing method for the provided network. -
Method Summary
Modifier and TypeMethodDescriptionThe balance type identified as most likely (leading to the smallest variance around theoretical values).double
The balancing ratio value, assuming balancing proportional to P headroom.double
getKMax()
The balancing ratio value, assuming balancing proportional to P max.double
The balancing ratio value, assuming balancing proportional to target P.getSlack()
The identified slack generator, if any.
-
Constructor Details
-
BalanceTypeGuesser
public BalanceTypeGuesser() -
BalanceTypeGuesser
Tries to guess the balancing method for the provided network.- Parameters:
threshold
- : Under this threshold, a power deviation will not be seen as significant (not taken into account in the ratio computation).
-
-
Method Details
-
getBalanceType
The balance type identified as most likely (leading to the smallest variance around theoretical values). -
getSlack
The identified slack generator, if any. -
getKMax
public double getKMax()The balancing ratio value, assuming balancing proportional to P max. -
getKTarget
public double getKTarget()The balancing ratio value, assuming balancing proportional to target P. -
getKHeadroom
public double getKHeadroom()The balancing ratio value, assuming balancing proportional to P headroom.
-