Package io.openems.edge.ess.power.api
Class Constraint
java.lang.Object
io.openems.edge.ess.power.api.Constraint
Creates a constraint with following settings:.
- Relationship (EQ, GEQ, LEQ) as given in constructor
- Value as given in constructor
- Setting each coefficient, i.e.
y = 1*p1 + 0*q1 * + 1*p2 + 0*q1 +...
-
Constructor Summary
ConstructorDescriptionConstraint
(String description, LinearCoefficient[] coefficients, Relationship relationship) Creates an initially disabled Constraint.Constraint
(String description, LinearCoefficient[] coefficients, Relationship relationship, double value) Constraint
(String description, LinearCoefficient[] coefficients, Relationship relationship, Optional<Double> value) Constraint
(String description, List<LinearCoefficient> coefficients, Relationship relationship, double value) Constraint
(String description, List<LinearCoefficient> coefficients, Relationship relationship, Optional<Double> value) -
Method Summary
Modifier and TypeMethodDescriptionvoid
disable()
Disable thisConstraint
.getValue()
void
setValue
(double value) toString()
-
Constructor Details
-
Constraint
public Constraint(String description, LinearCoefficient[] coefficients, Relationship relationship, double value) -
Constraint
public Constraint(String description, List<LinearCoefficient> coefficients, Relationship relationship, double value) -
Constraint
Creates an initially disabled Constraint.- Parameters:
description
- the descriptioncoefficients
- array ofLinearCoefficient
srelationship
- theRelationship
-
Constraint
public Constraint(String description, LinearCoefficient[] coefficients, Relationship relationship, Optional<Double> value) -
Constraint
public Constraint(String description, List<LinearCoefficient> coefficients, Relationship relationship, Optional<Double> value)
-
-
Method Details
-
toString
-
getDescription
-
getCoefficients
-
getRelationship
-
getValue
-
setValue
public void setValue(double value) -
disable
public void disable()Disable thisConstraint
.
-