Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/15/17 09:57:50 (7 years ago)
Author:
abeham
Message:

#2701:

  • changed adaptive walk performance model to relative
  • added ConfidenceConstantModel for regression
  • using constant model as fallback to GPR
  • reorganized code
File:
1 edited

Legend:

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

    r14563 r14573  
    302302
    303303      if (!replaced && offspring != null) {
    304         if (Context.HillclimbingSuited(offspring)) {
     304        if (Context.HillclimbingSuited(offspring.Fitness)) {
    305305          HillClimb(offspring, token, CalculateSubspace(Context.Population.Select(x => x.Solution)));
    306306          if (Replace(offspring, token)) {
     
    566566      AdaptiveWalk(newScope, maxEvals, token, subspace);
    567567     
     568      Context.AddAdaptivewalkingResult(scope, newScope);
    568569      if (Context.IsBetter(newScope, scope)) {
    569         Context.AddAdaptivewalkingResult(scope, newScope);
    570570        scope.Adopt(newScope);
    571       } else if (!Eq(newScope, scope))
    572         Context.AddAdaptivewalkingResult(scope, newScope);
     571      }
    573572    }
    574573    protected abstract void AdaptiveWalk(ISingleObjectiveSolutionScope<TSolution> scope, int maxEvals, CancellationToken token, ISolutionSubspace<TSolution> subspace = null);
Note: See TracChangeset for help on using the changeset viewer.