Changeset 9032
- Timestamp:
- 12/12/12 10:07:34 (12 years ago)
- 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/AfterCrossoverCombinedOperator.cs
r8711 r9032 31 31 [StorableClass] 32 32 public class AfterCrossoverCombinedOperator : CombinedOperator { 33 [Storable] 34 protected CrossoverPerformanceAnalyzer cxAnalyzer; 35 36 [Storable] 37 protected VariableDuplicator varDuplicator; 38 33 39 public ILookupParameter<IEvaluator> EvaluatorParameter { 34 40 get { return ((LookupParameter<IEvaluator>)Parameters["Evaluator"]); } … … 42 48 protected AfterCrossoverCombinedOperator(AfterCrossoverCombinedOperator original, Cloner cloner) 43 49 : base(original, cloner) { 50 cxAnalyzer = (CrossoverPerformanceAnalyzer)original.cxAnalyzer.Clone(cloner); 51 varDuplicator = (VariableDuplicator)original.cxAnalyzer.Clone(cloner); 44 52 } 45 53 … … 52 60 } 53 61 54 void SimilarityCalculatorParameter_ValueChanged(object sender, System.EventArgs e) {62 protected virtual void SimilarityCalculatorParameter_ValueChanged(object sender, System.EventArgs e) { 55 63 SimilarityCalculatorParameter.Value.QualityVariableName = "TSPTourLength"; 56 64 SimilarityCalculatorParameter.Value.SolutionVariableName = "TSPTour"; … … 62 70 63 71 public override void InitializeOperators() { 64 varcxAnalyzer = new CrossoverPerformanceAnalyzer();72 cxAnalyzer = new CrossoverPerformanceAnalyzer(); 65 73 cxAnalyzer.SimilarityCalculatorParameter.Value = SimilarityCalculatorParameter.Value; 66 var varDuplicator = new VariableDuplicator();74 varDuplicator = new VariableDuplicator(); 67 75 68 76 Operators.Add(EvaluatorParameter.ActualValue); -
branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers/3.3/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers-3.3.csproj
r9020 r9032 120 120 <Compile Include="AfterCrossoverCombinedOperator.cs" /> 121 121 <Compile Include="AfterMutationCombinedOperator.cs" /> 122 <Compile Include="QAPAfterCrossoverCombinedOperator.cs" /> 122 123 <Compile Include="InitializableOperator.cs" /> 123 124 <Compile Include="UnwantedMutationAnalyzer.cs" />
Note: See TracChangeset
for help on using the changeset viewer.