- Timestamp:
- 03/11/15 09:33:08 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ALPS/HeuristicLab.Algorithms.ALPS/3.3/AlpsGeneticAlgorithm.cs
r12120 r12186 64 64 get { return (IFixedValueParameter<BoolValue>)Parameters["ReevaluateElites"]; } 65 65 } 66 private IValueParameter<BoolValue> PlusSelectionParameter { 67 get { return (IValueParameter<BoolValue>)Parameters["PlusSelection"]; } 68 } 66 69 #endregion 67 70 … … 99 102 get { return ReevaluateElitesParameter.Value.Value; } 100 103 set { ReevaluateElitesParameter.Value.Value = value; } 104 } 105 public bool PlusSelection { 106 get { return PlusSelectionParameter.Value.Value; } 107 set { PlusSelectionParameter.Value.Value = value; } 101 108 } 102 109 … … 126 133 Parameters.Add(new ValueParameter<IntValue>("Elites", "The numer of elite solutions which are kept in each generation.", new IntValue(1))); 127 134 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 }); 128 136 129 137 var globalRandomCreator = new RandomCreator();
Note: See TracChangeset
for help on using the changeset viewer.