| Modifier and Type | Field and Description |
|---|---|
protected Object |
constraint |
protected int |
dimensionCount |
protected double[] |
lowerBounds |
protected int |
mEvaluationCount |
protected double[] |
upperBounds |
| Constructor and Description |
|---|
CostFunction() |
CostFunction(int dimension_count,
double lower_bound,
double upper_bound) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
_calcGradient(double[] solution,
double[] grad) |
protected double |
_evaluate(double[] solution) |
double |
calcGradient(double x) |
void |
calcGradient(double[] solution,
double[] grad) |
void |
copy(CostFunction rhs) |
double[] |
createRandomSolution() |
double |
evaluate(double x) |
double |
evaluate(double[] solution) |
Object |
getConstraint() |
int |
getDimensionCount() |
int |
getEvaluationcount() |
double |
getLowerBoundAtIndex(int dimension) |
double |
getUpperBoundAtIndex(int dimension) |
protected void |
initialize(int dimension_count) |
boolean |
isOutOfBounds(double[] solution) |
void |
setConstraint(Object constraint) |
void |
setLowerBoundAtIndex(int dimension,
double lower_bound) |
void |
setUpperBoundAtIndex(int dimension,
double upper_bound) |
protected int dimensionCount
protected double[] lowerBounds
protected double[] upperBounds
protected Object constraint
protected int mEvaluationCount
public CostFunction(int dimension_count,
double lower_bound,
double upper_bound)
public CostFunction()
public void copy(CostFunction rhs)
public Object getConstraint()
public void setConstraint(Object constraint)
public int getDimensionCount()
public double getLowerBoundAtIndex(int dimension)
public void setLowerBoundAtIndex(int dimension,
double lower_bound)
public double getUpperBoundAtIndex(int dimension)
public void setUpperBoundAtIndex(int dimension,
double upper_bound)
public int getEvaluationcount()
protected double _evaluate(double[] solution)
public double evaluate(double[] solution)
public double evaluate(double x)
protected void _calcGradient(double[] solution,
double[] grad)
public void calcGradient(double[] solution,
double[] grad)
public double calcGradient(double x)
public boolean isOutOfBounds(double[] solution)
protected void initialize(int dimension_count)
public double[] createRandomSolution()
Copyright © 2017. All rights reserved.