org.jquantlib.math.optimization
Class Problem
- java.lang.Object
-
- org.jquantlib.math.optimization.Problem
-
public class Problem extends java.lang.ObjectConstrained optimization problem
-
-
Constructor Summary
Constructors Constructor and Description Problem(CostFunction costFunction, Constraint constraint)Problem(CostFunction costFunction, Constraint constraint, Array initialValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description Constraintconstraint()ConstraintCostFunctioncostFunction()Cost functionArraycurrentValue()current value of the local minimumintfunctionEvaluation()number of evaluation of cost functiondoublefunctionValue()value of cost functionvoidgradient(Array grad_f, Array x)Call cost function gradient computation and increment evaluation counterintgradientEvaluation()number of evaluation of cost function gradientdoublegradientNormValue()value of cost function gradient normvoidreset()voidsetCurrentValue(Array currentValue)voidsetFunctionValue(double functionValue)voidsetGradientNormValue(double squaredNorm)doublevalue(Array x)Call cost function computation and increment evaluation counterdoublevalueAndGradient(Array grad_f, Array x)Call cost function computation and it gradientArrayvalues(Array x)Call cost values computation and increment evaluation counter
-
-
-
Constructor Detail
-
Problem
public Problem(CostFunction costFunction, Constraint constraint)
-
Problem
public Problem(CostFunction costFunction, Constraint constraint, Array initialValue)
-
-
Method Detail
-
reset
public void reset()
-
value
public double value(Array x)
Call cost function computation and increment evaluation counter
-
gradient
public void gradient(Array grad_f, Array x)
Call cost function gradient computation and increment evaluation counter
-
valueAndGradient
public double valueAndGradient(Array grad_f, Array x)
Call cost function computation and it gradient
-
constraint
public Constraint constraint()
Constraint
-
costFunction
public CostFunction costFunction()
Cost function
-
setCurrentValue
public void setCurrentValue(Array currentValue)
-
currentValue
public final Array currentValue()
current value of the local minimum
-
setFunctionValue
public void setFunctionValue(double functionValue)
-
functionValue
public double functionValue()
value of cost function
-
setGradientNormValue
public void setGradientNormValue(double squaredNorm)
-
gradientNormValue
public double gradientNormValue()
value of cost function gradient norm
-
functionEvaluation
public int functionEvaluation()
number of evaluation of cost function
-
gradientEvaluation
public int gradientEvaluation()
number of evaluation of cost function gradient
-
-
DataMelt 3.0 © DataMelt by jWork.ORG