Changeset 5927 for branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/Evaluators/AlgorithmSubScopesCreator.cs
- Timestamp:
- 04/01/11 17:15:41 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/Evaluators/AlgorithmSubScopesCreator.cs
r5665 r5927 59 59 for (int j = 0; j < problems.Count; j++) { 60 60 IScope child = new Scope(string.Format("Problem {0}, Repetition {1}", j, i)); 61 var algorithm = (IAlgorithm)Activator.CreateInstance(algorithmType); 62 algorithm.Problem = (IProblem)problems[j].Clone(); 63 ((EngineAlgorithm)algorithm).Engine = new SequentialEngine.SequentialEngine(); 64 65 //((GeneticAlgorithm)algorithm).PopulationSize.Value = 10; 66 //((GeneticAlgorithm)algorithm).MaximumGenerations.Value = 10; 67 68 parameterConfiguration.Parameterize(algorithm); 61 var algorithm = MetaOptimizationUtil.CreateParameterizedAlgorithmInstance(parameterConfiguration, algorithmType, (IProblem)problems[j].Clone()); 69 62 child.Variables.Add(new Variable("Algorithm", algorithm)); 70 63 child.Variables.Add(new Variable("ProblemIndex", new IntValue(j)));
Note: See TracChangeset
for help on using the changeset viewer.