Class ApacheCommonsSimplex


  • public class ApacheCommonsSimplex
    extends Solver
    This class is a wrapper for the Apache Commons Math Simplex implementation. See http://commons.apache.org/math. Version used is 2.0
    Author:
    Matthias Thimm
    • Field Detail

      • MAXITERATIONS

        public int MAXITERATIONS
        The maximum number of iterations of the simplex algorithm.
      • onlyPositive

        public boolean onlyPositive
        Whether only positive solutions are allowed.
    • Constructor Detail

      • ApacheCommonsSimplex

        public ApacheCommonsSimplex()
    • Method Detail

      • solve

        public java.util.Map<Variable,​Term> solve​(ConstraintSatisfactionProblem problem)
        Description copied from class: Solver
        Computes a solution to the given constraint satisfaction or optimization problem, i.e. a mapping from variables of the problem to terms.
        Specified by:
        solve in class Solver
        Parameters:
        problem - the actual problem
        Returns:
        a mapping from variables of the problem to terms.
      • isInstalled

        public static boolean isInstalled()
                                   throws java.lang.UnsupportedOperationException
        Throws:
        java.lang.UnsupportedOperationException