Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/21/16 13:03:42 (8 years ago)
Author:
gkronber
Message:

#1966: added abstract problem and move evaluator classes and implemented 2d bin packing problem based on integer vector encoding

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.2D/3.3/Evaluators/PackingRatioEvaluator.cs

    r14148 r14151  
    2525using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    2626using HeuristicLab.Common;
    27 using HeuristicLab.Data;
    28 using HeuristicLab.Encodings.PackingEncoding;
    29 using HeuristicLab.Problems.BinPacking;
    30 using System.Collections.Generic;
    3127
    3228namespace HeuristicLab.Problems.BinPacking2D {
     
    6460      const double k = 2;
    6561      for (int i = 0; i < nrOfBins; i++) {
    66         var f = solution.BinPackings[i].ItemMeasures.Sum(kvp => kvp.Value.Volume);
    67         var c = solution.BinPackings[i].BinMeasures.Volume;
     62        double f = solution.BinPackings[i].ItemMeasures.Sum(kvp => kvp.Value.Volume);
     63        double c = solution.BinPackings[i].BinMeasures.Volume;
    6864        result += Math.Pow(f / c, k);
    6965      }
Note: See TracChangeset for help on using the changeset viewer.