edu.stanford.rsl.jpop
Class SimpleFunctionController

java.lang.Object
  extended by edu.stanford.rsl.jpop.FunctionController
      extended by edu.stanford.rsl.jpop.SimpleFunctionController

public class SimpleFunctionController
extends FunctionController

Implements a single threaded FunctionController. Class is mainly implemented for testing and debugging.

Author:
akmaier

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

Constructor Detail

SimpleFunctionController

public SimpleFunctionController()
Method Detail

evaluate

public double evaluate(OptimizableFunction function,
                       double[] x)
Description copied from class: FunctionController
Evaluates the given Function and returns the result.

Specified by:
evaluate in class FunctionController
Returns:

gradient

public double[] gradient(GradientOptimizableFunction function,
                         double[] x)
Description copied from class: FunctionController
Evaluates the given Function's Gradient and returns the result.

Specified by:
gradient in class FunctionController
Returns:

hessian

public double[][] hessian(HessianOptimizableFunction function,
                          double[] x)
Description copied from class: FunctionController
Evaluates the given Function's Hessian and returns the result.

Specified by:
hessian in class FunctionController
Returns: