- Timestamp:
- 03/24/16 14:12:21 (9 years ago)
- Location:
- branches/HeuristicLab.Problems.MultiObjectiveTestFunctions
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/MultiObjectiveTestFunctionProblem.cs
r13725 r13729 116 116 117 117 [StorableConstructor] 118 pr ivateMultiObjectiveTestFunctionProblem(bool deserializing) : base(deserializing) { }119 pr ivateMultiObjectiveTestFunctionProblem(MultiObjectiveTestFunctionProblem original, Cloner cloner)118 protected MultiObjectiveTestFunctionProblem(bool deserializing) : base(deserializing) { } 119 protected MultiObjectiveTestFunctionProblem(MultiObjectiveTestFunctionProblem original, Cloner cloner) 120 120 : base(original, cloner) { 121 121 RegisterEventHandlers(); -
branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Views/MOSolution.cs
r13725 r13729 134 134 [StorableConstructor] 135 135 protected MOSolution(bool deserializing) : base() { } 136 137 138 protected MOSolution(MOSolution original, Cloner cloner) : this(original) { 139 this.qualities = original.qualities; 140 this.solutions = original.solutions; 141 this.paretoFront = original.paretoFront; 142 this.objectives = original.objectives; 143 } 136 144 protected MOSolution(MOSolution original) : base() { 137 145 this.qualities = original.qualities; -
branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/MultiObjectiveTestfunctionTests/FastHyperVolumeTests.cs
r13726 r13729 40 40 /// </summary> 41 41 [TestMethod] 42 [TestCategory("Problems.TestFunctions")] 43 [TestProperty("Time", "short")] 42 44 public void SinglePointTest() { 43 45 double[] point = new double[] { 0.5, 0.5, 0.5 }; … … 61 63 /// </summary> 62 64 [TestMethod] 65 [TestCategory("Problems.TestFunctions")] 66 [TestProperty("Time", "short")] 63 67 public void RandomSinglePointTest() { 64 68 //Front with a single Point -
branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/MultiObjectiveTestfunctionTests/GenerationalDistanceTest.cs
r13673 r13729 33 33 [TestMethod] 34 34 [ExpectedException(typeof(ArgumentException))] 35 [TestCategory("Problems.TestFunctions")] 36 [TestProperty("Time", "short")] 35 37 public void EmptyOptimalFrontTest() { 36 38 … … 45 47 [TestMethod] 46 48 [ExpectedException(typeof(ArgumentException))] 49 [TestCategory("Problems.TestFunctions")] 50 [TestProperty("Time", "short")] 47 51 public void EmptyFrontTest() { 48 52 … … 56 60 57 61 [TestMethod] 62 [TestCategory("Problems.TestFunctions")] 63 [TestProperty("Time", "short")] 58 64 public void SamePointTest() { 59 65 … … 71 77 72 78 [TestMethod] 79 [TestCategory("Problems.TestFunctions")] 80 [TestProperty("Time", "short")] 73 81 public void SinglePointTest() { 74 82 double[] point = new double[2]; … … 85 93 86 94 [TestMethod] 95 [TestCategory("Problems.TestFunctions")] 96 [TestProperty("Time", "short")] 87 97 public void DifferentSizesTest() { 88 98 double[] point = new double[2]; … … 102 112 103 113 [TestMethod] 114 [TestCategory("Problems.TestFunctions")] 115 [TestProperty("Time", "short")] 104 116 public void QuadraticTest() { 105 117 double[] point = new double[2]; -
branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/MultiObjectiveTestfunctionTests/HyperVolumeTests.cs
r13673 r13729 43 43 /// </summary> 44 44 [TestMethod] 45 [TestCategory("Problems.TestFunctions")] 46 [TestProperty("Time", "short")] 45 47 public void SinglePointTest() { 46 48 … … 98 100 /// </summary> 99 101 [TestMethod] 102 [TestCategory("Problems.TestFunctions")] 103 [TestProperty("Time", "short")] 100 104 public void RandomSinglePointTest() { 101 105 //Front with a single Point … … 133 137 referencePoint[1] = 0; 134 138 double se = Hypervolume.Calculate(front, referencePoint, maximization); 135 Assert.AreEqual(1.0, ne + se + nw + sw );139 Assert.AreEqual(1.0, ne + se + nw + sw, 1e8); 136 140 } 137 141 … … 149 153 /// </summary> 150 154 [TestMethod] 155 [TestCategory("Problems.TestFunctions")] 156 [TestProperty("Time", "short")] 151 157 public void DiagonalPointTest() { 152 158 //Front with three points … … 197 203 [TestMethod()] 198 204 [ExpectedException(typeof(ArgumentException))] 205 [TestCategory("Problems.TestFunctions")] 206 [TestProperty("Time", "short")] 199 207 public void ReferencePointViolationNE() { 200 208 //Front with a single Point … … 216 224 [TestMethod()] 217 225 [ExpectedException(typeof(ArgumentException))] 226 [TestCategory("Problems.TestFunctions")] 227 [TestProperty("Time", "short")] 218 228 public void ReferencePointViolationNW() { 219 229 //Front with a single Point … … 236 246 [TestMethod()] 237 247 [ExpectedException(typeof(ArgumentException))] 248 [TestCategory("Problems.TestFunctions")] 249 [TestProperty("Time", "short")] 238 250 public void ReferencePointViolationSW() { 239 251 //Front with a single Point … … 256 268 [TestMethod()] 257 269 [ExpectedException(typeof(ArgumentException))] 270 [TestCategory("Problems.TestFunctions")] 271 [TestProperty("Time", "short")] 258 272 public void ReferencePointViolationSE() { 259 273 //Front with a single Point -
branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/MultiObjectiveTestfunctionTests/InvertedGenerationalDistanceTest.cs
r13673 r13729 29 29 [TestMethod] 30 30 [ExpectedException(typeof(ArgumentException))] 31 [TestCategory("Problems.TestFunctions")] 32 [TestProperty("Time", "short")] 31 33 public void EmptyOptimalFrontTest() { 32 34 … … 41 43 [TestMethod] 42 44 [ExpectedException(typeof(ArgumentException))] 45 [TestCategory("Problems.TestFunctions")] 46 [TestProperty("Time", "short")] 43 47 public void EmptyFrontTest() { 44 48 … … 52 56 53 57 [TestMethod] 58 [TestCategory("Problems.TestFunctions")] 59 [TestProperty("Time", "short")] 54 60 public void SamePointTest() { 55 61 double[] point = new double[2]; … … 66 72 67 73 [TestMethod] 74 [TestCategory("Problems.TestFunctions")] 75 [TestProperty("Time", "short")] 68 76 public void SinglePointTest() { 69 77 double[] point = new double[2]; … … 80 88 81 89 [TestMethod] 90 [TestCategory("Problems.TestFunctions")] 91 [TestProperty("Time", "short")] 82 92 public void DifferentSizesTest() { 83 93 double[] point = new double[2]; … … 97 107 98 108 [TestMethod] 109 [TestCategory("Problems.TestFunctions")] 110 [TestProperty("Time", "short")] 99 111 public void QuadraticTest() { 100 112 double[] point = new double[2]; -
branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/MultiObjectiveTestfunctionTests/SpacingTest.cs
r13673 r13729 32 32 [TestMethod] 33 33 [ExpectedException(typeof(ArgumentException))] 34 [TestCategory("Problems.TestFunctions")] 35 [TestProperty("Time", "short")] 34 36 public void EmptyFrontTest() { 35 37 double[][] front = { }; … … 39 41 40 42 [TestMethod] 43 [TestCategory("Problems.TestFunctions")] 44 [TestProperty("Time", "short")] 41 45 public void SamePointTest() { 42 46 … … 54 58 55 59 [TestMethod] 60 [TestCategory("Problems.TestFunctions")] 61 [TestProperty("Time", "short")] 56 62 public void SinglePointTest() { 57 63 double[] point = new double[2]; … … 64 70 65 71 [TestMethod] 72 [TestCategory("Problems.TestFunctions")] 73 [TestProperty("Time", "short")] 66 74 public void QuadraticTest() { 67 75 double[] point = new double[2]; … … 84 92 85 93 [TestMethod] 94 [TestCategory("Problems.TestFunctions")] 95 [TestProperty("Time", "short")] 86 96 public void RectangularTest() { 87 97 double[] point = new double[2]; … … 109 119 /// </summary> 110 120 [TestMethod] 121 [TestCategory("Problems.TestFunctions")] 122 [TestProperty("Time", "short")] 111 123 public void DeltoidTest() { 112 124 double[] point = new double[2];
Note: See TracChangeset
for help on using the changeset viewer.