Package net.sf.tweety.math.opt.solver
Class ApacheCommonsSimplex
- java.lang.Object
-
- net.sf.tweety.math.opt.solver.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. Version used is 2.0- Author:
- Matthias Thimm
-
-
Field Summary
Fields Modifier and Type Field Description int
MAXITERATIONS
The maximum number of iterations of the simplex algorithm.boolean
onlyPositive
Whether only positive solutions are allowed.
-
Constructor Summary
Constructors Constructor Description ApacheCommonsSimplex()
-
Method Summary
Modifier and Type Method Description static boolean
isInstalled()
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.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:Solver
Computes 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
-
-