Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/17/11 15:22:27 (14 years ago)
Author:
gkronber
Message:

#1553: implemented unit test to create and run the symbolic regression sample (towerData.txt)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Algorithms.GeneticAlgorithm/3.3/GeneticAlgorithm.cs

    r6436 r6439  
    6565      get { return (ValueParameter<IntValue>)Parameters["PopulationSize"]; }
    6666    }
    67     private ConstrainedValueParameter<ISelector> SelectorParameter {
     67    public ConstrainedValueParameter<ISelector> SelectorParameter {
    6868      get { return (ConstrainedValueParameter<ISelector>)Parameters["Selector"]; }
    6969    }
    70     private ConstrainedValueParameter<ICrossover> CrossoverParameter {
     70    public ConstrainedValueParameter<ICrossover> CrossoverParameter {
    7171      get { return (ConstrainedValueParameter<ICrossover>)Parameters["Crossover"]; }
    7272    }
     
    7474      get { return (ValueParameter<PercentValue>)Parameters["MutationProbability"]; }
    7575    }
    76     private OptionalConstrainedValueParameter<IManipulator> MutatorParameter {
     76    public OptionalConstrainedValueParameter<IManipulator> MutatorParameter {
    7777      get { return (OptionalConstrainedValueParameter<IManipulator>)Parameters["Mutator"]; }
    7878    }
     
    105105      set { SelectorParameter.Value = value; }
    106106    }
    107     public IEnumerable<ISelector> ValidSelectors {
    108       get { return SelectorParameter.ValidValues; }
    109     }
    110107    public ICrossover Crossover {
    111108      get { return CrossoverParameter.Value; }
     
    119116      get { return MutatorParameter.Value; }
    120117      set { MutatorParameter.Value = value; }
    121     }
    122     public IEnumerable<IManipulator> ValidMutators {
    123       get { return MutatorParameter.ValidValues; }
    124118    }
    125119    public IntValue Elites {
Note: See TracChangeset for help on using the changeset viewer.