- Timestamp:
- 05/07/10 15:34:08 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm/3.3/IslandOffspringSelectionGeneticAlgorithm.cs
r3700 r3704 100 100 get { return (ValueParameter<IntValue>)Parameters["Elites"]; } 101 101 } 102 private ValueParameter<BoolValue> ParallelParameter {103 get { return (ValueParameter<BoolValue>)Parameters["Parallel"]; }104 }105 102 private ValueLookupParameter<DoubleValue> SuccessRatioParameter { 106 103 get { return (ValueLookupParameter<DoubleValue>)Parameters["SuccessRatio"]; } … … 192 189 get { return ElitesParameter.Value; } 193 190 set { ElitesParameter.Value = value; } 194 }195 public BoolValue Parallel {196 get { return ParallelParameter.Value; }197 set { ParallelParameter.Value = value; }198 191 } 199 192 private DoubleValue SuccessRatio { … … 270 263 Parameters.Add(new OptionalConstrainedValueParameter<IManipulator>("Mutator", "The operator used to mutate solutions.")); 271 264 Parameters.Add(new ValueParameter<IntValue>("Elites", "The numer of elite solutions which are kept in each generation.", new IntValue(1))); 272 Parameters.Add(new ValueParameter<BoolValue>("Parallel", "True if the islands should be run in parallel (also requires a parallel engine)", new BoolValue(false)));273 265 Parameters.Add(new ValueLookupParameter<DoubleValue>("SuccessRatio", "The ratio of successful to total children that should be achieved.", new DoubleValue(1))); 274 266 Parameters.Add(new ValueLookupParameter<DoubleValue>("ComparisonFactorLowerBound", "The lower bound of the comparison factor (start).", new DoubleValue(0))); … … 298 290 populationCreator.Successor = ussp1; 299 291 300 ussp1.Parallel = null;301 ussp1.ParallelParameter.ActualName = ParallelParameter.Name;302 292 ussp1.Operator = solutionsCreator; 303 293 ussp1.Successor = mainLoop; -
trunk/sources/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm/3.3/SASEGASA.cs
r3689 r3704 86 86 get { return (ValueParameter<IntValue>)Parameters["Elites"]; } 87 87 } 88 private ValueParameter<BoolValue> ParallelParameter {89 get { return (ValueParameter<BoolValue>)Parameters["Parallel"]; }90 }91 88 private ValueLookupParameter<DoubleValue> SuccessRatioParameter { 92 89 get { return (ValueLookupParameter<DoubleValue>)Parameters["SuccessRatio"]; } … … 161 158 get { return ElitesParameter.Value; } 162 159 set { ElitesParameter.Value = value; } 163 }164 public BoolValue Parallel {165 get { return ParallelParameter.Value; }166 set { ParallelParameter.Value = value; }167 160 } 168 161 public DoubleValue SuccessRatio { … … 242 235 Parameters.Add(new OptionalConstrainedValueParameter<IManipulator>("Mutator", "The operator used to mutate solutions.")); 243 236 Parameters.Add(new ValueParameter<IntValue>("Elites", "The numer of elite solutions which are kept in each generation.", new IntValue(1))); 244 Parameters.Add(new ValueParameter<BoolValue>("Parallel", "True if the villages should be run in parallel (also requires a parallel engine)", new BoolValue(false)));245 237 Parameters.Add(new ValueLookupParameter<DoubleValue>("SuccessRatio", "The ratio of successful to total children that should be achieved.", new DoubleValue(1))); 246 238 Parameters.Add(new ValueLookupParameter<DoubleValue>("ComparisonFactorLowerBound", "The lower bound of the comparison factor (start).", new DoubleValue(0.3))); … … 271 263 populationCreator.Successor = ussp1; 272 264 273 ussp1.Parallel = null;274 ussp1.ParallelParameter.ActualName = ParallelParameter.Name;275 265 ussp1.Operator = solutionsCreator; 276 266 ussp1.Successor = mainLoop;
Note: See TracChangeset
for help on using the changeset viewer.