Free cookie consent management tool by TermsFeed Policy Generator

Changeset 12023 for branches


Ignore:
Timestamp:
02/17/15 16:02:21 (9 years ago)
Author:
gkronber
Message:

#2283: setter for ComparisonFactorLowerBound in OSGP

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Problems.GrammaticalOptimization/HeuristicLab.Algorithms.GeneticProgramming/OffspringSelectionGP.cs

    r11895 r12023  
    1818    public int MaxSolutionSize { get; set; }
    1919    public int MaxSolutionDepth { get; set; }
     20    public double ComparisonFactorLowerBound { get; set; }
    2021
    2122    private readonly ISymbolicExpressionTreeProblem problem;
     
    3132      MaxSolutionSize = 100;
    3233      MaxSolutionDepth = 17;
     34      ComparisonFactorLowerBound = 1.0;
    3335      this.saveAlg = saveAlg;
    3436    }
     
    8183        osga.MutationProbability.Value = MutationRate;
    8284        osga.ComparisonFactorLowerBound.Value = 1.0;
    83         osga.ComparisonFactorUpperBound.Value = 1.0;
     85        osga.ComparisonFactorUpperBound.Value = ComparisonFactorLowerBound;
    8486        osga.SuccessRatio.Value = 1.0;
    8587
     
    9092        osga.Start();
    9193
    92         wh.WaitOne();
    93 
     94        wh.Dispose();
    9495
    9596        if (saveAlg) {
Note: See TracChangeset for help on using the changeset viewer.