- Timestamp:
- 03/07/16 10:18:05 (9 years ago)
- Location:
- branches/WebJobManager
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/WebJobManager/HeuristicLab.Problems.QuadraticAssignment/3.3/QuadraticAssignmentProblem.cs
r13173 r13656 22 22 using System; 23 23 using System.Collections.Generic; 24 using System.Drawing;25 24 using System.Linq; 26 25 using HeuristicLab.Common; … … 43 42 public string Filename { get; set; } 44 43 45 public static new Image StaticItemImage { 46 get { return HeuristicLab.Common.Resources.VSImageLibrary.Type; } 47 } 44 48 45 49 46 #region Parameter Properties 50 public IValueParameter<ItemSet<Permutation>> BestKnownSolutionsParameter { 47 public IValueParameter<ItemSet<Permutation>> BestKnownSolutionsParameter 48 { 51 49 get { return (IValueParameter<ItemSet<Permutation>>)Parameters["BestKnownSolutions"]; } 52 50 } 53 public IValueParameter<Permutation> BestKnownSolutionParameter { 51 public IValueParameter<Permutation> BestKnownSolutionParameter 52 { 54 53 get { return (IValueParameter<Permutation>)Parameters["BestKnownSolution"]; } 55 54 } 56 public IValueParameter<DoubleMatrix> WeightsParameter { 55 public IValueParameter<DoubleMatrix> WeightsParameter 56 { 57 57 get { return (IValueParameter<DoubleMatrix>)Parameters["Weights"]; } 58 58 } 59 public IValueParameter<DoubleMatrix> DistancesParameter { 59 public IValueParameter<DoubleMatrix> DistancesParameter 60 { 60 61 get { return (IValueParameter<DoubleMatrix>)Parameters["Distances"]; } 61 62 } 62 public IValueParameter<DoubleValue> LowerBoundParameter { 63 public IValueParameter<DoubleValue> LowerBoundParameter 64 { 63 65 get { return (IValueParameter<DoubleValue>)Parameters["LowerBound"]; } 64 66 } 65 public IValueParameter<DoubleValue> AverageQualityParameter { 67 public IValueParameter<DoubleValue> AverageQualityParameter 68 { 66 69 get { return (IValueParameter<DoubleValue>)Parameters["AverageQuality"]; } 67 70 } … … 69 72 70 73 #region Properties 71 public ItemSet<Permutation> BestKnownSolutions { 74 public ItemSet<Permutation> BestKnownSolutions 75 { 72 76 get { return BestKnownSolutionsParameter.Value; } 73 77 set { BestKnownSolutionsParameter.Value = value; } 74 78 } 75 public Permutation BestKnownSolution { 79 public Permutation BestKnownSolution 80 { 76 81 get { return BestKnownSolutionParameter.Value; } 77 82 set { BestKnownSolutionParameter.Value = value; } 78 83 } 79 public DoubleMatrix Weights { 84 public DoubleMatrix Weights 85 { 80 86 get { return WeightsParameter.Value; } 81 87 set { WeightsParameter.Value = value; } 82 88 } 83 public DoubleMatrix Distances { 89 public DoubleMatrix Distances 90 { 84 91 get { return DistancesParameter.Value; } 85 92 set { DistancesParameter.Value = value; } 86 93 } 87 public DoubleValue LowerBound { 94 public DoubleValue LowerBound 95 { 88 96 get { return LowerBoundParameter.Value; } 89 97 set { LowerBoundParameter.Value = value; } 90 98 } 91 public DoubleValue AverageQuality { 99 public DoubleValue AverageQuality 100 { 92 101 get { return AverageQualityParameter.Value; } 93 102 set { AverageQualityParameter.Value = value; } 94 103 } 95 104 96 private BestQAPSolutionAnalyzer BestQAPSolutionAnalyzer { 105 private BestQAPSolutionAnalyzer BestQAPSolutionAnalyzer 106 { 97 107 get { return Operators.OfType<BestQAPSolutionAnalyzer>().FirstOrDefault(); } 98 108 } 99 109 100 private QAPAlleleFrequencyAnalyzer QAPAlleleFrequencyAnalyzer { 110 private QAPAlleleFrequencyAnalyzer QAPAlleleFrequencyAnalyzer 111 { 101 112 get { return Operators.OfType<QAPAlleleFrequencyAnalyzer>().FirstOrDefault(); } 102 113 } 103 114 104 private QAPPopulationDiversityAnalyzer QAPPopulationDiversityAnalyzer { 115 private QAPPopulationDiversityAnalyzer QAPPopulationDiversityAnalyzer 116 { 105 117 get { return Operators.OfType<QAPPopulationDiversityAnalyzer>().FirstOrDefault(); } 106 118 }
Note: See TracChangeset
for help on using the changeset viewer.