@Override
	public Codec<ISeq<WayPoint>, DoubleGene> codec() {
		return Codec.of(
			Genotype.of(
				DoubleChromosome.of(DoubleRange.of(0, 1), _points.length())
			),
			gt -> {
				// Use the sorted indexes as path permutations.
				final int[] path = ProxySorter.sort(
					gt.get(0)
						.as(DoubleChromosome.class)
						.toArray()
				);

				return IntStream.of(path)
					.mapToObj(_points)
					.collect(ISeq.toISeq());
			}
		);
	}
Create a new TSP instance with the way-points we want to visit.

@param points the way-points we want to visit
@throws NullPointerException if the given {@code points} seq is {@code null}
jenetics.example/src/main/java/io/jenetics/example/DoubleGeneTravelingSalesman.java