Class KeepTargetDirectionAndMaximizeInOrder
- java.lang.Object
-
- io.openems.edge.ess.core.power.optimizers.KeepTargetDirectionAndMaximizeInOrder
-
public class KeepTargetDirectionAndMaximizeInOrder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description KeepTargetDirectionAndMaximizeInOrder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.apache.commons.math3.optim.PointValuePair
apply(Coefficients coefficients, java.util.List<Inverter> allInverters, java.util.List<Inverter> targetInverters, java.util.List<Constraint> allConstraints, TargetDirection targetDirection)
Tries to keep all Target Inverters in the right TargetDirection; then maximizes them in order.
-
-
-
Method Detail
-
apply
public static org.apache.commons.math3.optim.PointValuePair apply(Coefficients coefficients, java.util.List<Inverter> allInverters, java.util.List<Inverter> targetInverters, java.util.List<Constraint> allConstraints, TargetDirection targetDirection) throws OpenemsException
Tries to keep all Target Inverters in the right TargetDirection; then maximizes them in order.- Parameters:
coefficients
- theCoefficients
allInverters
- allInverter
stargetInverters
- the targetInverter
sallConstraints
- all activeConstraint
stargetDirection
- theTargetDirection
- Returns:
- a solution as
PointValuePair
or null - Throws:
OpenemsException
- on error
-
-