import java.io.IOException;

/**
 * 
 * \brief Trida pro spousteni programu obsluhujici geneticky algoritmus
 * V teto tride probiha nastaveni pocatecnich parametru pro chod genetickeho algoritmu, ktery dokaze resit dva
 *  vybrane problemy, Hello World! a TSP.
 */


public class Main {
	
	/**
	 * Trida pro nastaveni pocatecnich hodnot a spousteni programu
	 * @param args
	 * @throws IOException
	 */

	public static void main(String[] args) throws IOException {
		
		//final String path = "C:\\Users\\nemec\\workspace\\CityGenerator\\data\\map_21_05_2016_08_48_31_800cities.txt";
		final String path2 = "C:\\Users\\nemec\\workspace\\GeneticAlgorithm\\data\\eil51.tsp";
		final String nameOfFile = "eil51";
		//final String target = "Hello, world!!";
		final int selectionType = 1;
		final int crossoverType = 1;
		final int mutationType = 3;
		final int numOfGenerations = 2000;
		final int numOfChromozomes = 500;
		final double mutationRate = 0.2;
		final int toutnamentSize = 250;
		
		//CityLoader cityLoader = new CityLoader(path);
		TspParser tspParser = new TspParser(path2);
		
		Populate.populateTSP(selectionType, crossoverType, mutationType, mutationRate, numOfGenerations, numOfChromozomes, null, tspParser, toutnamentSize, nameOfFile);
		//Populate.populateHW(1, 1, 1, mutationRate, numOfGenerations, numOfChromozomes, toutnamentSize, target);
	}

}
