Class OptimizationRootFinder

    • Field Summary

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

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

      Modifier and Type Method Description
      protected OptimizationProblem buildOptimizationProblem()
      Builds an optimization problem for the task of root finding.
      abstract java.util.Map<Variable,​Term> randomRoot()
      Determines the values for the variables appearing in the function such the function evaluates to zero.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • LOG

        private static org.slf4j.Logger LOG
        reference to the logback logger instance
    • Constructor Detail

      • OptimizationRootFinder

        public OptimizationRootFinder​(Term function)
        Creates a new root finder for the given function.
        Parameters:
        function - a term
      • OptimizationRootFinder

        public OptimizationRootFinder​(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
      • 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 functions
        startingPoint - the starting point
    • 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 java.util.Map<Variable,​Term> randomRoot()
                                                               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 class RootFinder
        Returns:
        a map from variables to terms such that "function" evaluates to zero.
        Throws:
        GeneralMathException - if something went wrong.