Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.IO;
- using System.Diagnostics;
- namespace ConsoleApp5
- {
- class Program
- {
- static void Main(string[] args)
- {
- // wpisywanie w konsoli ilość osoboników/parametr mutowania/ parament krzyżowania i ilość iteracji
- //Reading number of paths and it's lenghts from the File
- string filePath = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
- string fileExtension = "Odl.txt";
- string fullPath = Path.Combine(filePath, fileExtension);
- LoadFile x = new LoadFile(fullPath);
- //x.ReadFile();
- RandomPopulation firstPopulation = new RandomPopulation();
- //firstPopulation.ShowPopulation();
- //firstPopulation.RatePopulation();
- //firstPopulation.RateSinglePath();
- //firstPopulation.SelectionRoulette();
- //ArrVsListTest();
- firstPopulation.ShowRatedPopulation();
- //int[,] a = new int[1000, 1000];
- //int[,] b = new int[1000, 1000];
- //ForVsArrayCopy(a, b);
- //firstPopulation.SelectionTournament();
- //Console.WriteLine();
- //firstPopulation.ShowPopulation();
- //ArrVsListCreate();
- //firstPopulation.ShowPopulation();
- //firstPopulation.CrossoverSinglePoint();
- //firstPopulation.ShowPopulation();
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement