Changeset 3704
- Timestamp:
- 05/07/10 15:34:08 (15 years ago)
- Location:
- trunk/sources
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.GeneticAlgorithm/3.3/IslandGeneticAlgorithm.cs
r3689 r3704 101 101 get { return (ValueParameter<IntValue>)Parameters["Elites"]; } 102 102 } 103 private ValueParameter<BoolValue> ParallelParameter {104 get { return (ValueParameter<BoolValue>)Parameters["Parallel"]; }105 }106 103 private ValueParameter<MultiAnalyzer> AnalyzerParameter { 107 104 get { return (ValueParameter<MultiAnalyzer>)Parameters["Analyzer"]; } … … 172 169 get { return ElitesParameter.Value; } 173 170 set { ElitesParameter.Value = value; } 174 }175 public BoolValue Parallel {176 get { return ParallelParameter.Value; }177 set { ParallelParameter.Value = value; }178 171 } 179 172 public MultiAnalyzer Analyzer { … … 222 215 Parameters.Add(new OptionalConstrainedValueParameter<IManipulator>("Mutator", "The operator used to mutate solutions.")); 223 216 Parameters.Add(new ValueParameter<IntValue>("Elites", "The numer of elite solutions which are kept in each generation.", new IntValue(1))); 224 Parameters.Add(new ValueParameter<BoolValue>("Parallel", "True if the islands should be run in parallel (also requires a parallel engine)", new BoolValue(false)));225 217 Parameters.Add(new ValueParameter<MultiAnalyzer>("Analyzer", "The operator used to analyze the islands.", new MultiAnalyzer())); 226 218 Parameters.Add(new ValueParameter<MultiAnalyzer>("IslandAnalyzer", "The operator used to analyze each island.", new MultiAnalyzer())); … … 243 235 populationCreator.Successor = ussp1; 244 236 245 ussp1.Parallel = null;246 ussp1.ParallelParameter.ActualName = ParallelParameter.Name;247 237 ussp1.Operator = solutionsCreator; 248 238 ussp1.Successor = mainLoop; -
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.