Class KeepTargetDirectionAndMaximizeInOrder
java.lang.Object
io.openems.edge.ess.core.power.optimizers.KeepTargetDirectionAndMaximizeInOrder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.commons.math3.optim.PointValuePair
apply
(Coefficients coefficients, List<Inverter> allInverters, List<Inverter> targetInverters, List<Constraint> allConstraints, TargetDirection targetDirection) Tries to keep all Target Inverters in the right TargetDirection; then maximizes them in order.
-
Constructor Details
-
KeepTargetDirectionAndMaximizeInOrder
public KeepTargetDirectionAndMaximizeInOrder()
-
-
Method Details
-
apply
public static org.apache.commons.math3.optim.PointValuePair apply(Coefficients coefficients, List<Inverter> allInverters, List<Inverter> targetInverters, 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
-