Class LinearConstraintsSolver
java.lang.Object
io.openems.edge.ess.core.power.solver.LinearConstraintsSolver
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.commons.math3.optim.PointValuePair
solve
(Coefficients coefficients, List<org.apache.commons.math3.optim.linear.LinearConstraint> constraints) Solves the problem with the given list of LinearConstraints.
-
Constructor Details
-
LinearConstraintsSolver
public LinearConstraintsSolver()
-
-
Method Details
-
solve
public static org.apache.commons.math3.optim.PointValuePair solve(Coefficients coefficients, List<org.apache.commons.math3.optim.linear.LinearConstraint> constraints) throws org.apache.commons.math3.exception.MathIllegalStateException Solves the problem with the given list of LinearConstraints.- Parameters:
coefficients
- theCoefficients
constraints
- a list of LinearConstraints- Returns:
- a solution as
PointValuePair
- Throws:
org.apache.commons.math3.exception.MathIllegalStateException
- if not solvable
-