Free cookie consent management tool by TermsFeed Policy Generator

Changeset 11518 for branches/VOSGA


Ignore:
Timestamp:
10/31/14 17:57:50 (9 years ago)
Author:
ascheibe
Message:

#2267 added probabilities to results

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/VOSGA/HeuristicLab.Algorithms.VOffspringSelectionGeneticAlgorithm/ProbabilitiesGenerator.cs

    r11512 r11518  
    5757      get { return (LookupParameter<ItemList<IScope>>)Parameters["GeneratedOffspring"]; }
    5858    }
    59 
     59    public ValueLookupParameter<ResultCollection> ResultsParameter {
     60      get { return (ValueLookupParameter<ResultCollection>)Parameters["Results"]; }
     61    }
    6062    public override IDeepCloneable Clone(Cloner cloner) {
    6163      return new ProbabilitiesGenerator(this, cloner);
     
    7274      Parameters.Add(new ValueParameter<DoubleValue>("MinimumOperatorUsage", "Minimum percentage of operator usage. ", new DoubleValue(0.05)));
    7375      Parameters.Add(new LookupParameter<ItemList<IScope>>("GeneratedOffspring", "Temporary store of the offspring population."));
     76      Parameters.Add(new ValueLookupParameter<ResultCollection>("Results", "The result collection where the population diversity analysis results should be stored."));
     77
    7478    }
    7579
     
    130134        if (ProbablilitiesParameter.ActualValue == null) {
    131135          ProbablilitiesParameter.ActualValue = new DoubleArray(crossoverCount);
     136          ResultsParameter.ActualValue.Add(new Result("Probabilities", ProbablilitiesParameter.ActualValue));
    132137          for (int i = 0; i < crossoverCount; i++) {
    133138            ProbablilitiesParameter.ActualValue[i] = 1.0;
Note: See TracChangeset for help on using the changeset viewer.