Changeset 8847
- Timestamp:
- 10/24/12 19:56:10 (12 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.QuadraticAssignment/3.3/LocalImprovement
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.QuadraticAssignment/3.3/LocalImprovement/QAPExhaustiveInsertionLocalImprovement.cs
r8338 r8847 147 147 148 148 Improve(assignment, weights, distances, quality, localIterations, evaluations, maximization, maxIterations, CancellationToken); 149 150 localIterations.Value = 0; 149 151 return base.Apply(); 150 152 } -
trunk/sources/HeuristicLab.Problems.QuadraticAssignment/3.3/LocalImprovement/QAPExhaustiveInversionLocalImprovement.cs
r8338 r8847 136 136 var distances = DistancesParameter.ActualValue; 137 137 var quality = QualityParameter.ActualValue; 138 var loca tionIterations = LocalIterationsParameter.ActualValue;138 var localIterations = LocalIterationsParameter.ActualValue; 139 139 var evaluations = EvaluatedSolutionsParameter.ActualValue; 140 if (loca tionIterations == null) {141 loca tionIterations = new IntValue(0);142 LocalIterationsParameter.ActualValue = loca tionIterations;140 if (localIterations == null) { 141 localIterations = new IntValue(0); 142 LocalIterationsParameter.ActualValue = localIterations; 143 143 } 144 144 145 Improve(assignment, weights, distances, quality, locationIterations, evaluations, maximization, maxIterations, CancellationToken); 145 Improve(assignment, weights, distances, quality, localIterations, evaluations, maximization, maxIterations, CancellationToken); 146 147 localIterations.Value = 0; 146 148 return base.Apply(); 147 149 } -
trunk/sources/HeuristicLab.Problems.QuadraticAssignment/3.3/LocalImprovement/QAPExhaustiveSwap2LocalImprovement.cs
r8846 r8847 203 203 else Improve(assignment, weights, distances, quality, localIterations, evaluations, maximization, maxIterations, CancellationToken); 204 204 205 localIterations.Value = 0; 205 206 return base.Apply(); 206 207 } -
trunk/sources/HeuristicLab.Problems.QuadraticAssignment/3.3/LocalImprovement/QAPStochasticScrambleLocalImprovement.cs
r8338 r8847 157 157 158 158 Improve(random, assignment, weights, distances, quality, localIterations, evaluations, maximization, maxIterations, neighborhoodSize, CancellationToken); 159 160 localIterations.Value = 0; 159 161 return base.Apply(); 160 162 }
Note: See TracChangeset
for help on using the changeset viewer.