edu.stanford.rsl.jpop
Class FunctionController
- java.lang.Object
-
- edu.stanford.rsl.jpop.FunctionController
-
- Direct Known Subclasses:
- ParallelFunctionController, SimpleFunctionController
public abstract class FunctionController extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor and Description FunctionController()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description abstract doubleevaluate(OptimizableFunction function, double[] x)Evaluates the given Function and returns the result.FunctionAssemblergetAssembler()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.voidsetAssembler(FunctionAssembler assembler)
-
-
-
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:
-
-
DMelt 3.0 © DataMelt by jWork.ORG