Example #1
0
        void GAWorker_DoWork(object sender, DoWorkEventArgs e)
        {
            Algo = new ConicalGA(50, 56 + (int)Math.Pow(GridSize, 2) * 7, GAType.BINARY, true, ConicalGA.GA_Type._3D);
            Algo.SetEval(Eval);
            Algo.NewBest += new GA_EventHandler(Algo_NewBest);
            string text = "";

            this.Invoke(new MethodInvoker(delegate() { text = comboBox1.Text; }));

            Algo.Begin("3doutput.csv", 0.1, text);
        }
Example #2
0
        void p1BRW_DoWork(object sender, DoWorkEventArgs e)
        {
            Algo = new ConicalGA(50, 91, GAType.BINARY, false, ConicalGA.GA_Type._2D);
               Algo.SetEval(Eval);
               Algo.NewBest += new GA_EventHandler(Algo_NewBest);
               string text = "";

               this.Invoke(new MethodInvoker(delegate() { text = comboBox1.Text; }));
               Algo.Begin("2doutput.csv", 0.000995, text);
        }