Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/11/15 09:33:08 (10 years ago)
Author:
pfleck
Message:

#2269 Added the possibility for a plus-selection replacement scheme.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ALPS/HeuristicLab.Algorithms.ALPS/3.3/AlpsGeneticAlgorithm.cs

    r12120 r12186  
    6464      get { return (IFixedValueParameter<BoolValue>)Parameters["ReevaluateElites"]; }
    6565    }
     66    private IValueParameter<BoolValue> PlusSelectionParameter {
     67      get { return (IValueParameter<BoolValue>)Parameters["PlusSelection"]; }
     68    }
    6669    #endregion
    6770
     
    99102      get { return ReevaluateElitesParameter.Value.Value; }
    100103      set { ReevaluateElitesParameter.Value.Value = value; }
     104    }
     105    public bool PlusSelection {
     106      get { return PlusSelectionParameter.Value.Value; }
     107      set { PlusSelectionParameter.Value.Value = value; }
    101108    }
    102109
     
    126133      Parameters.Add(new ValueParameter<IntValue>("Elites", "The numer of elite solutions which are kept in each generation.", new IntValue(1)));
    127134      Parameters.Add(new FixedValueParameter<BoolValue>("ReevaluateElites", "Flag to determine if elite individuals should be reevaluated (i.e., if stochastic fitness functions are used.)", new BoolValue(false)) { Hidden = true });
     135      Parameters.Add(new ValueParameter<BoolValue>("PlusSelection", "Include the parents in the selection of the invividuals for the next generation.", new BoolValue(false)) { Hidden = true });
    128136
    129137      var globalRandomCreator = new RandomCreator();
Note: See TracChangeset for help on using the changeset viewer.