예제 #1
0
 internal Population(Configuration config, GeneticTask task) {
     Size = config.PopSize;
     _config = config;
     _task = task;
     _fitnessFunc = task.Fitness;
     _genomes = new Genome[Size];
     _next = new Genome[Size];
 }
예제 #2
0
        internal Report() {
            InitializeComponent();
            _config = new Configuration(true);

            _bestSeries = new Series("Best Fitness", _config.Generations) {
                ChartType = SeriesChartType.Line
            };

            progressBar.Maximum = _config.PopSize;
            progressBar.Step = 1;

            _task = new GeneticSine(_config);
            Run();
        }