Changeset 12395 for branches/HiveStatistics/sources/HeuristicLab.Clients.Hive/3.3/HiveTasks/OptimizerHiveTask.cs
- Timestamp:
- 05/20/15 16:41:14 (10 years ago)
- Location:
- branches/HiveStatistics/sources
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HiveStatistics/sources
- Property svn:mergeinfo changed
-
branches/HiveStatistics/sources/HeuristicLab.Clients.Hive
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Clients.Hive merged: 11623,12012,12041
- Property svn:mergeinfo changed
-
branches/HiveStatistics/sources/HeuristicLab.Clients.Hive/3.3/HiveTasks/OptimizerHiveTask.cs
r11204 r12395 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 234 234 itemTaskLock.EnterWriteLock(); 235 235 try { 236 if (batchRun.Optimizer == null) { 237 batchRun.Optimizer = (IOptimizer)optimizerTask.Item; // only set the first optimizer as Optimizer. if every time the Optimizer would be set, the runs would be cleared each time 238 } 239 foreach (IRun run in optimizerTask.Item.Runs) { 240 if (!batchRun.Runs.Contains(run)) { 236 if (optimizerTask.Item is IAlgorithm) { 237 // only set the first optimizer as Optimizer. if every time the Optimizer would be set, the runs would be cleared each time 238 if (batchRun.Optimizer == null) { 239 batchRun.Optimizer = (IOptimizer)optimizerTask.Item.Clone(); 240 batchRun.Optimizer.Runs.Clear(); 241 } 242 243 foreach (IRun run in optimizerTask.Item.Runs) { 244 run.Name = GetNewRunName(run, batchRun.Runs); 245 batchRun.Optimizer.Runs.Add(run); 246 } 247 } else { 248 // only set the first optimizer as Optimizer. if every time the Optimizer would be set, the runs would be cleared each time 249 if (batchRun.Optimizer == null) { 250 batchRun.Optimizer = optimizerTask.Item; 251 } 252 foreach (IRun run in optimizerTask.Item.Runs) { 253 if (batchRun.Runs.Contains(run)) continue; 241 254 run.Name = GetNewRunName(run, batchRun.Runs); 242 255 batchRun.Runs.Add(run);
Note: See TracChangeset
for help on using the changeset viewer.