|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.stanford.rsl.jpop.testing.UncminTest_f77
public class UncminTest_f77
This class tests the JPOP class. It should produce exactly the same output as the previous implementation in Uncmin_f77;
| 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. |
double[] |
gradient(double[] x_in_java,
int block)
Computes the Gradient at position x. |
double[][] |
hessian(double[] x_in_java,
int block)
Computes the Hessian matrix at position x. |
static void |
main(java.lang.String[] args)
|
void |
setNumberOfProcessingBlocks(int number)
Sets the number of parallel processing blocks. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void main(java.lang.String[] args)
public double evaluate(double[] x,
int block)
OptimizableFunction
evaluate in interface OptimizableFunctionx - the positionblock - the block identifier. First block is 0. block is < getNumberOfProcessingBlocks().
public double[] gradient(double[] x_in_java,
int block)
GradientOptimizableFunction
gradient in interface GradientOptimizableFunctionx_in_java - the positionblock - the block identifier. First block is 0. block is < getNumberOfProcessingBlocks().
public double[][] hessian(double[] x_in_java,
int block)
HessianOptimizableFunction
hessian in interface HessianOptimizableFunctionblock - the block identifier. First block is 0. block is < getNumberOfProcessingBlocks().
public int getNumberOfProcessingBlocks()
OptimizableFunction
getNumberOfProcessingBlocks in interface OptimizableFunctionpublic void setNumberOfProcessingBlocks(int number)
OptimizableFunction
setNumberOfProcessingBlocks in interface OptimizableFunction
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||