Ignore:
Timestamp:
01/19/09 17:16:36 (12 years ago)
Author:
gkronber
Message:

worked on #419

  • added function to open and display any model
  • added 'hard-coded' implementation of offspring selection GP (work in progress)
  • added properties for max. size and max. height in StandardGP
File:
1 edited

Legend:

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

    r1115 r1156  
    9191
    9292    private int maxTreeSize = 50;
     93    public int MaxTreeSize {
     94      get { return maxTreeSize; }
     95      set { maxTreeSize = value; }
     96    }
     97
    9398    private int maxTreeHeight = 8;
     99    public int MaxTreeHeight {
     100      get { return maxTreeHeight; }
     101      set { maxTreeHeight = value; }
     102    }
    94103    private double punishmentFactor = 10.0;
    95104    private bool useEstimatedTargetValue = false;
     
    109118      MutationRate = 0.15;
    110119      Elites = 1;
     120      MaxTreeSize = 100;
     121      MaxTreeHeight = 10;
    111122      engine = new SequentialEngine.SequentialEngine();
    112123      CombinedOperator algo = CreateAlgorithm();
     
    224235
    225236      DoubleArrayData probabilities = new DoubleArrayData(new double[manipulators.Length]);
    226       for(int i=0;i<manipulators.Length;i++) {
     237      for (int i = 0; i < manipulators.Length; i++) {
    227238        probabilities.Data[i] = 1.0;
    228239        multibranch.AddSubOperator(manipulators[i]);
Note: See TracChangeset for help on using the changeset viewer.