Class GradientDescentRootFinder
java.lang.Object
org.tweetyproject.math.opt.rootFinder.RootFinder
org.tweetyproject.math.opt.rootFinder.OptimizationRootFinder
org.tweetyproject.math.opt.rootFinder.GradientDescentRootFinder
Implements the gradient descent method to find zeros of a (multi-dimensional)
function.
- Author:
- Matthias Thimm
-
Field Summary
Fields inherited from class org.tweetyproject.math.opt.rootFinder.RootFinder
PRECISION
-
Constructor Summary
ConstructorDescriptionCreates a new root finder for the given starting point and the given (multi-dimensional) function -
Method Summary
Methods inherited from class org.tweetyproject.math.opt.rootFinder.RootFinder
getFunctions, getStartingPoint, setStartingPoint
-
Field Details
-
precision
public double precisionThe precision of the approximation. The actual used precision depends on the number of variables.
-
-
Constructor Details
-
GradientDescentRootFinder
public GradientDescentRootFinder()Creates a new root finder for the given starting point and the given (multi-dimensional) function
-
-
Method Details
-
randomRoot
public Map<Variable,Term> randomRoot(List<Term> functions, Map<Variable, Term> startingPoint) throws GeneralMathExceptionDescription copied from class:RootFinder
Determines the values for the variables appearing in the function such the function evaluates to zero.- Specified by:
randomRoot
in classOptimizationRootFinder
- 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.
-