public TournamentSelection(int size, int?seed = null)
        {
            rng      = new UniformIntegerRandom(seed);
            shuffler = new Shuffler(seed);

            this.size = size;
        }
Beispiel #2
0
 public DSMCrossover(double probability, double threshold, double[,] dsmMatrix, int?seed = null)
     : base(probability, seed)
 {
     geneRNG   = new UniformIntegerRandom(seed);
     Threshold = threshold;
     DsmMatrix = dsmMatrix;
 }
Beispiel #3
0
        public APopulationCrossover(ACrossover crossover, double prob, int?seed = null)
        {
            CrossoverMethod = crossover;

            Probability = prob;

            crossoverRNG = new BoolRandom(seed);

            integerRNG = new UniformIntegerRandom(seed);
        }
Beispiel #4
0
        public NSGA2Selection(int size, Tuple <double, double> maxObjectiveValues, IDominationComparer dominationComparer, bool modifyPopulation = true, int?seed = null)
        {
            rng      = new UniformIntegerRandom(seed);
            shuffler = new Shuffler(seed);

            this.size = size;
            this.maxObjectiveValues = maxObjectiveValues;
            this.dominationComparer = dominationComparer;
            this.modifyPopulation   = modifyPopulation;

            rankingRef = null;
        }
Beispiel #5
0
 public OrderedCrossover(double probability, int?seed = null)
     : base(probability, seed)
 {
     pointRnd = new UniformIntegerRandom(seed);
 }