Example #1
0
        private void Test2_Click(object sender, RoutedEventArgs e)
        {
            BinaryChromosome.MutationOperator = new PathDirectionMutation(_viewModel.CurrentBuilding, 1);
            BinaryChromosome.Transformer = new ThreeSegmentLoopOptimizer(_viewModel.CurrentBuilding);

            BinaryChromosome c = new BinaryChromosome(_viewModel.CurrentBuilding.GetFenotype().ToGenotype());
            c.Transform();
            _viewModel.CurrentBuilding.SetFenotype(c.Genotype.ToFenotype());
            _viewModel.CurrentBuilding.DrawSolution();
        }