Exemplo n.º 1
0
 private void _changeVMToSelection()
 {
     gpData.calculatePositions();
     selectionVM = new SelectionCrossoverViewModel(populationVM._gpContainer);
     selectionVM.beginSelection();
     currentViewModel = selectionVM;
     OnPropertyChanged("currentViewModel");
 }
Exemplo n.º 2
0
        private async void _startAutomaticProgress()
        {
            if (isAutomatic)
            {
                while (isAutomatic)
                {
                    isAutomaticInProgress = true;
                    fitnessVM             = new FitnessViewModel(populationVM._gpContainer);
                    await fitnessVM.beginFitnessEvaluation();

                    selectionVM = new SelectionCrossoverViewModel(populationVM._gpContainer);
                    selectionVM.beginSelection();
                    isAutomaticInProgress = false;
                    _changeVMToPopulationUpdate();
                    OnPropertyChanged("gpData");
                }
            }
        }