Package net.sf.tweety.math.opt.solver
Class ApacheCommonsSimplex
- java.lang.Object
-
- net.sf.tweety.math.opt.Solver
-
- net.sf.tweety.math.opt.solver.ApacheCommonsSimplex
-
public class ApacheCommonsSimplex extends Solver
This class is a wrapper for the Apache Commons Math Simplex implementation. See http://commons.apache.org/math.- Author:
- Matthias Thimm
-
-
Field Summary
Fields Modifier and Type Field Description intMAXITERATIONSThe maximum number of iterations of the simplex algorithm.booleanonlyPositiveWhether only positive solutions are allowed.
-
Constructor Summary
Constructors Constructor Description ApacheCommonsSimplex()
-
Method Summary
Modifier and Type Method Description static booleanisInstalled()java.util.Map<Variable,Term>solve(ConstraintSatisfactionProblem problem)Computes a solution to the given constraint satisfaction or optimization problem, i.e.-
Methods inherited from class net.sf.tweety.math.opt.Solver
getDefaultGeneralSolver, getDefaultIntegerLinearSolver, getDefaultLinearSolver, hasDefaultGeneralSolver, hasDefaultIntegerLinearSolver, hasDefaultLinearSolver, setDefaultGeneralSolver, setDefaultIntegerLinearSolver, setDefaultLinearSolver
-
-
-
-
Method Detail
-
solve
public java.util.Map<Variable,Term> solve(ConstraintSatisfactionProblem problem)
Description copied from class:SolverComputes a solution to the given constraint satisfaction or optimization problem, i.e. a mapping from variables of the problem to terms.
-
isInstalled
public static boolean isInstalled() throws java.lang.UnsupportedOperationException- Throws:
java.lang.UnsupportedOperationException
-
-