R
- the representation typepublic abstract class AbstractOnemaxProblem<R extends Representation<?>> extends Problem<R>
Constructor and Description |
---|
AbstractOnemaxProblem(int size)
Constructor
|
Modifier and Type | Method and Description |
---|---|
int |
compare(double d1,
double d2)
Comparator which defines if it's a minimization or maximization problem.
|
java.lang.String |
toString()
Returns the String representation of the Problem
|
crossover, generateSolution, getEvaluations, getFitness, getSize, isBetter, methilate, save
public AbstractOnemaxProblem(int size)
size
- the problem sizepublic java.lang.String toString()
Problem
toString
in class Problem<R extends Representation<?>>
public int compare(double d1, double d2)
Problem
compare
in class Problem<R extends Representation<?>>
d1
- the first fitness valued2
- the second fitness value