Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/14/09 11:49:33 (15 years ago)
Author:
dtraxing
Message:

added comments, removed unused source code and added a description for the operators CreateChildren and CreateChildrenHardWired(ticket #580)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.SGA.Hardwired/3.3/CreateChildrenHardWired.cs

    r1551 r1552  
    7575      // UniformSequentialSubScopesProcessor
    7676      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
    7880        // 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
    8289        // subscopes remover
    8390        IntData index = GetVariableValue<IntData>("SubScopeIndex", s, true, false);
     
    120127      return null;
    121128    } // 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.