Class LinearConstraintsSolver

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

public class LinearConstraintsSolver extends Object
  • 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 - the Coefficients
      constraints - a list of LinearConstraints
      Returns:
      a solution as PointValuePair
      Throws:
      org.apache.commons.math3.exception.MathIllegalStateException - if not solvable