Free cookie consent management tool by TermsFeed Policy Generator

Changeset 11580


Ignore:
Timestamp:
11/25/14 11:37:58 (10 years ago)
Author:
pfleck
Message:

#2269 Implemented AlpsGeneticAlgorithmMainLoop.

Location:
branches/ALPS/HeuristicLab.Algorithms.ALPS/3.3
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • branches/ALPS/HeuristicLab.Algorithms.ALPS/3.3/AlpsGeneticAlgorithm.cs

    r11578 r11580  
    184184    }
    185185
     186    private AlpsGeneticAlgorithmMainLoop MainLoop {
     187      get { return OperatorGraph.Iterate().OfType<AlpsGeneticAlgorithmMainLoop>().First(); }
     188    }
     189
    186190    [Storable]
    187191    private BestAverageWorstQualityAnalyzer qualityAnalyzer;
     
    232236      var initializeGlobalEvaluatedSolutions = new DataReducer() { Name = "Initialize EvaluatedSolutions" };
    233237      var resultsCollector = new ResultsCollector();
    234       var mainLoop = new CombinedOperator();
     238      var mainLoop = new AlpsGeneticAlgorithmMainLoop();
     239
    235240      OperatorGraph.InitialOperator = globalRandomCreator;
    236241
     
    366371    }
    367372    private void ParameterizeMainLoop() {
    368       // TODO
     373      MainLoop.BestKnownQualityParameter.ActualName = Problem.BestKnownQualityParameter.Name;
     374      MainLoop.EvaluatorParameter.ActualName = Problem.EvaluatorParameter.Name;
     375      MainLoop.MaximizationParameter.ActualName = Problem.MaximizationParameter.Name;
     376      MainLoop.BestKnownQualityParameter.ActualName = Problem.Evaluator.QualityParameter.ActualName;
    369377    }
    370378    private void ParameterizeSelectors() {
  • branches/ALPS/HeuristicLab.Algorithms.ALPS/3.3/HeuristicLab.Algorithms.ALPS-3.3.csproj

    r11568 r11580  
    8080    <Compile Include="AgingScheme.cs" />
    8181    <Compile Include="AlpsGeneticAlgorithm.cs" />
     82    <Compile Include="AlpsGeneticAlgorithmMainLoop.cs" />
    8283    <Compile Include="Plugin.cs" />
    8384    <Compile Include="Properties\AssemblyInfo.cs" />
Note: See TracChangeset for help on using the changeset viewer.