Class GradientDescentRootFinder


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

      Fields 
      Modifier and Type Field Description
      private static org.slf4j.Logger LOG
      reference to the logback logger instance
      double precision
      The precision of the approximation.
    • Constructor Summary

      Constructors 
      Constructor Description
      GradientDescentRootFinder​(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
      GradientDescentRootFinder​(Term function, java.util.Map<Variable,​Term> startingPoint)
      Creates a new root finder for the given starting point and the given function
    • Field Detail

      • LOG

        private static org.slf4j.Logger LOG
        reference to the logback logger instance
      • 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,
                                         java.util.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​(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 functions
        startingPoint - the starting point