edu.stanford.rsl.jpop
Class FunctionController

java.lang.Object
  extended by edu.stanford.rsl.jpop.FunctionController
Direct Known Subclasses:
ParallelFunctionController, SimpleFunctionController

public abstract class FunctionController
extends java.lang.Object


Constructor Summary
FunctionController()
           
 
Method Summary
abstract  double evaluate(OptimizableFunction function, double[] x)
          Evaluates the given Function and returns the result.
 FunctionAssembler getAssembler()
           
abstract  double[] gradient(GradientOptimizableFunction function, double[] x)
          Evaluates the given Function's Gradient and returns the result.
abstract  double[][] hessian(HessianOptimizableFunction function, double[] x)
          Evaluates the given Function's Hessian and returns the result.
 void setAssembler(FunctionAssembler assembler)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FunctionController

public FunctionController()
Method Detail

getAssembler

public FunctionAssembler getAssembler()
Returns:
the assembler

setAssembler

public void setAssembler(FunctionAssembler assembler)
Parameters:
assembler - the assembler to set

evaluate

public abstract double evaluate(OptimizableFunction function,
                                double[] x)
Evaluates the given Function and returns the result.

Parameters:
function -
Returns:

gradient

public abstract double[] gradient(GradientOptimizableFunction function,
                                  double[] x)
Evaluates the given Function's Gradient and returns the result.

Parameters:
function -
Returns:

hessian

public abstract double[][] hessian(HessianOptimizableFunction function,
                                   double[] x)
Evaluates the given Function's Hessian and returns the result.

Parameters:
function -
Returns: