Package Utils

Class Optimize


  • public class Optimize
    extends java.lang.Object
    Optimizes integer parameter values. There are probably better ways of doing this!
    • Constructor Summary

      Constructors 
      Constructor Description
      Optimize​(Value value, int[] startmax, int[] absmax)
      Create a new optimizer
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int[] getBestParameter()
      Returns the optimized parameters
      double getBestValue()
      Returns the optimized value
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Optimize

        public Optimize​(Value value,
                        int[] startmax,
                        int[] absmax)
                 throws Optimize.OptimizeException
        Create a new optimizer
        Parameters:
        value - The "object" that is to be optimized
        startmax - The starting maximum values for each parameter
        absmax - The absolute maximum value for each parameter
        Throws:
        Optimize.OptimizeException - If there's an error!
    • Method Detail

      • getBestValue

        public double getBestValue()
        Returns the optimized value
        Returns:
        The optimized value
      • getBestParameter

        public int[] getBestParameter()
        Returns the optimized parameters
        Returns:
        The optimized parameters