T
- type of the value (dependent on the problem)public interface Solution<T extends java.io.Serializable>
extends java.io.Serializable
Solution is a specific value from the search domain and its fitness
Modifier and Type | Method and Description |
---|---|
Solution<T> |
cloneWithNewValue(T value) |
double |
evaluationValue()
Returns the fitness of this solution.
|
T |
unwrap()
Returns the real value of this solution.
|
Solution<T> |
withEvaluation(double evaluation)
Updates the evaluation of this solution.
|
double evaluationValue()
Returns the fitness of this solution. If the fitness was not computed, the returned value will be Double#NaN
.
Solution<T> withEvaluation(double evaluation)
Updates the evaluation of this solution.
This function returns a new instance.
evaluation
- new evaluation valueT unwrap()
Returns the real value of this solution.