- Timestamp:
- 02/23/17 14:30:23 (8 years ago)
- Location:
- branches/PerformanceComparison/ProblemInstanceIdentifier
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PerformanceComparison/ProblemInstanceIdentifier/InstanceExplorer.cs
r14691 r14696 96 96 if (memPr.Context.RelinkedPaths.IsEmpty 97 97 || IncludeLocalSearch && memPr.Context.LocalSearchPaths.IsEmpty) { 98 Console.Write ("{0} not all paths present!", problem.Name);98 Console.WriteLine("{0} not all paths present!", problem.Name); 99 99 return null; 100 100 }; -
branches/PerformanceComparison/ProblemInstanceIdentifier/Program.cs
r14691 r14696 116 116 if (bestMatch.Cls == e.Cls) clsCount++; 117 117 if (bestMatch.Name == e.Name) exactCount++; 118 var r = ordered.FindIndex((id) => id.Name == e.Name); 119 if (r < 0) continue; 118 120 totalCount++; 121 exactRank += r + 1; 119 122 clsRank += ordered.FindIndex((id) => id.Cls == e.Cls) + 1; 120 exactRank += ordered.FindIndex((id) => id.Name == e.Name) + 1;121 123 } 122 124 … … 177 179 var experimentBase = new Dictionary<InstanceExplorer, List<InstanceDescriptor>>(); 178 180 Action<InstanceExplorer> testBody = (expExplorer) => { 179 var t rainingData = GenerateData(instances, expExplorer, parallel);180 lock (sync) { 181 experimentBase.Add(expExplorer, t rainingData);181 var testData = GenerateData(instances, expExplorer, parallel); 182 lock (sync) { 183 experimentBase.Add(expExplorer, testData); 182 184 } 183 185 };
Note: See TracChangeset
for help on using the changeset viewer.