Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/12/18 14:19:06 (6 years ago)
Author:
rhanghof
Message:

#2817:

  • Fixed a bug at creating the extreme points with the point projection based method.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2817-BinPackingSpeedup/HeuristicLab.Problems.BinPacking/3.3/3D/Algorithms/ExtremePointAlgorithm.cs

    r15731 r15838  
    247247            }
    248248
    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 
    266249            if (token.IsCancellationRequested) {
    267250              return Tuple.Create(bestSolution, best, bestSorting, bestFitting, bestEPCreation);
     
    277260
    278261    /// <summary>
    279     /// Returns a tuple with the solution and the packing ratio depending on the given parameters
     262    /// Returns a solution depending on the given parameters
    280263    /// </summary>
    281264    /// <param name="parameters"></param>
     
    284267
    285268      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;
    289271    }
    290272
     
    298280      public ExtremePointCreationMethod ExtremePointGeneration { get; set; }
    299281    }
    300 
    301 
     282   
    302283    /// <summary>
    303284    /// Returns a new permutation of the given items depending on the sorting method
Note: See TracChangeset for help on using the changeset viewer.