Skip to content

Commit

Permalink
Set HBV variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
dhadka committed Jan 1, 2025
1 parent 1c5d6c2 commit 136939f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 19 deletions.
3 changes: 3 additions & 0 deletions .classpath
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,20 @@
<classpathentry kind="src" output="target/classes" path="src/main/java">
<attributes>
<attribute name="maven.pomderived" value="true"/>
<attribute name="optional" value="true"/>
</attributes>
</classpathentry>
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
<attributes>
<attribute name="maven.pomderived" value="true"/>
<attribute name="optional" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
<attributes>
<attribute name="maven.pomderived" value="true"/>
<attribute name="test" value="true"/>
<attribute name="optional" value="true"/>
</attributes>
</classpathentry>
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
Expand Down
28 changes: 14 additions & 14 deletions src/main/java/org/moeaframework/benchmarks/HBV.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,20 +60,20 @@ public int getNumberOfConstraints() {
public Solution newSolution() {
Solution solution = new Solution(14, 4, 0);

solution.setVariable(0, new RealVariable(0.0, 100.0)); //L (mm)
solution.setVariable(1, new RealVariable(0.5, 20.0)); //K0 (d)
solution.setVariable(2, new RealVariable(1.0, 100.0)); //K1 (d)
solution.setVariable(3, new RealVariable(10.0, 20000.0)); //K2 (d)
solution.setVariable(4, new RealVariable(0.0, 100.0)); //Perc (mm/d)
solution.setVariable(5, new RealVariable(0.3, 1.0)); //LP (-)
solution.setVariable(6, new RealVariable(0.0, 2000.0)); //Fcap (mm)
solution.setVariable(7, new RealVariable(0.0, 7.0)); //B (-)
solution.setVariable(8, new RealVariable(24.0, 120.0)); //MaxBas (d)
solution.setVariable(9, new RealVariable(-3.0, 3.0)); //TT (C)
solution.setVariable(10, new RealVariable(0.0, 20.0)); //DDF (mm/C*d)
solution.setVariable(11, new RealVariable(0.0, 1.0)); //CFR (-)
solution.setVariable(12, new RealVariable(0.0, 0.8)); //CWH (-)
solution.setVariable(13, new RealVariable(0.0, 7.0)); //TTI (C)
solution.setVariable(0, new RealVariable("L (mm)", 0.0, 100.0));
solution.setVariable(1, new RealVariable("K0 (d)", 0.5, 20.0));
solution.setVariable(2, new RealVariable("K1 (d)", 1.0, 100.0));
solution.setVariable(3, new RealVariable("K2 (d)", 10.0, 20000.0));
solution.setVariable(4, new RealVariable("Perc (mm/d)", 0.0, 100.0));
solution.setVariable(5, new RealVariable("LP", 0.3, 1.0));
solution.setVariable(6, new RealVariable("Fcap (mm)", 0.0, 2000.0));
solution.setVariable(7, new RealVariable("B", 0.0, 7.0));
solution.setVariable(8, new RealVariable("MaxBas (d)", 24.0, 120.0));
solution.setVariable(9, new RealVariable("TT (C)", -3.0, 3.0));
solution.setVariable(10, new RealVariable("DDF (mm/C*d)", 0.0, 20.0));
solution.setVariable(11, new RealVariable("CFR", 0.0, 1.0));
solution.setVariable(12, new RealVariable("CWH", 0.0, 0.8));
solution.setVariable(13, new RealVariable("TTI (C)", 0.0, 7.0));

solution.setObjective(0, new Maximize("nse"));
solution.setObjective(1, new Minimize("trmse"));
Expand Down
5 changes: 0 additions & 5 deletions src/test/java/org/moeaframework/benchmarks/RadarTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,4 @@ public void testSolve() {
testSolve("Radar");
}

@Test
public void testReferenceSet() {
testReferenceSet("Radar");
}

}

0 comments on commit 136939f

Please sign in to comment.