Package samer.maths.opt
Interface Functionx
-
- All Known Implementing Classes:
- SubspaceFunctionx
public interface Functionx
This is a function interface that is designed to allow efficient implementations of minimisation algorithms by recognising the fact that the function and its gradient may be repeatedly evaluated at the same point in different parts of the code - hence we can save ourselves some computation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description void
dispose()
double
evaluate(double[] x, double[] grad)
set argument to x, return value and put gradient in dxvoid
evaluate(Datum P)
get value and gradient for supplied point
-
-
-
Method Detail
-
evaluate
void evaluate(Datum P)
get value and gradient for supplied point
-
evaluate
double evaluate(double[] x, double[] grad)
set argument to x, return value and put gradient in dx
-
dispose
void dispose()
-
-