Class MoveTowardsTarget
java.lang.Object
io.openems.edge.ess.core.power.optimizers.MoveTowardsTarget
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.commons.math3.optim.PointValuePair
apply
(Coefficients coefficients, TargetDirection targetDirection, List<Inverter> allInverters, List<Inverter> targetInverters, List<Constraint> allConstraints) Tries to adjust the weights used in last applyPower() towards the target weights using a learning rate.
-
Constructor Details
-
MoveTowardsTarget
public MoveTowardsTarget()
-
-
Method Details
-
apply
public static org.apache.commons.math3.optim.PointValuePair apply(Coefficients coefficients, TargetDirection targetDirection, List<Inverter> allInverters, List<Inverter> targetInverters, 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
- theCoefficients
allInverters
- allInverter
stargetInverters
- the targetInverter
sallConstraints
- all activeConstraint
stargetDirection
- theTargetDirection
- Returns:
- a solution as
PointValuePair
or null - Throws:
OpenemsException
- on error
-