Changeset 2076 for trunk/sources
- Timestamp:
- 06/22/09 12:43:44 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.FixedOperators/3.2
- Files:
-
- 1 added
- 6 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.FixedOperators/3.2/FixedSGAMain.cs
r1995 r2076 44 44 45 45 // Shared 46 Sorter sorter;46 protected Sorter sorter; 47 47 48 48 // CreateChildren 49 Counter counter;50 IRandom random;51 DoubleData probability;52 ChildrenInitializer ci;53 OperatorBase crossover;54 OperatorBase mutator;55 OperatorBase evaluator;56 SubScopesRemover sr;57 StochasticBranch sb;58 59 OperatorBase selector;49 protected Counter counter; 50 protected IRandom random; 51 protected DoubleData probability; 52 protected ChildrenInitializer ci; 53 protected OperatorBase crossover; 54 protected OperatorBase mutator; 55 protected OperatorBase evaluator; 56 protected SubScopesRemover sr; 57 protected StochasticBranch sb; 58 59 protected OperatorBase selector; 60 60 61 61 // CreateReplacement 62 LeftSelector ls; 63 RightReducer rr; 64 RightSelector rs; 65 LeftReducer lr; 66 MergingReducer mr; 67 68 Thread executionThread; 69 Thread cancelThread; 70 71 // for testing only 72 QualityLogger ql; 73 BestAverageWorstQualityCalculator bawqc; 74 DataCollector dc; 75 ItemList<StringData> names; 76 LinechartInjector lci; 62 protected LeftSelector ls; 63 protected RightReducer rr; 64 protected RightSelector rs; 65 protected LeftReducer lr; 66 protected MergingReducer mr; 77 67 78 68 //long[] timesExecuteCreateChildren; … … 107 97 } 108 98 109 pr otectedvoid InitCreateChildren() {99 private void InitCreateChildren() { 110 100 // variables for create children 111 101 ci = new ChildrenInitializer(); … … 146 136 IntData maxGenerations = GetVariableValue<IntData>("MaximumGenerations", scope, true); 147 137 IntData nrOfGenerations = GetVariableValue<IntData>("Generations", scope, true); 148 138 149 139 IntData subscopeNr; 150 140 try { … … 157 147 158 148 ci = new ChildrenInitializer(); 159 149 160 150 161 151 GetOperatorsFromScope(scope); … … 241 231 /// </summary> 242 232 /// <param name="scope"></param> 243 pr ivatevoid GetOperatorsFromScope(IScope scope) {233 protected void GetOperatorsFromScope(IScope scope) { 244 234 selector = (OperatorBase)GetVariableValue("Selector", scope, true); 245 235 crossover = (OperatorBase)GetVariableValue("Crossover", scope, true); … … 272 262 } // CreateChildren 273 263 274 pr ivatevoid DoReplacement(IScope scope) {264 protected void DoReplacement(IScope scope) { 275 265 //// SequentialSubScopesProcessor 276 266 Execute(ls, scope.SubScopes[0]);
Note: See TracChangeset
for help on using the changeset viewer.