Skip to content

Commit 136939f

Browse files
committed
Set HBV variable names
1 parent 1c5d6c2 commit 136939f

File tree

3 files changed

+17
-19
lines changed

3 files changed

+17
-19
lines changed

.classpath

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,20 @@
33
<classpathentry kind="src" output="target/classes" path="src/main/java">
44
<attributes>
55
<attribute name="maven.pomderived" value="true"/>
6+
<attribute name="optional" value="true"/>
67
</attributes>
78
</classpathentry>
89
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
910
<attributes>
1011
<attribute name="maven.pomderived" value="true"/>
12+
<attribute name="optional" value="true"/>
1113
</attributes>
1214
</classpathentry>
1315
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
1416
<attributes>
1517
<attribute name="maven.pomderived" value="true"/>
1618
<attribute name="test" value="true"/>
19+
<attribute name="optional" value="true"/>
1720
</attributes>
1821
</classpathentry>
1922
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">

src/main/java/org/moeaframework/benchmarks/HBV.java

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -60,20 +60,20 @@ public int getNumberOfConstraints() {
6060
public Solution newSolution() {
6161
Solution solution = new Solution(14, 4, 0);
6262

63-
solution.setVariable(0, new RealVariable(0.0, 100.0)); //L (mm)
64-
solution.setVariable(1, new RealVariable(0.5, 20.0)); //K0 (d)
65-
solution.setVariable(2, new RealVariable(1.0, 100.0)); //K1 (d)
66-
solution.setVariable(3, new RealVariable(10.0, 20000.0)); //K2 (d)
67-
solution.setVariable(4, new RealVariable(0.0, 100.0)); //Perc (mm/d)
68-
solution.setVariable(5, new RealVariable(0.3, 1.0)); //LP (-)
69-
solution.setVariable(6, new RealVariable(0.0, 2000.0)); //Fcap (mm)
70-
solution.setVariable(7, new RealVariable(0.0, 7.0)); //B (-)
71-
solution.setVariable(8, new RealVariable(24.0, 120.0)); //MaxBas (d)
72-
solution.setVariable(9, new RealVariable(-3.0, 3.0)); //TT (C)
73-
solution.setVariable(10, new RealVariable(0.0, 20.0)); //DDF (mm/C*d)
74-
solution.setVariable(11, new RealVariable(0.0, 1.0)); //CFR (-)
75-
solution.setVariable(12, new RealVariable(0.0, 0.8)); //CWH (-)
76-
solution.setVariable(13, new RealVariable(0.0, 7.0)); //TTI (C)
63+
solution.setVariable(0, new RealVariable("L (mm)", 0.0, 100.0));
64+
solution.setVariable(1, new RealVariable("K0 (d)", 0.5, 20.0));
65+
solution.setVariable(2, new RealVariable("K1 (d)", 1.0, 100.0));
66+
solution.setVariable(3, new RealVariable("K2 (d)", 10.0, 20000.0));
67+
solution.setVariable(4, new RealVariable("Perc (mm/d)", 0.0, 100.0));
68+
solution.setVariable(5, new RealVariable("LP", 0.3, 1.0));
69+
solution.setVariable(6, new RealVariable("Fcap (mm)", 0.0, 2000.0));
70+
solution.setVariable(7, new RealVariable("B", 0.0, 7.0));
71+
solution.setVariable(8, new RealVariable("MaxBas (d)", 24.0, 120.0));
72+
solution.setVariable(9, new RealVariable("TT (C)", -3.0, 3.0));
73+
solution.setVariable(10, new RealVariable("DDF (mm/C*d)", 0.0, 20.0));
74+
solution.setVariable(11, new RealVariable("CFR", 0.0, 1.0));
75+
solution.setVariable(12, new RealVariable("CWH", 0.0, 0.8));
76+
solution.setVariable(13, new RealVariable("TTI (C)", 0.0, 7.0));
7777

7878
solution.setObjective(0, new Maximize("nse"));
7979
solution.setObjective(1, new Minimize("trmse"));

src/test/java/org/moeaframework/benchmarks/RadarTest.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,4 @@ public void testSolve() {
3232
testSolve("Radar");
3333
}
3434

35-
@Test
36-
public void testReferenceSet() {
37-
testReferenceSet("Radar");
38-
}
39-
4035
}

0 commit comments

Comments
 (0)