Changeset 17703


Ignore:
Timestamp:
07/28/20 21:10:02 (3 weeks ago)
Author:
dleko
Message:

#2825 Init random seed with a specific value.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2825-NSGA3/HeuristicLab.Algorithms.NSGA3/3.3/NSGA3.cs

    r17702 r17703  
    255255        }
    256256
     257        // todo: trigger this when the problem parameters change
    257258        private void SetParameters()
    258259        {
     
    263264            // Set mutation probability
    264265            MutationProbability.Value = 1.0 / Problem.Encoding.Length;
     266
     267            // todo: Set MaximumGenerations in Problem definition
    265268        }
    266269
     
    287290        {
    288291            random = new MersenneTwister();
     292            if (!SetSeedRandomly.Value)
     293                random.Reset(Seed.Value);
     294
    289295            solutions = GetInitialPopulation();
    290296            referencePoints = ReferencePoint.GenerateReferencePoints(random, NumberOfObjectives);
Note: See TracChangeset for help on using the changeset viewer.