Class ApacheCommonsSimplex
java.lang.Object
org.tweetyproject.math.opt.solver.Solver
org.tweetyproject.math.opt.solver.ApacheCommonsSimplex
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
Modifier and TypeFieldDescriptionint
The maximum number of iterations of the simplex algorithm.boolean
Whether only positive solutions are allowed. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Return if solver is installedComputes a solution to the given constraint satisfaction or optimization problem, i.e.Methods inherited from class org.tweetyproject.math.opt.solver.Solver
getDefaultGeneralSolver, getDefaultIntegerLinearSolver, getDefaultLinearSolver, hasDefaultGeneralSolver, hasDefaultIntegerLinearSolver, hasDefaultLinearSolver, setDefaultGeneralSolver, setDefaultIntegerLinearSolver, setDefaultLinearSolver
-
Field Details
-
MAXITERATIONS
public int MAXITERATIONSThe maximum number of iterations of the simplex algorithm. -
onlyPositive
public boolean onlyPositiveWhether only positive solutions are allowed.
-
-
Constructor Details
-
ApacheCommonsSimplex
public ApacheCommonsSimplex()Constructor
-
-
Method Details
-
solve
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
Return if solver is installed- Returns:
- if solver is installed
- Throws:
UnsupportedOperationException
- UnsupportedOperationException
-