- Timestamp:
- 07/25/11 23:27:44 (13 years ago)
- Location:
- branches/QAPAlgorithms/HeuristicLab.Problems.QuadraticAssignment.Algorithms/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/QAPAlgorithms/HeuristicLab.Problems.QuadraticAssignment.Algorithms/3.3/RobustTabooSeachOperator.cs
r6593 r6594 187 187 if (useNewAdaptionScheme) { 188 188 double r = random.NextDouble(); 189 if (r == 0) r = 1; // transform to (0;1] 189 190 shortTermMemory[bestMove.Index1, solution[bestMove.Index1]] = (int)(iteration + r * r * r * maxTenure); 190 191 r = random.NextDouble(); 192 if (r == 0) r = 1; // transform to (0;1] 191 193 shortTermMemory[bestMove.Index2, solution[bestMove.Index2]] = (int)(iteration + r * r * r * maxTenure); 192 194 } else { -
branches/QAPAlgorithms/HeuristicLab.Problems.QuadraticAssignment.Algorithms/3.3/RobustTabooSearch.cs
r6593 r6594 139 139 Parameters.Add(new FixedValueParameter<IntValue>("MaximumTabuTenure", "The maximum tabu tenure.", new IntValue(20))); 140 140 Parameters.Add(new FixedValueParameter<BoolValue>("UseAlternativeAspiration", "True if the alternative aspiration condition should be used that takes moves that have not been made for some time above others.", new BoolValue(false))); 141 Parameters.Add(new FixedValueParameter<IntValue>("AlternativeAspirationTenure", "The time t that a move will be remembered for the alternative aspiration condition.", new IntValue( 10000)));141 Parameters.Add(new FixedValueParameter<IntValue>("AlternativeAspirationTenure", "The time t that a move will be remembered for the alternative aspiration condition.", new IntValue(int.MaxValue))); 142 142 Parameters.Add(new FixedValueParameter<BoolValue>("TerminateOnOptimalSolution", "True when the algorithm should stop if it reached a quality equal or smaller to the BestKnownQuality.", new BoolValue(true))); 143 143 Parameters.Add(new FixedValueParameter<BoolValue>("UseNewTabuTenureAdaptionScheme", @"In an updated version of his implementation, Eric Taillard introduced a different way to change the tabu tenure. … … 284 284 285 285 private void MaximumIterationsParameter_ValueChanged(object sender, EventArgs e) { 286 if (MaximumIterations >=AlternativeAspirationTenure && UseAlternativeAspiration) {286 if (MaximumIterations < AlternativeAspirationTenure && UseAlternativeAspiration) { 287 287 SetSilentlyUseAlternativeAspirationParameter(false); 288 } else if (MaximumIterations <AlternativeAspirationTenure && !UseAlternativeAspiration) {288 } else if (MaximumIterations >= AlternativeAspirationTenure && !UseAlternativeAspiration) { 289 289 SetSilentlyUseAlternativeAspirationParameter(true); 290 290 }
Note: See TracChangeset
for help on using the changeset viewer.