Free cookie consent management tool by TermsFeed Policy Generator

Changeset 8410 for branches


Ignore:
Timestamp:
08/04/12 23:54:39 (12 years ago)
Author:
ascheibe
Message:

#1886 added an operator to clone variables

Location:
branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers/3.3
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers/3.3/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers-3.3.csproj

    r8382 r8410  
    102102    <Compile Include="Plugin.cs" />
    103103    <Compile Include="Properties\AssemblyInfo.cs" />
     104    <Compile Include="VariableDuplicator.cs" />
    104105  </ItemGroup>
    105106  <ItemGroup>
  • branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers/3.3/MutationPerformanceAnalyzer.cs

    r8352 r8410  
    2626using HeuristicLab.Core;
    2727using HeuristicLab.Data;
     28using HeuristicLab.Encodings.PermutationEncoding;
    2829using HeuristicLab.Operators;
    2930using HeuristicLab.Optimization;
     31using HeuristicLab.Optimization.Operators;
    3032using HeuristicLab.Parameters;
    3133using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     
    5860      get { return (ILookupParameter<DoubleValue>)Parameters["QualityAfterMutation"]; }
    5961    }
     62    public ILookupParameter<Permutation> PermutationBeforeMutationParameter {
     63      get { return (ILookupParameter<Permutation>)Parameters["PermutationBeforeMutation"]; }
     64    }
     65    public ILookupParameter<Permutation> PermutationAfterMutationParameter {
     66      get { return (ILookupParameter<Permutation>)Parameters["PermutationAfterMutation"]; }
     67    }
     68    public IValueParameter<SingleObjectiveSolutionSimilarityCalculator> SimilarityCalculatorParameter {
     69      get { return (IValueParameter<SingleObjectiveSolutionSimilarityCalculator>)Parameters["SimilarityCalculator"]; }
     70    }
    6071    #endregion
    6172
     
    6677    #endregion
    6778
    68     ScatterPlot plot;
    69     DataRow dtRow;
     79    ScatterPlot plot, diversityPlot;
     80    DataRow dtRow, dtDivRow;
    7081    int cnt = 0;
    7182
     
    8394      Parameters.Add(new LookupParameter<DoubleValue>("QualityAfterMutation", "The evaluated quality of the child solution."));
    8495      QualityAfterMutationParameter.ActualName = "TSPTourLengthM";
     96
     97      Parameters.Add(new LookupParameter<Permutation>("PermutationBeforeMutation"));
     98      QualityAfterMutationParameter.ActualName = "TSPTourClone";
     99
     100      Parameters.Add(new LookupParameter<Permutation>("PermutationAfterMutation"));
     101      QualityAfterMutationParameter.ActualName = "TSPTour";
     102
     103      Parameters.Add(new ValueParameter<SingleObjectiveSolutionSimilarityCalculator>("SimilarityCalculator"));
    85104    }
    86105
     
    141160      plot.VisualProperties.YAxisTitle = "Absolut Quality Difference";
    142161    }
     162
     163    private void InitializeDiversityPlot() {
     164      diversityPlot = new ScatterPlot("Mutation Diversity", null);
     165      diversityPlot.VisualProperties.XAxisTitle = "Solution Index";
     166      diversityPlot.VisualProperties.YAxisTitle = "Diversity";
     167    }
    143168  }
    144169}
Note: See TracChangeset for help on using the changeset viewer.