Class GradientDescentRootFinder


  • public class GradientDescentRootFinder
    extends OptimizationRootFinder
    Implements the gradient descent method to find zeros of a (multi-dimensional) function.
    Author:
    Matthias Thimm
    • Field Detail

      • precision

        public double precision
        The precision of the approximation. The actual used precision depends on the number of variables.
    • Constructor Detail

      • GradientDescentRootFinder

        public GradientDescentRootFinder​(Term function,
                                         Map<Variable,​Term> startingPoint)
        Creates a new root finder for the given starting point and the given function
        Parameters:
        function - a function
        startingPoint - the starting point
      • GradientDescentRootFinder

        public GradientDescentRootFinder​(List<Term> functions,
                                         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 functions
        startingPoint - the starting point