Class RootFinder
java.lang.Object
org.tweetyproject.math.opt.rootFinder.RootFinder
- Direct Known Subclasses:
NewtonRootFinder
,OptimizationRootFinder
Classes which extend this class represent algorithms for
finding zero points (roots) of functions.
- Author:
- Matthias Thimm
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCreates a new root finder for the given function.Creates a new root finder for the given starting point and the given (multi-dimensional) function -
Method Summary
Modifier and TypeMethodDescriptionReturns the function of this root finder.Returns the starting point of this finder.Determines the values for the variables appearing in the function such the function evaluates to zero.void
setStartingPoint
(Map<Variable, Term> startingPoint) sets the starting point of this root finder.
-
Field Details
-
PRECISION
public static double PRECISIONThe precision for finding roots.
-
-
Constructor Details
-
RootFinder
public RootFinder()Creates a new root finder for the given function. -
RootFinder
-
-
Method Details
-
setStartingPoint
-
getStartingPoint
-
getFunctions
-
randomRoot
public abstract Map<Variable,Term> randomRoot(List<Term> functions, Map<Variable, Term> startingPoint) throws GeneralMathExceptionDetermines the values for the variables appearing in the function such the function evaluates to zero.- Parameters:
functions
- the functionsstartingPoint
- the starting point for the search- Returns:
- a map from variables to terms such that "function" evaluates to zero.
- Throws:
GeneralMathException
- if something went wrong.
-