Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface GeneticAlgorithmConfiguration

Specifies the settings for the genetic algorithm.

note

Important: All percentages/probabilities must be in the range [0, 1].

Hierarchy

  • GeneticAlgorithmConfiguration

Index

Properties

fatherGenesProbability

fatherGenesProbability: { angle: number; power: number }

Specifies the probability that during reproduction the property from the father will be chosen.

Type declaration

  • angle: number
  • power: number

individualCount

individualCount: number

With how many individuals should the simulation be performed.

mutationProbability

mutationProbability: { angle: number; general: number; power: number }

Specifies all mutation probabilities used in the algorithm.

Type declaration

  • angle: number

    Specifies the probability that the angle property of the DNA mutates.

    note

    This means, if the children mutates, there is for example a 50% chance that the angle property will mutate. That means, in total the angle property has a mutation chance of general * angle = (for example) 0.18 * 0.5 = 0.09 = 9%.

  • general: number

    Specifies the probability that a child mutates.

  • power: number

    Specifies the probability that the power property of the DNA mutates.

    note

    This means, if the children mutates, there is for example a 50% chance that the power property will mutate. That means, in total the power property has a mutation chance of general * power = (for example) 0.18 * 0.5 = 0.09 = 9%.

mutationRange

mutationRange: { angle: BoundSpecification; power: BoundSpecification }

Specifies all mutation ranges. A range of lowerBound = -3, upperBound = 3 means that the new property is in the range [old property - 3, old property + 3]

Type declaration

Generated using TypeDoc