Changeset 14050 for branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/PackingMoveEvaluator.cs
- Timestamp:
- 07/12/16 20:35:19 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking/3.3/PackingMoveEvaluator.cs
r14048 r14050 55 55 get { return (IValueLookupParameter<IPackingSolutionDecoder>)Parameters["PackingSolutionDecoder"]; } 56 56 } 57 public IValueLookupParameter<I PackingPlanEvaluator> PackingPlanEvaluatorParameter {58 get { return (IValueLookupParameter<I PackingPlanEvaluator>)Parameters["PackingPlanEvaluator"]; }57 public IValueLookupParameter<IEvaluator> PackingPlanEvaluatorParameter { 58 get { return (IValueLookupParameter<IEvaluator>)Parameters["PackingPlanEvaluator"]; } 59 59 } 60 60 protected ScopeParameter CurrentScopeParameter { … … 75 75 Parameters.Add(new LookupParameter<B>("PackingBinMeasures", "Packing-bin data taken from the bin-packing problem-instance.")); 76 76 Parameters.Add(new ValueLookupParameter<IPackingSolutionDecoder>("PackingSolutionDecoder", "The decoding operator that is used to calculate a packing plan from the used representation.")); 77 Parameters.Add(new ValueLookupParameter<I PackingPlanEvaluator>("PackingPlanEvaluator", "The actual packing plan evaluation operator."));77 Parameters.Add(new ValueLookupParameter<IEvaluator>("PackingPlanEvaluator", "The actual packing plan evaluation operator.")); 78 78 Parameters.Add(new ScopeParameter("CurrentScope", "The current scope where the decoded solution should be added to.")); 79 79 Parameters.Add(new LookupParameter<IPackingMove>("PackingMove", "The move to evaluate.")); … … 93 93 CurrentScopeParameter.ActualValue.Variables.Add(new Variable("PackingPlanAfterMove", packingPlan)); 94 94 95 DoubleValue quality = PackingRatio RegularIdenticalBinEvaluator<D, B, I>.CalculatePackingRatio(packingPlan);95 DoubleValue quality = PackingRatioEvaluator<D, B, I>.CalculatePackingRatio(packingPlan); 96 96 97 97 double moveQuality = quality.Value;
Note: See TracChangeset
for help on using the changeset viewer.