Class LinearConstraintsSolver


  • public class LinearConstraintsSolver
    extends java.lang.Object
    • 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<org.apache.commons.math3.optim.linear.LinearConstraint> constraints)
      Solves the problem with the given list of LinearConstraints.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LinearConstraintsSolver

        public LinearConstraintsSolver()
    • Method Detail

      • solve

        public static org.apache.commons.math3.optim.PointValuePair solve​(Coefficients coefficients,
                                                                          java.util.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