Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/20/12 17:00:09 (12 years ago)
Author:
jkarder
Message:

#1331:

  • added problem specific improvement operators (KnapsackImprovementOperator, TravelingSalesmanImprovementOperator)
  • added custom interface (IScatterSearchTargetProcessor) for Scatter Search specific operators that use a target parameter
  • added custom operator (OffspringProcessor) to process multiple children that were created by crossovers
  • extracted diversity calculation and added problem/encoding specific operators (BinaryVectorDiversityCalculator, PermutationDiversityCalculator) for it
  • added parameters and adjusted types
  • adjusted event handling
  • minor code improvements
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ScatterSearch/HeuristicLab.Algorithms.ScatterSearch/3.3/ScatterSearchMainLoop.cs

    r7740 r7744  
    4646      get { return (IValueLookupParameter<IOperator>)Parameters["Improver"]; }
    4747    }
     48    public IValueLookupParameter<DiversityCalculator> DiversityCalculatorParameter {
     49      get { return (IValueLookupParameter<DiversityCalculator>)Parameters["DiversityCalculator"]; }
     50    }
    4851    public IValueLookupParameter<IntValue> NumberOfHighQualitySolutionsParameter {
    4952      get { return (IValueLookupParameter<IntValue>)Parameters["NumberOfHighQualitySolutions"]; }
     
    99102      get { return ImproverParameter.ActualValue; }
    100103      set { ImproverParameter.ActualValue = value; }
     104    }
     105    private DiversityCalculator DiversityCalculator {
     106      get { return DiversityCalculatorParameter.ActualValue; }
     107      set { DiversityCalculatorParameter.ActualValue = value; }
    101108    }
    102109    private IntValue NumberOfHighQualitySolutions {
     
    168175      Parameters.Add(new ValueLookupParameter<ICrossover>("Crossover", "The operator used to combine solutions."));
    169176      Parameters.Add(new ValueLookupParameter<IOperator>("Improver", "The operator used to improve solutions."));
     177      Parameters.Add(new ValueLookupParameter<DiversityCalculator>("DiversityCalculator", "The operator used to calculate the diversity of two solutions."));
    170178      Parameters.Add(new ValueLookupParameter<IntValue>("NumberOfHighQualitySolutions", "The number of high quality solutions that should be added to the reference set."));
    171179      Parameters.Add(new ValueLookupParameter<IntValue>("PopulationSize", "The size of the population."));
Note: See TracChangeset for help on using the changeset viewer.