Free cookie consent management tool by TermsFeed Policy Generator

Changeset 8379


Ignore:
Timestamp:
08/01/12 17:42:44 (12 years ago)
Author:
jkarder
Message:

#1247: added parameters

File:
1 edited

Legend:

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

    r8377 r8379  
    2424using HeuristicLab.Data;
    2525using HeuristicLab.Operators;
     26using HeuristicLab.Optimization;
    2627using HeuristicLab.Optimization.Operators;
    2728using HeuristicLab.Parameters;
     
    9091    public IValueLookupParameter<IntValue> EffortParameter {
    9192      get { return (IValueLookupParameter<IntValue>)Parameters["Effort"]; }
     93    }
     94    public IValueLookupParameter<IntValue> BatchSizeParameter {
     95      get { return (IValueLookupParameter<IntValue>)Parameters["BatchSize"]; }
     96    }
     97    public IValueLookupParameter<ISolutionSimilarityCalculator> SimilarityCalculatorParameter {
     98      get { return (IValueLookupParameter<ISolutionSimilarityCalculator>)Parameters["SimilarityCalculator"]; }
    9299    }
    93100    private ScopeParameter CurrentScopeParameter {
     
    131138      Parameters.Add(new ValueLookupParameter<DoubleValue>("ComparisonFactor", "The comparison factor."));
    132139      Parameters.Add(new ValueLookupParameter<IntValue>("Effort", "The maximum number of offspring created in each generation."));
     140      Parameters.Add(new ValueLookupParameter<IntValue>("BatchSize", "The number of children that should be created during one iteration of the offspring creation process.", new IntValue(10)));
     141      Parameters.Add(new ValueLookupParameter<ISolutionSimilarityCalculator>("SimilarityCalculator", "The operator used to calculate the similarity between two solutions."));
    133142      Parameters.Add(new ScopeParameter("CurrentScope", "The current scope which represents a population of solutions on which the genetic algorithm should be applied."));
    134143      #endregion
Note: See TracChangeset for help on using the changeset viewer.