Class UtilOptimize

java.lang.Object
org.ddogleg.optimization.UtilOptimize

public class UtilOptimize extends Object
Performs common optimization tasks. Such as iterating until convergence.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static double
    maxAbs(double[] array, int idx0, int idx1)
    Returns the largest absolute value of an element in array within the specified range
    static boolean
    process(IterativeOptimization search, int maxSteps)
    Iterate until the line search converges or the maximum number of iterations has been exceeded.
    static boolean
    Performs a single step by iterating until the parameters are updated.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • UtilOptimize

      public UtilOptimize()
  • Method Details

    • process

      public static boolean process(IterativeOptimization search, int maxSteps)
      Iterate until the line search converges or the maximum number of iterations has been exceeded. The maximum number of steps is specified. A step is defined as the number of times the optimization parameters are changed.
      Parameters:
      search - Search algorithm
      maxSteps - Maximum number of steps.
      Returns:
      Value returned by IterativeOptimization.iterate()
    • step

      public static boolean step(IterativeOptimization search)
      Performs a single step by iterating until the parameters are updated.
      Parameters:
      search - Search algorithm
      Returns:
      Value returned by IterativeOptimization.iterate()
    • maxAbs

      public static double maxAbs(double[] array, int idx0, int idx1)
      Returns the largest absolute value of an element in array within the specified range