- Timestamp:
- 08/02/15 13:13:25 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Problems.GrammaticalOptimization/Evaluation/MainWindow.xaml.cs
r12824 r12827 396 396 { 397 397 StringBuilder tableExport = new StringBuilder(); 398 tableExport.Append Line(398 tableExport.Append( 399 399 "Run\tMaxIterations\tEvaluations\tBestKnownQuality\tQuality\tQuality %\tFoundAt\tTotalTime\tSolutionTime\tEvaluationsPerSecond\tSolution"); 400 if (ListViewRuns.Items.Count > 0 && ((Run) ListViewRuns.Items[0]).TreeInfos != null) 401 { 402 tableExport.Append("\tTotalNodes\tUnexpandedNodes\tExpandedNodes\tLeaveNodes\tDeepestLevel"); 403 } 404 tableExport.AppendLine(); 400 405 for (int i = 0; i < ListViewRuns.Items.Count; i++) 401 406 { 402 407 Run run = (Run)ListViewRuns.Items[i]; 403 tableExport.Append Line(string.Format("{0}\t{1}\t{2}\t{3}\t{4}\t{5}\t{6}\t{7}\t{8}\t{9}\t{10}", run.RunNumber,408 tableExport.Append(string.Format("{0}\t{1}\t{2}\t{3}\t{4}\t{5}\t{6}\t{7}\t{8}\t{9}\t{10}", run.RunNumber, 404 409 run.MaxIterations, run.Evaluations, run.BestKnownQuality, run.BestQuality, 405 410 run.BestQuality / run.BestKnownQuality, run.BestSolutionFoundAt, run.TotalTime, run.BestSolutionTime, 406 411 run.EvaluationsPerSecond, run.BestSolution)); 412 413 if (run.TreeInfos != null) 414 { 415 tableExport.Append(string.Format("\t{0}\t{1}\t{2}\t{3}\t{4}", run.TreeInfos.TotalNodes, 416 run.TreeInfos.UnexpandedNodes, run.TreeInfos.ExpandedNodes, run.TreeInfos.LeaveNodes, 417 run.TreeInfos.DeepestLevel)); 418 } 419 420 tableExport.AppendLine(); 407 421 } 408 422 Clipboard.SetData(DataFormats.Text, tableExport.ToString());
Note: See TracChangeset
for help on using the changeset viewer.