Package com.powsybl.loadflow.validation
Class BalanceTypeGuesser
- java.lang.Object
-
- com.powsybl.loadflow.validation.BalanceTypeGuesser
-
public class BalanceTypeGuesser extends Object
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
-
-
Constructor Summary
Constructors Constructor Description BalanceTypeGuesser()
BalanceTypeGuesser(Network network, double threshold)
Tries to guess the balancing method for the provided network.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BalanceType
getBalanceType()
The balance type identified as most likely (leading to the smallest variance around theoretical values).double
getKHeadroom()
The balancing ratio value, assuming balancing proportional to P headroom.double
getKMax()
The balancing ratio value, assuming balancing proportional to P max.double
getKTarget()
The balancing ratio value, assuming balancing proportional to target P.String
getSlack()
The identified slack generator, if any.
-
-
-
Constructor Detail
-
BalanceTypeGuesser
public BalanceTypeGuesser()
-
BalanceTypeGuesser
public BalanceTypeGuesser(Network network, double threshold)
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 Detail
-
getBalanceType
public BalanceType getBalanceType()
The balance type identified as most likely (leading to the smallest variance around theoretical values).
-
getSlack
public String 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.
-
-