Changeset 11970 for trunk/sources/HeuristicLab.Problems.LinearAssignment/3.3/Analyzers/BestLAPSolutionAnalyzer.cs
- Timestamp:
- 02/07/15 13:52:48 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.LinearAssignment/3.3/Analyzers/BestLAPSolutionAnalyzer.cs
r11171 r11970 33 33 [Item("BestLAPSolutionAnalyzer", "Analyzes the best solution found.")] 34 34 [StorableClass] 35 public class BestLAPSolutionAnalyzer : SingleSuccessorOperator, IAnalyzer {35 public class BestLAPSolutionAnalyzer : SingleSuccessorOperator, IAnalyzer, ISingleObjectiveOperator { 36 36 public bool EnabledByDefault { get { return true; } } 37 37 … … 101 101 bool max = MaximizationParameter.ActualValue.Value; 102 102 DoubleValue bestKnownQuality = BestKnownQualityParameter.ActualValue; 103 103 104 104 var sorted = qualities.Select((x, index) => new { index, x.Value }).OrderBy(x => x.Value).ToArray(); 105 105 if (max) sorted = sorted.Reverse().ToArray();
Note: See TracChangeset
for help on using the changeset viewer.