Class ConstraintSolver
- java.lang.Object
-
- io.openems.edge.ess.core.power.solver.ConstraintSolver
-
public class ConstraintSolver extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ConstraintSolver()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.apache.commons.math3.optim.PointValuePair
solve(Coefficients coefficients, java.util.List<Constraint> constraints)
Solves the problem with the given list of Constraints.
-
-
-
Method Detail
-
solve
public static org.apache.commons.math3.optim.PointValuePair solve(Coefficients coefficients, java.util.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
-
-