public static void main(string[] args)
        {
            Population population = new Population(num_individuals, num_variables);
            EvolutiveParallelAlgotithm algorithm = new EvolutiveParallelAlgotithm();

            algorithm.Run(population, num_epoch, args, num_epoch,
                          values => - (Math.Pow(values[0] - 2.5, 2) + Math.Pow(values[1] - 1, 2) + 8));
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            //using (new MPI.Environment(ref args))
            //{
            //    // MPI program goes here!
            //    //Console.WriteLine("Hello, World! from rank " + Communicator.world.Rank
            //    //  + " (running on " + MPI.Environment.ProcessorName + ")");
            //    Console.WriteLine(Communicator.world.Rank + "-" + Communicator.world.Size);

            //}

            EvolutiveParallelAlgotithm.main(args);
            //PingPong2.main(args);
        }