static void Main(string[] args) { //List<int> tegenVoorbeeld = new List<int>(); Random rng = new Random(); Dictionary <int, int> mapping = createdMapping(100, rng); //List<BitArray> offSpring = createOffspring(pop,Fun1); //pop.ForEach(x => print(x)); //Console.WriteLine("scrabmebemllb"); //pop = scramble(pop, rng); //pop.ForEach(x => print(x)); Function f1 = new Function1(); Function f2 = new Function2(); Function f3 = new Function3(); Function f4 = new Function4(); Function f5 = new Function5(mapping); Function f6 = new Function6(mapping); CrossOver UX = new UniPoint(); CrossOver TX = new TwoPoint(); foreach (Function f in new List <Function> { f1, f2, f3, f4, f5, f6 }) { Table niels = new Table(f); niels.ExportCSV(); } }
public Table(Function f) { this.F = f; CrossOver TX = new TwoPoint(); CrossOver UX = new UniPoint(); foreach (CrossOver cs in new CrossOver[] { TX, UX }) { foreach (int popSize in new int[] { 50, 100, 250, 500 }) { Console.WriteLine(f + cs.ToString() + " " + popSize); Row row = new Row(f, cs, popSize); row.run(); rows.Add(row); } } }