Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/07/14 11:14:18 (10 years ago)
Author:
mkommend
Message:

#2119: Added interface for instrumented operators and adapted problem and encoding specific operators to provide instrumentation capabilities.

File:
1 edited

Legend:

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

    r9456 r10291  
    3535  [Item("KnapsackEvaluator", "Evaluates solutions for the Knapsack problem.")]
    3636  [StorableClass]
    37   public class KnapsackEvaluator : SingleSuccessorOperator, IKnapsackEvaluator {
     37  public class KnapsackEvaluator : InstrumentedOperator, IKnapsackEvaluator {
    3838    public ILookupParameter<DoubleValue> QualityParameter {
    3939      get { return (ILookupParameter<DoubleValue>)Parameters["Quality"]; }
     
    129129    }
    130130
    131     public sealed override IOperation Apply() {
     131    public sealed override IOperation InstrumentedApply() {
    132132      BinaryVector v = BinaryVectorParameter.ActualValue;
    133133
     
    143143      AppliedPenaltyParameter.ActualValue = evaluation.AppliedPenalty;
    144144
    145       return base.Apply();
     145      return base.InstrumentedApply();
    146146    }
    147147  }
Note: See TracChangeset for help on using the changeset viewer.