Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/11/17 01:06:37 (7 years ago)
Author:
abeham
Message:

#2457: copied MemPR algorithm from its branch to this branch

Location:
branches/PerformanceComparison/HeuristicLab.Algorithms.MemPR
Files:
1 edited
1 copied

Legend:

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

    r14573 r14666  
    248248          Context.AddToPopulation(child);
    249249          Context.BestQuality = child.Fitness;
    250           Analyze(token);
     250          Analyze(CancellationToken.None);
    251251          token.ThrowIfCancellationRequested();
    252252          if (Terminate()) return;
     
    398398      } else res.Value = sp;
    399399
    400       if (Context.BreedingPerformanceModel != null) {
    401         var sol = Context.GetSolution(Context.BreedingPerformanceModel, Context.BreedingStat);
    402         if (!Results.TryGetValue("Breeding Performance", out res)) {
    403           Results.Add(new Result("Breeding Performance", sol));
    404         } else res.Value = sol;
    405       }
    406       if (Context.RelinkingPerformanceModel != null) {
    407         var sol = Context.GetSolution(Context.RelinkingPerformanceModel, Context.RelinkingStat);
    408         if (!Results.TryGetValue("Relinking Performance", out res)) {
    409           Results.Add(new Result("Relinking Performance", sol));
    410         } else res.Value = sol;
    411       }
    412       if (Context.DelinkingPerformanceModel != null) {
    413         var sol = Context.GetSolution(Context.DelinkingPerformanceModel, Context.DelinkingStat);
    414         if (!Results.TryGetValue("Delinking Performance", out res)) {
    415           Results.Add(new Result("Delinking Performance", sol));
    416         } else res.Value = sol;
    417       }
    418       if (Context.SamplingPerformanceModel != null) {
    419         var sol = Context.GetSolution(Context.SamplingPerformanceModel, Context.SamplingStat);
    420         if (!Results.TryGetValue("Sampling Performance", out res)) {
    421           Results.Add(new Result("Sampling Performance", sol));
    422         } else res.Value = sol;
    423       }
    424       if (Context.HillclimbingPerformanceModel != null) {
    425         var sol = Context.GetSolution(Context.HillclimbingPerformanceModel, Context.HillclimbingStat);
    426         if (!Results.TryGetValue("Hillclimbing Performance", out res)) {
    427           Results.Add(new Result("Hillclimbing Performance", sol));
    428         } else res.Value = sol;
    429       }
    430       if (Context.AdaptiveWalkPerformanceModel != null) {
    431         var sol = Context.GetSolution(Context.AdaptiveWalkPerformanceModel, Context.AdaptivewalkingStat);
    432         if (!Results.TryGetValue("Adaptivewalk Performance", out res)) {
    433           Results.Add(new Result("Adaptivewalk Performance", sol));
    434         } else res.Value = sol;
    435       }
    436 
    437400      Context.RunOperator(Analyzer, Context.Scope, token);
    438401    }
Note: See TracChangeset for help on using the changeset viewer.