Free cookie consent management tool by TermsFeed Policy Generator

Changeset 4086


Ignore:
Timestamp:
07/22/10 16:33:58 (14 years ago)
Author:
abeham
Message:

#1040

  • Added a very very basic analyzer for listing the qualities on the pareto front
Location:
trunk/sources
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Algorithms.NSGA2/3.3/HeuristicLab.Algorithms.NSGA2-3.3.csproj

    r4065 r4086  
    101101    <None Include="HeuristicLab.snk" />
    102102    <None Include="HeuristicLabAlgorithmsNSGA2Plugin.cs.frame" />
     103    <Compile Include="BasicMultiObjectiveQualityAnalyzer.cs" />
    103104    <Compile Include="CrowdedComparisonSorter.cs" />
    104105    <Compile Include="CrowdedTournamentSelector.cs" />
  • trunk/sources/HeuristicLab.Algorithms.NSGA2/3.3/NSGA2.cs

    r4068 r4086  
    139139    #endregion
    140140
     141    [Storable]
     142    private BasicMultiObjectiveQualityAnalyzer basicMOQualityAnalyzer;
     143
    141144    [StorableConstructor]
    142145    public NSGA2(bool deserializing) : base(deserializing) { }
     
    157160      RankAndCrowdingSorter rankAndCrowdingSorter = new RankAndCrowdingSorter();
    158161      NSGA2MainLoop mainLoop = new NSGA2MainLoop();
     162     
    159163      OperatorGraph.InitialOperator = randomCreator;
    160164
     
    191195      ParameterizeSelectors();
    192196
     197      basicMOQualityAnalyzer = new BasicMultiObjectiveQualityAnalyzer();
     198      basicMOQualityAnalyzer.RankParameter.ActualName = "Rank";
     199      basicMOQualityAnalyzer.RankParameter.Depth = 1;
     200      basicMOQualityAnalyzer.ResultsParameter.ActualName = "Results";
     201      ParameterizeAnalyzers();
     202      UpdateAnalyzers();
     203
    193204      AttachEventHandlers();
    194205    }
     
    298309    }
    299310    private void ParameterizeAnalyzers() {
    300       // TODO: Parameterize Analyzers
     311      if (Problem != null) {
     312        basicMOQualityAnalyzer.QualitiesParameter.ActualName = Problem.Evaluator.QualitiesParameter.ActualName;
     313        basicMOQualityAnalyzer.QualitiesParameter.Depth = 1;
     314      }
    301315    }
    302316    private void ParameterizeIterationBasedOperators() {
     
    337351        }
    338352      }
     353      Analyzer.Operators.Add(basicMOQualityAnalyzer);
    339354    }
    340355    #endregion
  • trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Analyzers/BestSingleObjectiveTestFunctionSolutionAnalyzer.cs

    r4068 r4086  
    7070    }
    7171
     72    [StorableConstructor]
    7273    protected BestSingleObjectiveTestFunctionSolutionAnalyzer(bool deserializing) : base(deserializing) { }
    7374    public BestSingleObjectiveTestFunctionSolutionAnalyzer()
Note: See TracChangeset for help on using the changeset viewer.