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
functions, PRECISION, startingPoint
-
-
Constructor Summary
Constructors Constructor Description OptimizationRootFinder()Creates a new root finder for the given starting point and the given functionOptimizationRootFinder(List<Term> functions, Map<Variable,Term> startingPoint)Creates a new root finder for the given starting point and the given (multi-dimensional) function
-
Method Summary
Modifier and Type Method Description protected OptimizationProblembuildOptimizationProblem()Builds an optimization problem for the task of root finding.abstract Map<Variable,Term>randomRoot(List<Term> functions, Map<Variable,Term> startingPoint)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.rootFinder.RootFinder
getFunctions, getStartingPoint, setStartingPoint
-
-
-
-
Method Detail
-
buildOptimizationProblem
protected OptimizationProblem buildOptimizationProblem()
Builds an optimization problem for the task of root finding.- Returns:
- an optimization problem for the task of root finding.
-
randomRoot
public abstract Map<Variable,Term> randomRoot(List<Term> functions, Map<Variable,Term> startingPoint) throws GeneralMathException
Description copied from class:RootFinderDetermines the values for the variables appearing in the function such the function evaluates to zero.- Specified by:
randomRootin 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.
-
-