Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/07/14 11:14:18 (11 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.LinearAssignment/3.3/LAPEvaluator.cs

    r9456 r10291  
    3232  [Item("LAPEvaluator", "Evaluates a solution to the linear assignment problem.")]
    3333  [StorableClass]
    34   public class LAPEvaluator : SingleSuccessorOperator, ILAPEvaluator {
     34  public class LAPEvaluator : InstrumentedOperator, ILAPEvaluator {
    3535
    3636    public ILookupParameter<DoubleMatrix> CostsParameter {
     
    4747    protected LAPEvaluator(bool deserializing) : base(deserializing) { }
    4848    protected LAPEvaluator(LAPEvaluator original, Cloner cloner) : base(original, cloner) { }
    49     public LAPEvaluator() : base() {
     49    public LAPEvaluator()
     50      : base() {
    5051      Parameters.Add(new LookupParameter<DoubleMatrix>("Costs", LinearAssignmentProblem.CostsDescription));
    5152      Parameters.Add(new LookupParameter<Permutation>("Assignment", "The assignment solution to evaluate."));
     
    5758    }
    5859
    59     public override IOperation Apply() {
     60    public override IOperation InstrumentedApply() {
    6061      var costs = CostsParameter.ActualValue;
    6162      var assignment = AssignmentParameter.ActualValue;
     
    6970
    7071      QualityParameter.ActualValue = new DoubleValue(quality);
    71       return base.Apply();
     72      return base.InstrumentedApply();
    7273    }
    7374  }
Note: See TracChangeset for help on using the changeset viewer.