edu.stanford.rsl.jpop
Interface OptimizableFunction
-
- All Known Subinterfaces:
- GradientOptimizableFunction, HessianOptimizableFunction
- All Known Implementing Classes:
- UncminTest_f77
public interface OptimizableFunction
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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 positionblock- the block identifier. First block is 0. block is < getNumberOfProcessingBlocks().- Returns:
- the function value at x
-
-
DMelt 3.0 © DataMelt by jWork.ORG