Changeset 3713
- Timestamp:
- 05/08/10 02:17:21 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm/3.3/OffspringSelectionGeneticAlgorithmMainOperator.cs
r3699 r3713 137 137 OffspringSelector offspringSelector = new OffspringSelector(); 138 138 SubScopesProcessor subScopesProcessor2 = new SubScopesProcessor(); 139 BestSelector bestSelector 1= new BestSelector();140 BestSelector bestSelector2 = new BestSelector();139 BestSelector bestSelector = new BestSelector(); 140 WorstSelector worstSelector = new WorstSelector(); 141 141 RightReducer rightReducer = new RightReducer(); 142 142 LeftReducer leftReducer = new LeftReducer(); … … 211 211 offspringSelector.WinnersParameter.ActualName = "OSWinners"; 212 212 213 bestSelector 1.CopySelected = new BoolValue(false);214 bestSelector 1.MaximizationParameter.ActualName = MaximizationParameter.Name;215 bestSelector 1.NumberOfSelectedSubScopesParameter.ActualName = ElitesParameter.Name;216 bestSelector 1.QualityParameter.ActualName = QualityParameter.Name;217 218 bestSelector2.CopySelected = new BoolValue(false);219 bestSelector2.MaximizationParameter.ActualName = MaximizationParameter.Name;220 bestSelector2.NumberOfSelectedSubScopesParameter.ActualName = ElitesParameter.Name;221 bestSelector2.QualityParameter.ActualName = QualityParameter.Name;213 bestSelector.CopySelected = new BoolValue(false); 214 bestSelector.MaximizationParameter.ActualName = MaximizationParameter.Name; 215 bestSelector.NumberOfSelectedSubScopesParameter.ActualName = ElitesParameter.Name; 216 bestSelector.QualityParameter.ActualName = QualityParameter.Name; 217 218 worstSelector.CopySelected = new BoolValue(false); 219 worstSelector.MaximizationParameter.ActualName = MaximizationParameter.Name; 220 worstSelector.NumberOfSelectedSubScopesParameter.ActualName = ElitesParameter.Name; 221 worstSelector.QualityParameter.ActualName = QualityParameter.Name; 222 222 #endregion 223 223 … … 253 253 offspringSelector.OffspringCreator = selector; 254 254 offspringSelector.Successor = subScopesProcessor2; 255 subScopesProcessor2.Operators.Add(bestSelector 1);256 subScopesProcessor2.Operators.Add( bestSelector2);255 subScopesProcessor2.Operators.Add(bestSelector); 256 subScopesProcessor2.Operators.Add(worstSelector); 257 257 subScopesProcessor2.Successor = mergingReducer; 258 bestSelector 1.Successor = rightReducer;258 bestSelector.Successor = rightReducer; 259 259 rightReducer.Successor = null; 260 bestSelector2.Successor = leftReducer;260 worstSelector.Successor = leftReducer; 261 261 leftReducer.Successor = null; 262 262 mergingReducer.Successor = null;
Note: See TracChangeset
for help on using the changeset viewer.