Changeset 6197 for branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/Encoding/ParameterConfigurationTree.cs
- Timestamp:
- 05/14/11 18:49:46 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/Encoding/ParameterConfigurationTree.cs
r6018 r6197 184 184 this.parameters.Add(p.Key, cloner.Clone(p.Value)); 185 185 } 186 //this.name = original.name;187 186 } 188 187 public override IDeepCloneable Clone(Cloner cloner) { … … 291 290 } 292 291 293 public IRun ToRun( ) {294 return ToRun(this.ParameterInfoString );295 } 296 297 public IRun ToRun(string name ) {292 public IRun ToRun(bool clearParameters) { 293 return ToRun(this.ParameterInfoString, clearParameters); 294 } 295 296 public IRun ToRun(string name, bool clearParameters) { 298 297 IRun run = new Run(); 299 298 run.Name = name; 300 299 this.CollectResultValues(run.Results); 301 300 this.CollectParameterValues(run.Parameters); 302 MetaOptimizationUtil.ClearParameters(run, this.GetOptimizedParameterNames());301 if(clearParameters) MetaOptimizationUtil.ClearParameters(run, this.GetOptimizedParameterNames()); 303 302 return run; 304 303 }
Note: See TracChangeset
for help on using the changeset viewer.