public static class MEMTools.DualFunction extends DifferentiableFunction
| Constructor and Description |
|---|
MEMTools.DualFunction(SequenceIterator it,
MEMConstraint[] constraints)
The constructor of a dual function.
|
| Modifier and Type | Method and Description |
|---|---|
double |
evaluateFunction(double[] x)
Evaluates the function at a certain vector (in mathematical sense)
x. |
double[] |
evaluateGradientOfFunction(double[] x)
Evaluates the gradient of a function at a certain vector (in mathematical
sense)
x, i.e.,
. |
int |
getDimensionOfScope()
Returns the dimension of the scope of the
Function. |
void |
setValues(double[] x)
This method set the values of the Lagrange multiplicators of the constraints
|
findOneDimensionalMinpublic MEMTools.DualFunction(SequenceIterator it, MEMConstraint[] constraints)
it - the correct initialized SequenceIteratorconstraints - the constraints used in this MEMTools.DualFunctionIllegalArgumentException - if the constraints are not correctpublic double evaluateFunction(double[] x)
throws DimensionException
Functionx.x - the current vectorDimensionException - if dim(x) != n, with 
public double[] evaluateGradientOfFunction(double[] x)
throws DimensionException
DifferentiableFunctionx, i.e.,
.evaluateGradientOfFunction in class DifferentiableFunctionx - the current vectorFunction.getDimensionOfScope()DimensionException - if dim(x) != n, with 
Function.getDimensionOfScope()public int getDimensionOfScope()
FunctionFunction.n with

public void setValues(double[] x)
x - the new values