OptimizableFunction
edu.stanford.rsl.jpop

Interface OptimizableFunction

    • Method Summary

      Methods 
      Modifier and TypeMethod and Description
      doubleevaluate(double[] x, int block)
      Evaluates the function at position x.
      (Note that x is a Fortran Array which starts at 1.)
      intgetNumberOfProcessingBlocks()
      returns the number of parallel processing blocks.
      voidsetNumberOfProcessingBlocks(int number)
      Sets the number of parallel processing blocks.
    • Method Detail

      • setNumberOfProcessingBlocks

        void setNumberOfProcessingBlocks(int number)
        Sets the number of parallel processing blocks. This number should optimally equal to the number of available processors in the current machine. Default value should be 1.
        Parameters:
        number -
      • getNumberOfProcessingBlocks

        int getNumberOfProcessingBlocks()
        returns the number of parallel processing blocks.
        Returns:
      • evaluate

        double evaluate(double[] x,              int block)
        Evaluates the function at position x.
        (Note that x is a Fortran Array which starts at 1.)
        Parameters:
        x - the position
        block - the block identifier. First block is 0. block is < getNumberOfProcessingBlocks().
        Returns:
        the function value at x

SCaVis 1.8 © jWork.org