Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/17/17 13:01:00 (7 years ago)
Author:
abeham
Message:

#2701: disabled learning

  • updated HeuristicLab.Data to trunk
Location:
branches/MemPRAlgorithm/HeuristicLab.Algorithms.MemPR/3.3
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/MemPRAlgorithm/HeuristicLab.Algorithms.MemPR/3.3

    • Property svn:ignore
      •  

        old new  
        99GeneratedArtifacts
        1010_Pvt_Extensions
         11*.DotSettings
  • branches/MemPRAlgorithm/HeuristicLab.Algorithms.MemPR/3.3/MemPRAlgorithm.cs

    r14573 r14680  
    248248          Context.AddToPopulation(child);
    249249          Context.BestQuality = child.Fitness;
    250           Analyze(token);
     250          Analyze(CancellationToken.None);
    251251          token.ThrowIfCancellationRequested();
    252252          if (Terminate()) return;
  • branches/MemPRAlgorithm/HeuristicLab.Algorithms.MemPR/3.3/MemPRContext.cs

    r14573 r14680  
    346346    #region Breeding Performance
    347347    public void AddBreedingResult(ISingleObjectiveSolutionScope<TSolution> a, ISingleObjectiveSolutionScope<TSolution> b, double parentDist, ISingleObjectiveSolutionScope<TSolution> child) {
     348      return;
    348349      if (IsBetter(a, b))
    349350        breedingStat.Add(Tuple.Create(a.Fitness, b.Fitness, parentDist, child.Fitness));
     
    352353    }
    353354    public void RelearnBreedingPerformanceModel() {
     355      return;
    354356      breedingPerformanceModel = RunRegression(PrepareRegression(ToListRow(breedingStat)), breedingPerformanceModel).Model;
    355357    }
    356358    public bool BreedingSuited(ISingleObjectiveSolutionScope<TSolution> p1, ISingleObjectiveSolutionScope<TSolution> p2, double dist) {
     359      return true;
    357360      if (breedingPerformanceModel == null) return true;
    358361      double minI1 = double.MaxValue, minI2 = double.MaxValue, maxI1 = double.MinValue, maxI2 = double.MinValue;
     
    372375    #region Relinking Performance
    373376    public void AddRelinkingResult(ISingleObjectiveSolutionScope<TSolution> a, ISingleObjectiveSolutionScope<TSolution> b, double parentDist, ISingleObjectiveSolutionScope<TSolution> child) {
     377      return;
    374378      if (IsBetter(a, b))
    375379        relinkingStat.Add(Tuple.Create(a.Fitness, b.Fitness, parentDist, Maximization ? child.Fitness - a.Fitness : a.Fitness - child.Fitness));
     
    378382    }
    379383    public void RelearnRelinkingPerformanceModel() {
     384      return;
    380385      relinkingPerformanceModel = RunRegression(PrepareRegression(ToListRow(relinkingStat)), relinkingPerformanceModel).Model;
    381386    }
    382387    public bool RelinkSuited(ISingleObjectiveSolutionScope<TSolution> p1, ISingleObjectiveSolutionScope<TSolution> p2, double dist) {
     388      return true;
    383389      if (relinkingPerformanceModel == null) return true;
    384390      double minI1 = double.MaxValue, minI2 = double.MaxValue, maxI1 = double.MinValue, maxI2 = double.MinValue;
     
    401407    #region Delinking Performance
    402408    public void AddDelinkingResult(ISingleObjectiveSolutionScope<TSolution> a, ISingleObjectiveSolutionScope<TSolution> b, double parentDist, ISingleObjectiveSolutionScope<TSolution> child) {
     409      return;
    403410      if (IsBetter(a, b))
    404411        delinkingStat.Add(Tuple.Create(a.Fitness, b.Fitness, parentDist, Maximization ? child.Fitness - a.Fitness : a.Fitness - child.Fitness));
     
    407414    }
    408415    public void RelearnDelinkingPerformanceModel() {
     416      return;
    409417      delinkingPerformanceModel = RunRegression(PrepareRegression(ToListRow(delinkingStat)), delinkingPerformanceModel).Model;
    410418    }
    411419    public bool DelinkSuited(ISingleObjectiveSolutionScope<TSolution> p1, ISingleObjectiveSolutionScope<TSolution> p2, double dist) {
     420      return true;
    412421      if (delinkingPerformanceModel == null) return true;
    413422      double minI1 = double.MaxValue, minI2 = double.MaxValue, maxI1 = double.MinValue, maxI2 = double.MinValue;
     
    429438    #region Sampling Performance
    430439    public void AddSamplingResult(ISingleObjectiveSolutionScope<TSolution> sample, double avgDist) {
     440      return;
    431441      samplingStat.Add(Tuple.Create(avgDist, sample.Fitness));
    432442      if (samplingStat.Count % 10 == 0) RelearnSamplingPerformanceModel();
    433443    }
    434444    public void RelearnSamplingPerformanceModel() {
     445      return;
    435446      samplingPerformanceModel = RunRegression(PrepareRegression(ToListRow(samplingStat)), samplingPerformanceModel).Model;
    436447    }
    437448    public bool SamplingSuited(double avgDist) {
     449      return true;
    438450      if (samplingPerformanceModel == null) return true;
    439451      if (avgDist < samplingStat.Min(x => x.Item1) || avgDist > samplingStat.Max(x => x.Item1)) return true;
     
    444456    #region Hillclimbing Performance
    445457    public void AddHillclimbingResult(ISingleObjectiveSolutionScope<TSolution> input, ISingleObjectiveSolutionScope<TSolution> outcome) {
     458      return;
    446459      hillclimbingStat.Add(Tuple.Create(input.Fitness, Maximization ? outcome.Fitness - input.Fitness : input.Fitness - outcome.Fitness));
    447460      if (hillclimbingStat.Count % 10 == 0) RelearnHillclimbingPerformanceModel();
    448461    }
    449462    public void RelearnHillclimbingPerformanceModel() {
     463      return;
    450464      hillclimbingPerformanceModel = RunRegression(PrepareRegression(ToListRow(hillclimbingStat)), hillclimbingPerformanceModel).Model;
    451465    }
    452466    public bool HillclimbingSuited(double startingFitness) {
     467      return true;
    453468      if (hillclimbingPerformanceModel == null) return true;
    454469      if (startingFitness < HillclimbingStat.Min(x => x.Item1) || startingFitness > HillclimbingStat.Max(x => x.Item1))
     
    460475    #region Adaptivewalking Performance
    461476    public void AddAdaptivewalkingResult(ISingleObjectiveSolutionScope<TSolution> input, ISingleObjectiveSolutionScope<TSolution> outcome) {
     477      return;
    462478      adaptivewalkingStat.Add(Tuple.Create(input.Fitness, Maximization ? outcome.Fitness - input.Fitness : input.Fitness - outcome.Fitness));
    463479      if (adaptivewalkingStat.Count % 10 == 0) RelearnAdaptiveWalkPerformanceModel();
    464480    }
    465481    public void RelearnAdaptiveWalkPerformanceModel() {
     482      return;
    466483      adaptiveWalkPerformanceModel = RunRegression(PrepareRegression(ToListRow(adaptivewalkingStat)), adaptiveWalkPerformanceModel).Model;
    467484    }
    468485    public bool AdaptivewalkingSuited(double startingFitness) {
     486      return true;
    469487      if (adaptiveWalkPerformanceModel == null) return true;
    470488      if (startingFitness < AdaptivewalkingStat.Min(x => x.Item1) || startingFitness > AdaptivewalkingStat.Max(x => x.Item1))
Note: See TracChangeset for help on using the changeset viewer.