- Timestamp:
- 07/17/11 22:51:11 (13 years ago)
- Location:
- branches/QAPAlgorithms
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/QAPAlgorithms
- Property svn:ignore
-
old new 12 12 *.psess 13 13 *.vsp 14 *.docstates
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/QAPAlgorithms/HeuristicLab.Problems.ExternalEvaluation.GP/3.3/HeuristicLabProblemsExternalEvaluationGPPlugin.cs.frame
r6099 r6569 23 23 24 24 namespace HeuristicLab.Problems.ExternalEvaluation.GP { 25 [Plugin("HeuristicLab.Problems.ExternalEvaluation.GP", "3.3. 4.$WCREV$")]25 [Plugin("HeuristicLab.Problems.ExternalEvaluation.GP", "3.3.5.$WCREV$")] 26 26 [PluginFile("HeuristicLab.Problems.ExternalEvaluation.GP-3.3.dll", PluginFileType.Assembly)] 27 27 [PluginDependency("HeuristicLab.Common", "3.3")] -
branches/QAPAlgorithms/HeuristicLab.Problems.ExternalEvaluation.GP/3.3/Properties/AssemblyInfo.frame
r6099 r6569 34 34 // [assembly: AssemblyVersion("1.0.*")] 35 35 [assembly: AssemblyVersion("3.3.0.0")] 36 [assembly: AssemblyFileVersion("3.3. 4.$WCREV$")]36 [assembly: AssemblyFileVersion("3.3.5.$WCREV$")] -
branches/QAPAlgorithms/HeuristicLab.Problems.ExternalEvaluation.GP/3.4/ExternalEvaluationSymbolicExpressionTreeStringFormatter.cs
r5809 r6569 28 28 using HeuristicLab.Problems.DataAnalysis.Symbolic; 29 29 using System; 30 using System.Globalization; 30 31 31 32 namespace HeuristicLab.Problems.ExternalEvaluation.GP { … … 57 58 StringBuilder strBuilder = new StringBuilder(); 58 59 if (Indent) strBuilder.Append(' ', indentLength); 59 strBuilder.Append("("); 60 // internal nodes or leaf nodes? 61 if (node.Subtrees.Count() > 0) { 62 // symbol on same line as '(' 60 if (node.Subtrees.Count() > 0) { // internal node 61 strBuilder.Append("("); 63 62 if (node.Symbol is Addition) { 64 63 strBuilder.AppendLine("+"); … … 98 97 // each subtree expression on a new line 99 98 // and closing ')' also on new line 100 101 99 foreach (var subtree in node.Subtrees) { 102 100 strBuilder.AppendLine(FormatRecursively(subtree, indentLength + 2)); … … 107 105 if (node is VariableTreeNode) { 108 106 var varNode = node as VariableTreeNode; 109 // symbol in the same line with as '(' and ')' 110 strBuilder.Append(";" + varNode.VariableName + ";" + varNode.Weight.ToString("E4")); 111 strBuilder.Append(")"); 107 strBuilder.AppendFormat("(* {0} {1})", varNode.VariableName, varNode.Weight.ToString("g17", CultureInfo.InvariantCulture)); 112 108 } else if (node is ConstantTreeNode) { 113 109 var constNode = node as ConstantTreeNode; 114 // symbol in the same line with as '(' and ')' 115 strBuilder.Append(";" + constNode.Value.ToString("E4")); 116 strBuilder.Append(")"); 110 strBuilder.Append(constNode.Value.ToString("g17", CultureInfo.InvariantCulture)); 117 111 } else { 118 112 throw new NotSupportedException("Formatting of symbol: " + node.Symbol + " not supported for external evaluation."); -
branches/QAPAlgorithms/HeuristicLab.Problems.ExternalEvaluation.GP/3.4/HeuristicLabProblemsExternalEvaluationGPPlugin.cs.frame
r5869 r6569 23 23 24 24 namespace HeuristicLab.Problems.ExternalEvaluation.GP { 25 [Plugin("HeuristicLab.Problems.ExternalEvaluation.GP", "Provides a symbolic expression tree grammar and formatters for external evaluation problems.", "3.4. 0.$WCREV$")]25 [Plugin("HeuristicLab.Problems.ExternalEvaluation.GP", "Provides a symbolic expression tree grammar and formatters for external evaluation problems.", "3.4.1.$WCREV$")] 26 26 [PluginFile("HeuristicLab.Problems.ExternalEvaluation.GP-3.4.dll", PluginFileType.Assembly)] 27 27 [PluginDependency("HeuristicLab.Common", "3.3")] -
branches/QAPAlgorithms/HeuristicLab.Problems.ExternalEvaluation.GP/3.4/Properties/AssemblyInfo.frame
r5869 r6569 34 34 // [assembly: AssemblyVersion("1.0.*")] 35 35 [assembly: AssemblyVersion("3.4.0.0")] 36 [assembly: AssemblyFileVersion("3.4. 0.$WCREV$")]36 [assembly: AssemblyFileVersion("3.4.1.$WCREV$")]
Note: See TracChangeset
for help on using the changeset viewer.