Class ConstraintSolver

java.lang.Object
io.openems.edge.ess.core.power.solver.ConstraintSolver

public class ConstraintSolver extends Object
  • 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 - the Coefficients
      constraints - a list of Constraints
      Returns:
      a solution
      Throws:
      org.apache.commons.math3.optim.linear.NoFeasibleSolutionException - if not solvable
      org.apache.commons.math3.optim.linear.UnboundedSolutionException - if not solvable