Changeset 12005 for stable/HeuristicLab.Problems.LinearAssignment
- Timestamp:
- 02/13/15 15:00:15 (10 years ago)
- Location:
- stable
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 11939,11945,11956,11958-11961,11963,11967,11970-11971,11982-11984,11987-11988,11990,11993-11994,11996,11998-12004
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.LinearAssignment/3.3/Analyzers/BestLAPSolutionAnalyzer.cs
r11170 r12005 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(); -
stable/HeuristicLab.Problems.LinearAssignment/3.3/LinearAssignmentProblemSolver.cs
r11170 r12005 25 25 using HeuristicLab.Encodings.PermutationEncoding; 26 26 using HeuristicLab.Operators; 27 using HeuristicLab.Optimization; 27 28 using HeuristicLab.Parameters; 28 29 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; … … 31 32 [Item("LinearAssignmentProblemSolver", "Uses the hungarian algorithm to solve linear assignment problems.")] 32 33 [StorableClass] 33 public sealed class LinearAssignmentProblemSolver : SingleSuccessorOperator {34 public sealed class LinearAssignmentProblemSolver : SingleSuccessorOperator, ISingleObjectiveOperator { 34 35 private const int UNASSIGNED = -1; 35 36
Note: See TracChangeset
for help on using the changeset viewer.