Esempio n. 1
0
        public override IChromosome CreateNew()
        {
            var res =
                new ConcreteCompositeChromosome(ShortsCount, maxShortVals,
                                                DoublesCount, maxDoubleVals, (maxDoubleVals == null) ? (0) : (this.doubles.PossibleValueCount),
                                                valueMutationProb,
                                                null);

            res.RandomizeCompositeVals();
            return(res);
        }
Esempio n. 2
0
 public ConcreteCompositeChromosome(ConcreteCompositeChromosome src) : base(src)
 {
 }