public static class BasicCrossEntropyOpt.Solution extends Object implements Comparable<BasicCrossEntropyOpt.Solution>
BasicCrossEntropyOpt.| Constructor and Description |
|---|
BasicCrossEntropyOpt.Solution(double[] sol,
double value)
Creates solution item.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(BasicCrossEntropyOpt.Solution s)
Compares the value of this solution in ascending order with another solution.
|
double[] |
getSolution()
Returns the solution array.
|
double |
getValue()
Returns the value of this solution.
|
public BasicCrossEntropyOpt.Solution(double[] sol,
double value)
sol - the solution vectorvalue - the value of this solutionpublic double[] getSolution()
public double getValue()
public int compareTo(BasicCrossEntropyOpt.Solution s)
s,
returns -1 if this value is less than the value of solution s, and returns
0 otherwise.compareTo in interface Comparable<BasicCrossEntropyOpt.Solution>s - the solution to be compared with