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