Chromosome definition

Name: By default, each chromosome is given a title of ChromosomeN, where N is a number from 1 to the total number of chromosomes relating to the selected attribute that is being optimized.

Chromosome type: Any one Chromosome can be either Sequence, Pick List type or Variables type.

A Sequence chromosome requires the Number of Genes to be set to a value less than or equal to the tied numeric array (see Sequence Gene definition below). This value can also be adjusted by setting the exposed property. For example:

@Assign costOpt.chromosomes[1].nGenes = 5

A Pick List chromosome requires the Number of Genes to be set as in a Sequence chromosome and also requires a Number of Items. This value does not need to be the same as the number of genes. For example, if the number of items was set to 20 and the number of genes to 10 then each of the 10 genes could hold values within the range 1 to 20. This value can also be adjusted by setting the exposed property. For example:

@Assign costOpt.chromosomes[3].max = 20

A Variables chromosome can have a numeric Sum constraint imposed. For example, selecting the Sum constraint check box and entering a value of 100, would ensure that the sum value of all the genes in the chromosome would equal 100. The Sum constraint can also be adjusted by setting exposed properties. For example:

@Assign costOpt.chromosomes[1].hasSum = true
@Assign costOpt.chromosomes[1].sum = 50