Exemplo n.º 1
0
 private void ReadConfiguration()
 {
     xmlConfiguration = new EvacuationSimulation.XmlConfigurationReader(xmlDocument, basePath);
 }
Exemplo n.º 2
0
 private void LoadGeneticsConfigurationData()
 {
     var reader = new EvacuationSimulation.XmlConfigurationReader(Path.Combine(folderPath, "Scenario.xml"), Path.Combine(folderPath, "Building.xml"));
     var cfg = reader.GetGeneticsConfiguration();
     Selection = cfg.Selector.ToString();
     Crossover = cfg.CrossoverOperator.ToString();
     Mutation = cfg.MutationOperator.ToString();
     Transform = cfg.Transformer != null ? cfg.Transformer.ToString() : "None";
     PopulationSize = cfg.InitialPopulationSize;
     MaxIterations = cfg.MaxIterations;
     ShortGenotype = cfg.ShortGenotype;
     MaxIterationsWithoutImprovement = cfg.MaxIterationsWithoutImprovement;
 }