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
-
Constructor Summary
ConstructorsConstructorDescriptionConstructorApacheCommonsSimplex(boolean restrictToNonNegative) ConstructorApacheCommonsSimplex(double precision) ConstructorApacheCommonsSimplex(int maxiterations, double precision, boolean restrictToNonNegative) Constructor -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanReturn if solver is installedLogger.Methods inherited from class org.tweetyproject.math.opt.solver.Solver
getDefaultGeneralSolver, getDefaultIntegerLinearSolver, getDefaultLinearSolver, hasDefaultGeneralSolver, hasDefaultIntegerLinearSolver, hasDefaultLinearSolver, setDefaultGeneralSolver, setDefaultIntegerLinearSolver, setDefaultLinearSolver
-
Constructor Details
-
ApacheCommonsSimplex
public ApacheCommonsSimplex()Constructor -
ApacheCommonsSimplex
public ApacheCommonsSimplex(boolean restrictToNonNegative) Constructor- Parameters:
restrictToNonNegative- Whether only positive solutions are allowed.
-
ApacheCommonsSimplex
public ApacheCommonsSimplex(double precision) Constructor- Parameters:
precision- The precision
-
ApacheCommonsSimplex
public ApacheCommonsSimplex(int maxiterations, double precision, boolean restrictToNonNegative) Constructor- Parameters:
maxiterations- The maximum number of iterations of the simplex algorithm.precision- The precisionrestrictToNonNegative- Whether only positive solutions are allowed.
-
-
Method Details
-
solve
-
isInstalled
Return if solver is installed- Returns:
- if solver is installed
- Throws:
UnsupportedOperationException- UnsupportedOperationException
-