Free cookie consent management tool by TermsFeed Policy Generator

Changeset 2076 for trunk/sources


Ignore:
Timestamp:
06/22/09 12:43:44 (15 years ago)
Author:
dtraxing
Message:

added fixed operator for OSGA and deleted some unused old source files (ticket #580).
OSGA operator is under construction.

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  
    4444
    4545    // Shared
    46     Sorter sorter;
     46    protected Sorter sorter;
    4747
    4848    // 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;
    6060
    6161    // 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;
    7767
    7868    //long[] timesExecuteCreateChildren;
     
    10797    }
    10898
    109     protected void InitCreateChildren() {
     99    private void InitCreateChildren() {
    110100      // variables for create children
    111101      ci = new ChildrenInitializer();
     
    146136      IntData maxGenerations = GetVariableValue<IntData>("MaximumGenerations", scope, true);
    147137      IntData nrOfGenerations = GetVariableValue<IntData>("Generations", scope, true);
    148    
     138
    149139      IntData subscopeNr;
    150140      try {
     
    157147
    158148      ci = new ChildrenInitializer();
    159      
     149
    160150
    161151      GetOperatorsFromScope(scope);
     
    241231    /// </summary>
    242232    /// <param name="scope"></param>
    243     private void GetOperatorsFromScope(IScope scope) {
     233    protected void GetOperatorsFromScope(IScope scope) {
    244234      selector = (OperatorBase)GetVariableValue("Selector", scope, true);
    245235      crossover = (OperatorBase)GetVariableValue("Crossover", scope, true);
     
    272262    } // CreateChildren
    273263
    274     private void DoReplacement(IScope scope) {
     264    protected void DoReplacement(IScope scope) {
    275265      //// SequentialSubScopesProcessor
    276266      Execute(ls, scope.SubScopes[0]);
Note: See TracChangeset for help on using the changeset viewer.