Ejemplo n.º 1
0
        public ActionResult Index()
        {
            var enumService = new EnumService();

            var model = new TSPViewModel();

            model.CrossoverTypes = enumService.GetCrossoverTypes();
            model.TSPAlgorithms  = enumService.GetTSPAlgorithmTypes();
            model.SelectionTypes = enumService.GetSelectionTypes();

            model.Temperature = 1000;
            model.Number      = 20;
            model.CoolingRate = 0.003;

            model.MutatorValue    = 2;
            model.GenerationCount = 100;
            model.PopulationSize  = 300;

            return(View(model));
        }