- Timestamp:
- 01/15/17 09:57:50 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/MemPRAlgorithm/HeuristicLab.Algorithms.MemPR/3.3/MemPRAlgorithm.cs
r14563 r14573 302 302 303 303 if (!replaced && offspring != null) { 304 if (Context.HillclimbingSuited(offspring )) {304 if (Context.HillclimbingSuited(offspring.Fitness)) { 305 305 HillClimb(offspring, token, CalculateSubspace(Context.Population.Select(x => x.Solution))); 306 306 if (Replace(offspring, token)) { … … 566 566 AdaptiveWalk(newScope, maxEvals, token, subspace); 567 567 568 Context.AddAdaptivewalkingResult(scope, newScope); 568 569 if (Context.IsBetter(newScope, scope)) { 569 Context.AddAdaptivewalkingResult(scope, newScope);570 570 scope.Adopt(newScope); 571 } else if (!Eq(newScope, scope)) 572 Context.AddAdaptivewalkingResult(scope, newScope); 571 } 573 572 } 574 573 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.