public static class MEMTools.DualFunction extends DifferentiableFunction
Constructor and Description |
---|
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
|
findOneDimensionalMin
public DualFunction(SequenceIterator it, MEMConstraint[] constraints)
it
- the correct initialized SequenceIteratorconstraints
- the constraints used in this MEMTools.DualFunction
IllegalArgumentException
- if the constraints are not correctpublic double evaluateFunction(double[] x) throws DimensionException
Function
x
.x
- the current vectorDimensionException
- if dim(x) != n
, with public double[] evaluateGradientOfFunction(double[] x) throws DimensionException
DifferentiableFunction
x
, i.e.,
evaluateGradientOfFunction
in class DifferentiableFunction
x
- the current vectorFunction.getDimensionOfScope()
DimensionException
- if dim(x) != n
, with Function.getDimensionOfScope()
public int getDimensionOfScope()
Function
Function
.n
with
public void setValues(double[] x)
x
- the new values