- Timestamp:
- 04/14/09 11:49:33 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.SGA.Hardwired/3.3/CreateChildrenHardWired.cs
r1551 r1552 75 75 // UniformSequentialSubScopesProcessor 76 76 foreach (IScope s in scope.SubScopes) { 77 crossover.Execute(s); 77 if (crossover.Execute(s) != null) 78 throw new InvalidOperationException("ERROR: no support for combined operators!"); 79 78 80 // Stochastic Branch 79 if (random.NextDouble() < probability.Data) 80 mutator.Execute(s); 81 evaluator.Execute(s); 81 if (random.NextDouble() < probability.Data) { 82 if (mutator.Execute(s) != null) 83 throw new InvalidOperationException("ERROR: no support for combined operators!"); 84 } 85 86 if (evaluator.Execute(s) != null) 87 throw new InvalidOperationException("ERROR: no support for combined operators!"); 88 82 89 // subscopes remover 83 90 IntData index = GetVariableValue<IntData>("SubScopeIndex", s, true, false); … … 120 127 return null; 121 128 } // Apply 122 123 } // class SGAMain 124 125 } // namespace HeuristicLab.SGA 129 } // class CreateChildrenHardWired 130 } // namespace HeuristicLab.SGA.Hardwired
Note: See TracChangeset
for help on using the changeset viewer.