Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/12/12 22:10:04 (12 years ago)
Author:
ascheibe
Message:

#1886 added mutation performance analyzer for the QAP

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

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers/3.3/AfterMutationCombinedOperator.cs

    r8711 r9042  
    3838    }
    3939
     40    [Storable]
     41    protected MutationPerformanceAnalyzer mAnalyzer;
     42    [Storable]
     43    protected VariableRemover varRemover;
     44    [Storable]
     45    protected IEvaluator evaluatorClone;
     46
    4047    [StorableConstructor]
    4148    protected AfterMutationCombinedOperator(bool deserializing) : base(deserializing) { }
    4249    protected AfterMutationCombinedOperator(AfterMutationCombinedOperator original, Cloner cloner)
    4350      : base(original, cloner) {
     51      this.mAnalyzer = (MutationPerformanceAnalyzer)original.mAnalyzer.Clone(cloner);
     52      this.varRemover = (VariableRemover)original.varRemover.Clone(cloner);
    4453    }
    4554
     
    5261    }
    5362
    54     void SimilarityCalculatorParameter_ValueChanged(object sender, System.EventArgs e) {
     63    protected virtual void SimilarityCalculatorParameter_ValueChanged(object sender, System.EventArgs e) {
    5564      SimilarityCalculatorParameter.Value.QualityVariableName = "TSPTourLength";
    5665      SimilarityCalculatorParameter.Value.SolutionVariableName = "TSPTour";
     
    6271
    6372    public override void InitializeOperators() {
    64       var evaluatorClone = (IEvaluator)EvaluatorParameter.ActualValue.Clone();
     73      evaluatorClone = (IEvaluator)EvaluatorParameter.ActualValue.Clone();
    6574      ((ILookupParameter)evaluatorClone.Parameters["Quality"]).ActualName = "TSPTourLengthM";
    66       var mAnalyzer = new MutationPerformanceAnalyzer();
    67       var varRemover = new VariableRemover();
     75      mAnalyzer = new MutationPerformanceAnalyzer();
     76      varRemover = new VariableRemover();
    6877
    6978      Operators.Add(evaluatorClone);
  • branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers/3.3/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers-3.3.csproj

    r9032 r9042  
    120120    <Compile Include="AfterCrossoverCombinedOperator.cs" />
    121121    <Compile Include="AfterMutationCombinedOperator.cs" />
     122    <Compile Include="TSPAfterMutationCombinedOperator.cs" />
     123    <Compile Include="TSPAfterCrossoverCombinedOperator.cs" />
     124    <Compile Include="QAPAfterMutationCombinedOperator.cs" />
    122125    <Compile Include="QAPAfterCrossoverCombinedOperator.cs" />
    123126    <Compile Include="InitializableOperator.cs" />
Note: See TracChangeset for help on using the changeset viewer.