Class InverterPrecision
java.lang.Object
io.openems.edge.ess.core.power.data.InverterPrecision
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Map<Inverter,
PowerTuple> apply
(Coefficients coefficients, List<Inverter> allInverters, List<ManagedSymmetricEss> esss, org.apache.commons.math3.optim.PointValuePair solution, TargetDirection targetDirection) Rounds each solution value to the Inverter precision; following this logic.
-
Constructor Details
-
InverterPrecision
public InverterPrecision()
-
-
Method Details
-
apply
public static Map<Inverter,PowerTuple> apply(Coefficients coefficients, List<Inverter> allInverters, List<ManagedSymmetricEss> esss, org.apache.commons.math3.optim.PointValuePair solution, TargetDirection targetDirection) throws OpenemsException Rounds each solution value to the Inverter precision; following this logic.On Discharge (Power > 0)
- if SoC > 50 %: round up (more discharge)
- if SoC < 50 %: round down (less discharge)
On Charge (Power < 0)
- if SoC > 50 %: round down (less charge)
- if SoC < 50 %: round up (more discharge)
- Parameters:
coefficients
- theCoefficients
allInverters
- allInverter
sesss
- allManagedSymmetricEss
ssolution
- aPointValuePair
solutiontargetDirection
- theTargetDirection
- Returns:
- a map of inverters to PowerTuples
- Throws:
OpenemsException
- on error
-