edu.stanford.rsl.jpop
Interface OptimizableFunction

All Known Subinterfaces:
GradientOptimizableFunction, HessianOptimizableFunction
All Known Implementing Classes:
UncminTest_f77

public interface OptimizableFunction


Method Summary
 double evaluate(double[] x, int block)
          Evaluates the function at position x.
(Note that x is a Fortran Array which starts at 1.)
 int getNumberOfProcessingBlocks()
          returns the number of parallel processing blocks.
 void setNumberOfProcessingBlocks(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