Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/25/12 17:29:13 (12 years ago)
Author:
jkarder
Message:

#1247: initial version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/RAPGA/HeuristicLab.Algorithms.RAPGA/3.3/RAPGA.cs

    r8313 r8330  
    6464      get { return (ValueParameter<IntValue>)Parameters["PopulationSize"]; }
    6565    }
     66    private IValueParameter<IntValue> MinimumPopulationSizeParameter {
     67      get { return (IValueParameter<IntValue>)Parameters["MinimumPopulationSize"]; }
     68    }
     69    private IValueParameter<IntValue> MaximumPopulationSizeParameter {
     70      get { return (IValueParameter<IntValue>) Parameters["MaximumPopulationSize"]; }
     71    }
     72    private IValueParameter<DoubleValue> ComparisonFactorParameter {
     73      get { return (IValueParameter<DoubleValue>)Parameters["ComparisonFactor"]; }
     74    }
     75    private IValueParameter<IntValue> EffortParameter {
     76      get { return (IValueParameter<IntValue>)Parameters["Effort"]; }
     77    }
    6678    public IConstrainedValueParameter<ISelector> SelectorParameter {
    6779      get { return (IConstrainedValueParameter<ISelector>)Parameters["Selector"]; }
     
    99111      get { return PopulationSizeParameter.Value; }
    100112      set { PopulationSizeParameter.Value = value; }
     113    }
     114    public IntValue MinimumPopulationSize {
     115      get { return MinimumPopulationSizeParameter.Value; }
     116      set { MinimumPopulationSizeParameter.Value = value; }
     117    }
     118    public IntValue MaximumPopulationSize {
     119      get { return MaximumPopulationSizeParameter.Value; }
     120      set { MaximumPopulationSizeParameter.Value = value; }
     121    }
     122    public DoubleValue ComparisonFactor {
     123      get { return ComparisonFactorParameter.Value; }
     124      set { ComparisonFactorParameter.Value = value; }
     125    }
     126    public IntValue Effort {
     127      get { return EffortParameter.Value; }
     128      set { EffortParameter.Value = value; }
    101129    }
    102130    public ISelector Selector {
     
    154182      Parameters.Add(new ValueParameter<IntValue>("Seed", "The random seed used to initialize the new pseudo random number generator.", new IntValue(0)));
    155183      Parameters.Add(new ValueParameter<BoolValue>("SetSeedRandomly", "True if the random seed should be set to a random value, otherwise false.", new BoolValue(true)));
    156       Parameters.Add(new ValueParameter<IntValue>("PopulationSize", "The size of the population of solutions.", new IntValue(100)));
     184      Parameters.Add(new ValueParameter<IntValue>("PopulationSize", "The size of the population of solutions.", new IntValue(300)));
     185      Parameters.Add(new ValueParameter<IntValue>("MinimumPopulationSize", "The minimum size of the population of solutions.", new IntValue(2)));
     186      Parameters.Add(new ValueParameter<IntValue>("MaximumPopulationSize", "The maximum size of the population of solutions.", new IntValue(499)));
     187      Parameters.Add(new ValueParameter<DoubleValue>("ComparisonFactor", "The comparison factor.", new DoubleValue(0.0)));
     188      Parameters.Add(new ValueParameter<IntValue>("Effort", "The maximum number of offspring created in each generation.", new IntValue(1000)));
    157189      Parameters.Add(new ConstrainedValueParameter<ISelector>("Selector", "The operator used to select solutions for reproduction."));
    158190      Parameters.Add(new ConstrainedValueParameter<ICrossover>("Crossover", "The operator used to cross solutions."));
Note: See TracChangeset for help on using the changeset viewer.