Package net.sf.tweety.math.opt
Class HessianGradientDescentRootFinder
- java.lang.Object
-
- net.sf.tweety.math.opt.RootFinder
-
- net.sf.tweety.math.opt.OptimizationRootFinder
-
- net.sf.tweety.math.opt.HessianGradientDescentRootFinder
-
public class HessianGradientDescentRootFinder extends OptimizationRootFinder
Implements the hessiane/gradient descent method to find zeros of a (multi-dimensional) function.- Author:
- Matthias Thimm
-
-
Field Summary
-
Fields inherited from class net.sf.tweety.math.opt.RootFinder
PRECISION
-
-
Constructor Summary
Constructors Constructor Description HessianGradientDescentRootFinder(java.util.List<Term> functions, java.util.Map<Variable,Term> startingPoint)
Creates a new root finder for the given starting point and the given (multi-dimensional) functionHessianGradientDescentRootFinder(Term function, java.util.Map<Variable,Term> startingPoint)
Creates a new root finder for the given starting point and the given function
-
Method Summary
Modifier and Type Method Description java.util.Map<Variable,Term>
randomRoot()
Determines the values for the variables appearing in the function such the function evaluates to zero.-
Methods inherited from class net.sf.tweety.math.opt.OptimizationRootFinder
buildOptimizationProblem
-
Methods inherited from class net.sf.tweety.math.opt.RootFinder
getFunctions, getStartingPoint, setStartingPoint
-
-
-
-
Constructor Detail
-
HessianGradientDescentRootFinder
public HessianGradientDescentRootFinder(Term function, java.util.Map<Variable,Term> startingPoint)
Creates a new root finder for the given starting point and the given function- Parameters:
function
- a functionstartingPoint
- the starting point
-
HessianGradientDescentRootFinder
public HessianGradientDescentRootFinder(java.util.List<Term> functions, java.util.Map<Variable,Term> startingPoint)
Creates a new root finder for the given starting point and the given (multi-dimensional) function- Parameters:
functions
- a list of functionsstartingPoint
- the starting point
-
-
Method Detail
-
randomRoot
public java.util.Map<Variable,Term> randomRoot() throws GeneralMathException
Description 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
- Returns:
- a map from variables to terms such that "function" evaluates to zero.
- Throws:
GeneralMathException
- if something went wrong.
-
-