Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/17/16 18:50:15 (9 years ago)
Author:
aballeit
Message:

#2283 quality diagram fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Problems.GrammaticalOptimization/Evaluation/MainWindow.xaml.cs

    r13518 r13533  
    7070            }
    7171
     72            // insert point between two solutions, with the result that there is no direct line from solutionpoint to solutionpoint
     73
     74            for (int i = 1; i < solutions.Count; i++)
     75            {
     76                FoundSolution previousSolution = solutions[i - 1];
     77                FoundSolution currentSolution = solutions[i];
     78                // insert point
     79                solutions.Insert(i, new FoundSolution(currentSolution.Time, currentSolution.Iteration, previousSolution.Quality, "placeholder"));
     80                i++;
     81            }
     82
    7283            var ds = new EnumerableDataSource<FoundSolution>(solutions);
    7384
     
    90101            {
    91102                solutions.Add(new FoundSolution(run.EndTime, run.Evaluations, run.BestQuality, run.BestSolution));
     103            }
     104            // insert point between two solutions, with the result that there is no direct line from solutionpoint to solutionpoint
     105
     106            for (int i = 1; i < solutions.Count; i++)
     107            {
     108                FoundSolution previousSolution = solutions[i - 1];
     109                FoundSolution currentSolution = solutions[i];
     110                // insert point
     111                solutions.Insert(i, new FoundSolution(currentSolution.Time, currentSolution.Iteration, previousSolution.Quality, "placeholder"));
     112                i++;
    92113            }
    93114
     
    143164                    run.TreeInfos = mctsSolver.GetTreeInfos();
    144165
    145                     byte[] output = mctsSolver.GenerateSvg();
    146                     if (output != null && output.Length > 0)
    147                     {
    148                         run.SvgFile = string.Format("MCTS_SVG_#{0}_{1}.svg", run.RunNumber, DateTime.Now.Ticks);
    149                         File.WriteAllBytes(run.SvgFile, mctsSolver.GenerateSvg());
    150                     }
     166                    // svg-tree ->
     167                    //byte[] output = mctsSolver.GenerateSvg();
     168                    //if (output != null && output.Length > 0)
     169                    //{
     170                    //    run.SvgFile = string.Format("MCTS_SVG_#{0}_{1}.svg", run.RunNumber, DateTime.Now.Ticks);
     171                    //    File.WriteAllBytes(run.SvgFile, output);
     172                    //}
    151173                    mctsSolver.FreeAll();
    152174                }
     
    458480            {
    459481                TextBoxEpsylon.Visibility = Visibility.Visible;
    460                 vm.PolicyParameter = 0.5;               
     482                vm.PolicyParameter = 0.5;
    461483                TextBlockEpsylon.Text = "Epsilon";
    462484                TextBlockEpsylon.Visibility = Visibility.Visible;
    463485            }
    464             else if (vm.SelectedPolicy == typeof (UCTPolicy))
     486            else if (vm.SelectedPolicy == typeof(UCTPolicy))
    465487            {
    466488                TextBoxEpsylon.Visibility = Visibility.Visible;
Note: See TracChangeset for help on using the changeset viewer.