InitError
public enum InitError : Error
Errors throwed by GeneticConfiguration.init(depth:generationCount:populationSize:tournamentSize:mutationProbability:threshold:errorProbability:)
-
Throwed when
GeneticConfiguration.depthstarts with a negative numberDeclaration
Swift
case depthHasToBeAPositiveNumber -
Throwed when
GeneticConfiguration.depthis an emptyRangeDeclaration
Swift
case depthIsEmpty -
Throwed when
GeneticConfiguration.populationSizestarts on 0 which is not valid because that would be the size of the initial population and an empty initial population can not produce new circuitsDeclaration
Swift
case populationSizeHasToBeBiggerThanZero -
Throwed when
GeneticConfiguration.populationSizeis an emptyRangeDeclaration
Swift
case populationSizeIsEmpty -
Throwed when
GeneticConfiguration.tournamentSizeis 0 which is not valid because a reproduction operation requires at least 1 circuit in the tournamentDeclaration
Swift
case tournamentSizeHasToBeBiggerThanZero
InitError Enumeration Reference