Changeset 15171 for branches/ParameterConfigurationEncoding/HeuristicLab.Encodings.ParameterConfigurationEncoding/3.3/ParameterConfigurationTree.cs
- Timestamp:
- 07/08/17 12:31:54 (7 years ago)
- Location:
- branches/ParameterConfigurationEncoding/HeuristicLab.Encodings.ParameterConfigurationEncoding/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ParameterConfigurationEncoding/HeuristicLab.Encodings.ParameterConfigurationEncoding/3.3
-
Property
svn:ignore
set to
Plugin.cs
-
Property
svn:ignore
set to
-
branches/ParameterConfigurationEncoding/HeuristicLab.Encodings.ParameterConfigurationEncoding/3.3/ParameterConfigurationTree.cs
r8574 r15171 25 25 using System.Linq; 26 26 using System.Text; 27 using System.Threading;28 27 using HeuristicLab.Common; 29 28 using HeuristicLab.Core; … … 31 30 using HeuristicLab.Optimization; 32 31 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 33 using HeuristicLab.Problems.Instances;34 32 35 33 namespace HeuristicLab.Encodings.ParameterConfigurationEncoding { … … 340 338 string algorithmInfo = this.AlgorithmConfiguration.ParameterInfoString; 341 339 string problemInfo = this.ProblemConfiguration.ParameterInfoString; 342 var sb = new StringBuilder(); 343 if (!string.IsNullOrEmpty(algorithmInfo)) { 344 sb.Append("Algorithm ("); 345 sb.Append(algorithmInfo); 346 sb.Append(")"); 347 } 348 if (!string.IsNullOrEmpty(problemInfo)) { 349 if (sb.Length > 0) 350 sb.Append(", "); 351 sb.Append("Problem( "); 352 sb.Append(problemInfo); 353 sb.Append(")"); 354 } 340 341 var sb = new StringBuilder(AlgorithmConfiguration.NumberedName); 342 if (!string.IsNullOrEmpty(algorithmInfo)) sb.AppendFormat(" ({0})", algorithmInfo); 343 if (!string.IsNullOrEmpty(problemInfo)) sb.AppendFormat(", {0} ({1})", ProblemConfiguration.NumberedName, problemInfo); 344 355 345 return sb.ToString(); 356 346 }
Note: See TracChangeset
for help on using the changeset viewer.