- Timestamp:
- 10/09/15 16:54:53 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ALPS/HeuristicLab.Algorithms.ALPS/3.3/AlpsGeneticAlgorithmMainLoop.cs
r12992 r12997 75 75 public AlpsGeneticAlgorithmMainLoop() 76 76 : base() { 77 Parameters.Add(new ValueLookupParameter<BoolValue>("Maximization", "True if the problem is a maximization problem, otherwise false.") );77 Parameters.Add(new ValueLookupParameter<BoolValue>("Maximization", "True if the problem is a maximization problem, otherwise false.") { Hidden = true }); 78 78 Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>("Quality", "The value which represents the quality of a solution.")); 79 79 Parameters.Add(new LookupParameter<IntValue>("MaximumGenerations", "The maximum number of generations that the algorithm should process.")); … … 232 232 // Insert AgeCalculator between crossover and its successor 233 233 var crossoverSuccessor = crossover.Successor; 234 var ageCalculator = new DataReducer() { Name = "Calculate Age" };234 var ageCalculator = new WeightingReducer() { Name = "Calculate Age" }; 235 235 crossover.Successor = ageCalculator; 236 236 237 237 ageCalculator.ParameterToReduce.ActualName = "Age"; 238 238 ageCalculator.TargetParameter.ActualName = "Age"; 239 ageCalculator.ReductionOperation.Value = null; 240 ageCalculator.ReductionOperation.ActualName = "AgeInheritanceReduction"; 241 ageCalculator.TargetOperation.Value = new ReductionOperation(ReductionOperations.Assign); 239 ageCalculator.WeightParameter.ActualName = "AgeInheritance"; 242 240 ageCalculator.Successor = crossoverSuccessor; 243 241
Note: See TracChangeset
for help on using the changeset viewer.