Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/12/11 03:39:04 (13 years ago)
Author:
swagner
Message:

Disabled run-time intensive analyzers by default (#1584)

Location:
trunk/sources/HeuristicLab.Algorithms.LocalSearch/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Algorithms.LocalSearch/3.3/LocalSearch.cs

    r6476 r7172  
    335335          foreach (IScopeTreeLookupParameter param in analyzer.Parameters.OfType<IScopeTreeLookupParameter>())
    336336            param.Depth = 0;
    337           Analyzer.Operators.Add(analyzer);
    338         }
    339       }
    340       Analyzer.Operators.Add(moveQualityAnalyzer);
     337          Analyzer.Operators.Add(analyzer, analyzer.EnabledByDefault);
     338        }
     339      }
     340      Analyzer.Operators.Add(moveQualityAnalyzer, moveQualityAnalyzer.EnabledByDefault);
    341341    }
    342342    private void ClearMoveParameters() {
  • trunk/sources/HeuristicLab.Algorithms.LocalSearch/3.3/LocalSearchImprovementOperator.cs

    r6052 r7172  
    244244      }
    245245      return false;
    246     } 
     246    }
    247247
    248248    private void UpdateAnalyzers() {
     
    255255            foreach (IScopeTreeLookupParameter param in clone.Parameters.OfType<IScopeTreeLookupParameter>())
    256256              param.Depth = 0;
    257             Analyzer.Operators.Add(clone);
     257            Analyzer.Operators.Add(clone, clone.EnabledByDefault);
    258258          }
    259259        }
    260260      }
    261       Analyzer.Operators.Add(qualityAnalyzer);
     261      Analyzer.Operators.Add(qualityAnalyzer, qualityAnalyzer.EnabledByDefault);
    262262    }
    263263
Note: See TracChangeset for help on using the changeset viewer.