Changeset 10291 for trunk/sources/HeuristicLab.Problems.LinearAssignment
- Timestamp:
- 01/07/14 11:14:18 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.LinearAssignment/3.3/LAPEvaluator.cs
r9456 r10291 32 32 [Item("LAPEvaluator", "Evaluates a solution to the linear assignment problem.")] 33 33 [StorableClass] 34 public class LAPEvaluator : SingleSuccessorOperator, ILAPEvaluator {34 public class LAPEvaluator : InstrumentedOperator, ILAPEvaluator { 35 35 36 36 public ILookupParameter<DoubleMatrix> CostsParameter { … … 47 47 protected LAPEvaluator(bool deserializing) : base(deserializing) { } 48 48 protected LAPEvaluator(LAPEvaluator original, Cloner cloner) : base(original, cloner) { } 49 public LAPEvaluator() : base() { 49 public LAPEvaluator() 50 : base() { 50 51 Parameters.Add(new LookupParameter<DoubleMatrix>("Costs", LinearAssignmentProblem.CostsDescription)); 51 52 Parameters.Add(new LookupParameter<Permutation>("Assignment", "The assignment solution to evaluate.")); … … 57 58 } 58 59 59 public override IOperation Apply() {60 public override IOperation InstrumentedApply() { 60 61 var costs = CostsParameter.ActualValue; 61 62 var assignment = AssignmentParameter.ActualValue; … … 69 70 70 71 QualityParameter.ActualValue = new DoubleValue(quality); 71 return base. Apply();72 return base.InstrumentedApply(); 72 73 } 73 74 }
Note: See TracChangeset
for help on using the changeset viewer.