- Timestamp:
- 12/05/16 16:06:18 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/MemPRAlgorithm/HeuristicLab.Algorithms.MemPR/3.3/MemPRAlgorithm.cs
r14453 r14454 557 557 || Context.Population.Any(p => IsBetter(offspring, p))) return offspring; 558 558 559 if (HillclimbingSuited(offspring)) 559 if (IsBetter(offspring.Fitness, Context.BestQuality)) 560 HillClimb(offspring, token); // perform hillclimb in full solution space 561 else if (HillclimbingSuited(offspring)) 560 562 HillClimb(offspring, token, subspace); // perform hillclimb in the solution sub-space 561 563 return offspring; … … 587 589 if (dist1 > 0 && dist2 > 0) { 588 590 var subspace = CalculateSubspace(new[] { a.Solution, b.Solution }, inverse: true); 589 if (HillclimbingSuited(child)) { 590 HillClimb(child, token, subspace); 591 if (IsBetter(child.Fitness, Context.BestQuality)) 592 HillClimb(child, token); // perform hillclimb in full solution space 593 else if (HillclimbingSuited(child)) { 594 HillClimb(child, token, subspace); // perform hillclimb in solution sub-space 591 595 } 592 596 }
Note: See TracChangeset
for help on using the changeset viewer.