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
FieldsModifier and TypeFieldDescriptionintThe maximum number of iterations of the simplex algorithm.booleanWhether only positive solutions are allowed. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanReturn 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:SolverComputes 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
-