@Override
	public int compareTo(final Phenotype<G, C> pt) {
		if (isEvaluated()) {
			return pt.isEvaluated() ? fitness().compareTo(pt.fitness()) : 1;
		} else {
			return pt.isEvaluated() ? -1 : 0;
		}
	}
Test whether this phenotype is valid. The phenotype is valid if its
{@link Genotype} is valid.

@return true if this phenotype is valid, false otherwise.
jenetics/src/main/java/io/jenetics/Phenotype.java