Class NewtonRootFinder
java.lang.Object
org.tweetyproject.math.opt.rootFinder.RootFinder
org.tweetyproject.math.opt.rootFinder.NewtonRootFinder
This class implements the Newton method for finding zeros of a function.
- Author:
 - Matthias Thimm
 
- 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe maximum number of fixing iterations.static final doubleThe precision of the approximation. - 
Constructor Summary
ConstructorsConstructorDescriptionCreates a new Newton root finder for the given starting point and the given function - 
Method Summary
Methods inherited from class org.tweetyproject.math.opt.rootFinder.RootFinder
getFunctions, getStartingPoint, setStartingPoint 
- 
Field Details
- 
PRECISION
public static final double PRECISIONThe precision of the approximation. The actual used precision depends on the number of variables.- See Also:
 
 - 
MAX_FIX_ITERATIONS
public static final int MAX_FIX_ITERATIONSThe maximum number of fixing iterations.- See Also:
 
 
 - 
 - 
Constructor Details
- 
NewtonRootFinder
public NewtonRootFinder()Creates a new Newton root finder for the given starting point and the given function 
 - 
 - 
Method Details
- 
randomRoot
public Map<Variable,Term> randomRoot(List<Term> functions, Map<Variable, Term> startingPoint) throws GeneralMathExceptionDescription 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.
 
 -