Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/22/10 00:44:01 (14 years ago)
Author:
swagner
Message:

Sorted usings and removed unused usings in entire solution (#1094)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.Knapsack/3.3/Evaluators/KnapsackEvaluator.cs

    r3537 r4068  
    2020#endregion
    2121
    22 using HeuristicLab.Common;
     22using System;
    2323using HeuristicLab.Core;
    2424using HeuristicLab.Data;
     25using HeuristicLab.Encodings.BinaryVectorEncoding;
     26using HeuristicLab.Operators;
    2527using HeuristicLab.Parameters;
    2628using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    27 using HeuristicLab.Encodings.BinaryVectorEncoding;
    28 using HeuristicLab.Operators;
    29 using System;
    3029
    3130namespace HeuristicLab.Problems.Knapsack {
     
    5150      get { return (ILookupParameter<DoubleValue>)Parameters["AppliedPenalty"]; }
    5251    }
    53    
     52
    5453    public ILookupParameter<BinaryVector> BinaryVectorParameter {
    5554      get { return (ILookupParameter<BinaryVector>)Parameters["BinaryVector"]; }
     
    110109      if (weight > capacity.Value) {
    111110        appliedPenalty = penalty.Value * (weight - capacity.Value);
    112       } 
     111      }
    113112
    114       quality =  value - appliedPenalty;
     113      quality = value - appliedPenalty;
    115114
    116115      result.AppliedPenalty = new DoubleValue(appliedPenalty);
     
    126125
    127126      KnapsackEvaluation evaluation = Apply(BinaryVectorParameter.ActualValue,
    128         KnapsackCapacityParameter.ActualValue, 
    129         PenaltyParameter.ActualValue, 
    130         WeightsParameter.ActualValue, 
     127        KnapsackCapacityParameter.ActualValue,
     128        PenaltyParameter.ActualValue,
     129        WeightsParameter.ActualValue,
    131130        ValuesParameter.ActualValue);
    132131
Note: See TracChangeset for help on using the changeset viewer.