Advertisement
Guest User

Main

a guest
Dec 13th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.59 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.IO;
  7. using System.Diagnostics;
  8.  
  9. namespace ConsoleApp5
  10. {
  11.  
  12.     class Program
  13.     {
  14.         static void Main(string[] args)
  15.         {
  16.             // wpisywanie w konsoli ilość osoboników/parametr mutowania/ parament krzyżowania i ilość iteracji  
  17.             //Reading number of paths and it's lenghts from the File
  18.             string filePath = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
  19.             string fileExtension = "Odl.txt";
  20.             string fullPath = Path.Combine(filePath, fileExtension);
  21.             LoadFile x = new LoadFile(fullPath);
  22.             //x.ReadFile();
  23.  
  24.             RandomPopulation firstPopulation = new RandomPopulation();
  25.             //firstPopulation.ShowPopulation();
  26.             //firstPopulation.RatePopulation();
  27.             //firstPopulation.RateSinglePath();
  28.             //firstPopulation.SelectionRoulette();
  29.             //ArrVsListTest();        
  30.             firstPopulation.ShowRatedPopulation();
  31.             //int[,] a = new int[1000, 1000];
  32.             //int[,] b = new int[1000, 1000];
  33.             //ForVsArrayCopy(a, b);
  34.             //firstPopulation.SelectionTournament();
  35.             //Console.WriteLine();
  36.             //firstPopulation.ShowPopulation();
  37.             //ArrVsListCreate();
  38.             //firstPopulation.ShowPopulation();
  39.             //firstPopulation.CrossoverSinglePoint();
  40.             //firstPopulation.ShowPopulation();
  41.             Console.ReadKey();
  42.         }
  43.     }
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement