Class ConstraintSolver

  • public class ConstraintSolver
    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<Constraint> constraints)
      Solves the problem with the given list of Constraints.
      • Methods inherited from class java.lang.Object

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

      • ConstraintSolver

        public ConstraintSolver()
    • 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,
        Solves the problem with the given list of Constraints.
        coefficients - the Coefficients
        constraints - a list of Constraints
        a solution
        org.apache.commons.math3.optim.linear.NoFeasibleSolutionException - if not solvable
        org.apache.commons.math3.optim.linear.UnboundedSolutionException - if not solvable