abstract class ObjectiveFunction
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
double[] |
currentX |
double[] |
f0Gradient |
double[][] |
f0Hessian |
double |
f0Result |
double[][] |
fiGradients |
double[][][] |
fiHessians |
double[] |
fiResults |
int |
iterationCounter |
boolean |
quasiNewtonMethod |
boolean |
stopRequested |
Constructor and Description |
---|
ObjectiveFunction(int dimensionX,
int numOfConstraints)
Constructor of ObjectiveFunction.
|
Modifier and Type | Method and Description |
---|---|
void |
calcFuncInternal(double[] x)
Objective function called by a solver.
|
abstract boolean |
calcFunction(double[] x)
Objective function and constraint functions.
|
boolean |
checkFeasibility()
check feasibility of current point
|
protected void |
clearMatrix(double[][] matrix)
Clear Matrix
|
double[] |
getCurrentPoint()
get current point
|
public double f0Result
public double[] fiResults
public double[] f0Gradient
public double[][] fiGradients
public double[][] f0Hessian
public double[][][] fiHessians
public double[] currentX
public int iterationCounter
public boolean stopRequested
public boolean quasiNewtonMethod
public ObjectiveFunction(int dimensionX, int numOfConstraints)
public abstract boolean calcFunction(double[] x)
x
- : input variablespublic void calcFuncInternal(double[] x)
x
- : input variablespublic boolean checkFeasibility()
public double[] getCurrentPoint()
protected void clearMatrix(double[][] matrix)
matrix
- : matrix which is to be zero-matrix.