- Timestamp:
- 06/27/11 17:43:48 (13 years ago)
- Location:
- branches/HeuristicLab.MetaOptimization
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization.Views/3.3/MetaOptimizationProblemView.cs
r6017 r6486 70 70 71 71 if (dlgResult == DialogResult.OK) { 72 var algorithm = ( EngineAlgorithm)Content.Algorithm.Clone();72 var algorithm = (IAlgorithm)Content.Algorithm.Clone(); 73 73 if(Content.Problems.Count > 0) algorithm.Problem = Content.Problems.First(); 74 algorithm.Engine = (IEngine)dlg.Engine.Clone();74 if(algorithm is EngineAlgorithm) ((EngineAlgorithm)algorithm).Engine = (IEngine)dlg.Engine.Clone(); 75 75 Experiment experiment; 76 76 -
branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/Encoding/ParameterConfigurations/ParameterConfiguration.cs
r6445 r6486 485 485 486 486 public void Parameterize(IValueParameter parameter) { 487 if (parameter is IFixedValueParameter)488 return;489 490 487 if (Optimize) { 491 488 if (this.ActualValue.Value is IParameterizedItem) { -
branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/MetaOptimizationUtil.cs
r6090 r6486 84 84 var algorithm = (IAlgorithm)Activator.CreateInstance(algorithmType); 85 85 algorithm.Problem = problem; 86 ((EngineAlgorithm)algorithm).Engine = new SequentialEngine.SequentialEngine(); 86 if (algorithm is EngineAlgorithm) { 87 ((EngineAlgorithm)algorithm).Engine = new SequentialEngine.SequentialEngine(); 88 } 87 89 if (randomize) parameterConfigurationTree.Randomize(random); 88 90 parameterConfigurationTree.Parameterize(algorithm);
Note: See TracChangeset
for help on using the changeset viewer.