Skip to content

Create 'Chromosome' with variable length #123

Closed
@jenetics

Description

It should be possible to create Chromosome implementations with variable size. This will effect the following chromosomes:

  • AnyChromosome
  • CharacterChromosome
  • DoubleChromosome
  • IntegerChromosome
  • LongChromosome

New factory method

public static IntegerChromosome of(
    final int min,
    final int max,
    final IntRange length
);

Chromosomes created with the newInstance method will create a new chromosome with a length between the given length range.

This extension will change the serialization format (JSON and Java).

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions