Class MoveTowardsTarget


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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.apache.commons.math3.optim.PointValuePair apply​(Coefficients coefficients, TargetDirection targetDirection, java.util.List<Inverter> allInverters, java.util.List<Inverter> targetInverters, java.util.List<Constraint> allConstraints)
      Tries to adjust the weights used in last applyPower() towards the target weights using a learning rate.
      • Methods inherited from class java.lang.Object

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

      • MoveTowardsTarget

        public MoveTowardsTarget()
    • Method Detail

      • apply

        public static org.apache.commons.math3.optim.PointValuePair apply​(Coefficients coefficients,
                                                                          TargetDirection targetDirection,
                                                                          java.util.List<Inverter> allInverters,
                                                                          java.util.List<Inverter> targetInverters,
                                                                          java.util.List<Constraint> allConstraints)
                                                                   throws OpenemsException
        Tries to adjust the weights used in last applyPower() towards the target weights using a learning rate. If this fails it tries to start from the target weights towards a given existing solution.
        Parameters:
        coefficients - the Coefficients
        allInverters - all Inverters
        targetInverters - the target Inverters
        allConstraints - all active Constraints
        targetDirection - the TargetDirection
        Returns:
        a solution as PointValuePair or null
        Throws:
        OpenemsException - on error