Changeset 12221 for stable/HeuristicLab.Clients.Hive/3.3/HiveTasks
- Timestamp:
- 03/18/15 14:57:48 (10 years ago)
- Location:
- stable
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 12041
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Clients.Hive/3.3/HiveTasks/OptimizerHiveTask.cs
r12009 r12221 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.