Free cookie consent management tool by TermsFeed Policy Generator

Changeset 1074


Ignore:
Timestamp:
12/31/08 19:48:07 (16 years ago)
Author:
gkronber
Message:

added operators to clean up when algorithm is finished. #224 (Simple frontend for GP for non-expert users (similar to HeurisicLab.SGA))

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/CEDMA-Refactoring-Ticket419/HeuristicLab.GP.StructureIdentification/StandardGP.cs

    r1052 r1074  
    9797    private double onepointShakingFactor = 1.0;
    9898    private IOperator algorithm;
     99
    99100    private SequentialEngine.SequentialEngine engine;
    100 
    101101    public IEngine Engine {
    102102      get { return engine; }
     
    104104
    105105    public StandardGP() {
    106       PopulationSize = 100;
     106      PopulationSize = 10000;
    107107      MaxGenerations = 100;
    108108      TournamentSize = 7;
     
    152152      selector.RemoveVariable("GroupSize");
    153153      selector.GetVariableInfo("GroupSize").ActualName = "TournamentSize";
     154      LeftReducer cleanUp = new LeftReducer();
    154155
    155156      seq.AddSubOperator(problemInjectorPlaceholder);
     
    159160      seq.AddSubOperator(initialization);
    160161      seq.AddSubOperator(mainLoop);
     162      seq.AddSubOperator(cleanUp);
    161163
    162164      initialization.AddSubOperator(treeCreator);
Note: See TracChangeset for help on using the changeset viewer.