Class InverterPrecision


  • public class InverterPrecision
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Map<Inverter,​PowerTuple> apply​(Coefficients coefficients, java.util.List<Inverter> allInverters, java.util.List<ManagedSymmetricEss> esss, org.apache.commons.math3.optim.PointValuePair solution, TargetDirection targetDirection)
      Rounds each solution value to the Inverter precision; following this logic.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • InverterPrecision

        public InverterPrecision()
    • Method Detail

      • apply

        public static java.util.Map<Inverter,​PowerTuple> apply​(Coefficients coefficients,
                                                                     java.util.List<Inverter> allInverters,
                                                                     java.util.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 - the Coefficients
        allInverters - all Inverters
        esss - all ManagedSymmetricEsss
        solution - a PointValuePair solution
        targetDirection - the TargetDirection
        Returns:
        a map of inverters to PowerTuples
        Throws:
        OpenemsException - on error