Beispiel #1
0
 public Form1()
 {
     InitializeComponent();
     this.MyOptimizer = new GeneticLogic <CSingleAssignment>();
     this.InitIPs();
     CStrategyPool.CreateRandomStrategy();
     // this.MyOptimizer.Restrategize(() => new CTaamAssignment());
     this.initConfigDelegation();
 }
Beispiel #2
0
        private void OptimizationTab_SelectedIndexChanged(object sender, EventArgs e)
        {
            TabControl Tab = (TabControl)sender;

            this.btnStart.Text = "Start!";
            this.btnLaunchOptimizer.Enabled = false;
            this.btnRestrategize.Enabled    = false;

            if (Tab.SelectedTab.Name == "Annealing")
            {
                this.MyOptimizer = new AnnealerLogic <CSingleAssignment>();
                GlobalConfiguration.SwitchMutation = true;
            }
            else// if(Tab.SelectedTab.Name == "Genetic")
            {
                this.MyOptimizer = new GeneticLogic <CSingleAssignment>();
                GlobalConfiguration.SwitchMutation = false;
            }

            this.InitIPs();
        }