Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/06/10 00:47:32 (15 years ago)
Author:
swagner
Message:

Worked on refactoring of algorithm analysis and tracing (#999)

  • removed SubScopesSubScopesLookupParameter
  • adapted SubScopesLookupParameter and renamed it into ScopeTreeLookupParameter
Location:
trunk/sources/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm/3.3
Files:
4 edited

Legend:

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

    r3654 r3659  
    4949      get { return (ValueLookupParameter<BoolValue>)Parameters["Maximization"]; }
    5050    }
    51     public SubScopesLookupParameter<DoubleValue> QualityParameter {
    52       get { return (SubScopesLookupParameter<DoubleValue>)Parameters["Quality"]; }
     51    public ScopeTreeLookupParameter<DoubleValue> QualityParameter {
     52      get { return (ScopeTreeLookupParameter<DoubleValue>)Parameters["Quality"]; }
    5353    }
    5454    public ValueLookupParameter<DoubleValue> BestKnownQualityParameter {
     
    142142      Parameters.Add(new ValueLookupParameter<IRandom>("Random", "A pseudo random number generator."));
    143143      Parameters.Add(new ValueLookupParameter<BoolValue>("Maximization", "True if the problem is a maximization problem, otherwise false."));
    144       Parameters.Add(new SubScopesLookupParameter<DoubleValue>("Quality", "The value which represents the quality of a solution."));
     144      Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>("Quality", "The value which represents the quality of a solution."));
    145145      Parameters.Add(new ValueLookupParameter<DoubleValue>("BestKnownQuality", "The best known quality value found so far."));
    146146      Parameters.Add(new ValueLookupParameter<IntValue>("NumberOfIslands", "The number of islands."));
     
    236236      resultsCollector1.CollectedValues.Add(new LookupParameter<IntValue>("Generations"));
    237237      resultsCollector1.CollectedValues.Add(new LookupParameter<IntValue>("Evaluated Solutions", null, "EvaluatedSolutions"));
    238       resultsCollector1.CollectedValues.Add(new SubScopesLookupParameter<ResultCollection>("IslandResults", "Result set for each island", "Results"));
     238      resultsCollector1.CollectedValues.Add(new ScopeTreeLookupParameter<ResultCollection>("IslandResults", "Result set for each island", "Results"));
    239239      resultsCollector1.ResultsParameter.ActualName = ResultsParameter.Name;
    240240
    241241      resultsCollector2.Name = "Reference Island Results";
    242242      resultsCollector2.CopyValue = new BoolValue(false);
    243       resultsCollector2.CollectedValues.Add(new SubScopesLookupParameter<ResultCollection>("IslandResults", "Result set for each island", "Results"));
     243      resultsCollector2.CollectedValues.Add(new ScopeTreeLookupParameter<ResultCollection>("IslandResults", "Result set for each island", "Results"));
    244244      resultsCollector2.ResultsParameter.ActualName = ResultsParameter.Name;
    245245
  • trunk/sources/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm/3.3/OffspringSelectionGeneticAlgorithmMainLoop.cs

    r3650 r3659  
    4343      get { return (ValueLookupParameter<BoolValue>)Parameters["Maximization"]; }
    4444    }
    45     public SubScopesLookupParameter<DoubleValue> QualityParameter {
    46       get { return (SubScopesLookupParameter<DoubleValue>)Parameters["Quality"]; }
     45    public ScopeTreeLookupParameter<DoubleValue> QualityParameter {
     46      get { return (ScopeTreeLookupParameter<DoubleValue>)Parameters["Quality"]; }
    4747    }
    4848    public ValueLookupParameter<IOperator> SelectorParameter {
     
    104104      Parameters.Add(new ValueLookupParameter<IRandom>("Random", "A pseudo random number generator."));
    105105      Parameters.Add(new ValueLookupParameter<BoolValue>("Maximization", "True if the problem is a maximization problem, otherwise false."));
    106       Parameters.Add(new SubScopesLookupParameter<DoubleValue>("Quality", "The value which represents the quality of a solution."));
     106      Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>("Quality", "The value which represents the quality of a solution."));
    107107      Parameters.Add(new ValueLookupParameter<DoubleValue>("BestKnownQuality", "The best known quality value found so far."));
    108108      Parameters.Add(new ValueLookupParameter<IOperator>("Selector", "The operator used to select solutions for reproduction."));
  • trunk/sources/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm/3.3/OffspringSelectionGeneticAlgorithmMainOperator.cs

    r3611 r3659  
    4343      get { return (ValueLookupParameter<BoolValue>)Parameters["Maximization"]; }
    4444    }
    45     public SubScopesLookupParameter<DoubleValue> QualityParameter {
    46       get { return (SubScopesLookupParameter<DoubleValue>)Parameters["Quality"]; }
     45    public ScopeTreeLookupParameter<DoubleValue> QualityParameter {
     46      get { return (ScopeTreeLookupParameter<DoubleValue>)Parameters["Quality"]; }
    4747    }
    4848    public ValueLookupParameter<IOperator> SelectorParameter {
     
    9898      Parameters.Add(new ValueLookupParameter<IRandom>("Random", "A pseudo random number generator."));
    9999      Parameters.Add(new ValueLookupParameter<BoolValue>("Maximization", "True if the problem is a maximization problem, otherwise false."));
    100       Parameters.Add(new SubScopesLookupParameter<DoubleValue>("Quality", "The value which represents the quality of a solution."));
     100      Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>("Quality", "The value which represents the quality of a solution."));
    101101      Parameters.Add(new ValueLookupParameter<IOperator>("Selector", "The operator used to select solutions for reproduction."));
    102102      Parameters.Add(new ValueLookupParameter<IOperator>("Crossover", "The operator used to cross solutions."));
  • trunk/sources/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm/3.3/SASEGASAMainLoop.cs

    r3658 r3659  
    5555      get { return (ValueLookupParameter<BoolValue>)Parameters["Maximization"]; }
    5656    }
    57     public SubScopesLookupParameter<DoubleValue> QualityParameter {
    58       get { return (SubScopesLookupParameter<DoubleValue>)Parameters["Quality"]; }
     57    public ScopeTreeLookupParameter<DoubleValue> QualityParameter {
     58      get { return (ScopeTreeLookupParameter<DoubleValue>)Parameters["Quality"]; }
    5959    }
    6060    public ValueLookupParameter<DoubleValue> BestKnownQualityParameter {
     
    124124      Parameters.Add(new ValueLookupParameter<IRandom>("Random", "A pseudo random number generator."));
    125125      Parameters.Add(new ValueLookupParameter<BoolValue>("Maximization", "True if the problem is a maximization problem, otherwise false."));
    126       Parameters.Add(new SubScopesLookupParameter<DoubleValue>("Quality", "The value which represents the quality of a solution."));
     126      Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>("Quality", "The value which represents the quality of a solution."));
    127127      Parameters.Add(new ValueLookupParameter<DoubleValue>("BestKnownQuality", "The best known quality value found so far."));
    128128      Parameters.Add(new ValueLookupParameter<IntValue>("NumberOfVillages", "The initial number of villages."));
     
    234234      resultsCollector2.Name = "Reference Village Results";
    235235      resultsCollector2.CopyValue = new BoolValue(false);
    236       resultsCollector2.CollectedValues.Add(new SubScopesLookupParameter<ResultCollection>("VillageResults", "Result set for each village", "Results"));
     236      resultsCollector2.CollectedValues.Add(new ScopeTreeLookupParameter<ResultCollection>("VillageResults", "Result set for each village", "Results"));
    237237      resultsCollector2.ResultsParameter.ActualName = ResultsParameter.Name;
    238238
Note: See TracChangeset for help on using the changeset viewer.