Changeset 10483 for branches/LogResidualEvaluator/HeuristicLab.Problems.LinearAssignment/3.3/LAPEvaluator.cs
- Timestamp:
- 02/20/14 14:56:39 (11 years ago)
- Location:
- branches/LogResidualEvaluator
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/LogResidualEvaluator
- Property svn:mergeinfo changed
-
branches/LogResidualEvaluator/HeuristicLab.Problems.LinearAssignment/3.3/LAPEvaluator.cs
r9456 r10483 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.