Class OptimizationRootFinder
- java.lang.Object
-
- net.sf.tweety.math.opt.rootFinder.RootFinder
-
- net.sf.tweety.math.opt.rootFinder.OptimizationRootFinder
-
- Direct Known Subclasses:
BfgsRootFinder
,GradientDescentRootFinder
,HessianGradientDescentRootFinder
public abstract class OptimizationRootFinder extends RootFinder
This class is the common ancestor for root finders that work with optimizers.- Author:
- Matthias Thimm
-
-
Field Summary
-
Fields inherited from class net.sf.tweety.math.opt.rootFinder.RootFinder
PRECISION
-
-
Constructor Summary
Constructors Constructor Description OptimizationRootFinder()
Creates a new root finder for the given starting point and the given functionOptimizationRootFinder(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
-
Method Summary
-
Methods inherited from class net.sf.tweety.math.opt.rootFinder.RootFinder
getFunctions, getStartingPoint, setStartingPoint
-
-
-
-
Constructor Detail
-
OptimizationRootFinder
public OptimizationRootFinder()
Creates a new root finder for the given starting point and the given function
-
OptimizationRootFinder
public OptimizationRootFinder(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 abstract java.util.Map<Variable,Term> randomRoot(java.util.List<Term> functions, java.util.Map<Variable,Term> startingPoint) 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 classRootFinder
- 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.
-
-