Changeset 15838 for branches/2817-BinPackingSpeedup/HeuristicLab.Problems.BinPacking/3.3/3D/Algorithms
- Timestamp:
- 03/12/18 14:19:06 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2817-BinPackingSpeedup/HeuristicLab.Problems.BinPacking/3.3/3D/Algorithms/ExtremePointAlgorithm.cs
r15731 r15838 247 247 } 248 248 249 250 var x = Problem.SolutionEvaluator.Evaluate1(solution);251 252 /*253 if (double.IsNaN(result.Item2) || double.IsInfinity(result.Item2)) {254 continue;255 }256 257 if (double.IsNaN(best) || Problem.Maximization && result.Item2 > best || !Problem.Maximization && result.Item2 < best) {258 bestSolution = result.Item1;259 best = result.Item2;260 bestSorting = sort;261 bestFitting = fit;262 bestEPCreation = epCreation;263 }264 return true;*/265 266 249 if (token.IsCancellationRequested) { 267 250 return Tuple.Create(bestSolution, best, bestSorting, bestFitting, bestEPCreation); … … 277 260 278 261 /// <summary> 279 /// Returns a tuple with the solution and the packing ratiodepending on the given parameters262 /// Returns a solution depending on the given parameters 280 263 /// </summary> 281 264 /// <param name="parameters"></param> … … 284 267 285 268 var sol = parameters.Decoder.Decode(parameters.SortedItems, parameters.Bin, parameters.Items, parameters.StackingConstraints); 286 //var fit = parameters.Evaluator.Evaluate(sol); 287 288 return sol; //Tuple.Create(sol, fit); 269 270 return sol; 289 271 } 290 272 … … 298 280 public ExtremePointCreationMethod ExtremePointGeneration { get; set; } 299 281 } 300 301 282 302 283 /// <summary> 303 284 /// Returns a new permutation of the given items depending on the sorting method
Note: See TracChangeset
for help on using the changeset viewer.