From cb60390fb7427c243384b02459ef41db15ed10fc Mon Sep 17 00:00:00 2001 From: David Hadka Date: Fri, 20 Dec 2024 09:20:22 -0700 Subject: [PATCH] Add snapshots to pom.xml --- pom.xml | 15 +++++++++++++++ .../algorithm/pisa/PISAAlgorithm.java | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 154dfdf..b0498ce 100644 --- a/pom.xml +++ b/pom.xml @@ -144,11 +144,26 @@ + + + ossrh-snapshots + https://oss.sonatype.org/content/repositories/snapshots/ + false + true + + + ossrh Nexus Staging Repository https://oss.sonatype.org/service/local/staging/deploy/maven2/ + + ossrh + Nexus Snapshot Repository + https://oss.sonatype.org/content/repositories/snapshots/ + + diff --git a/src/main/java/org/moeaframework/algorithm/pisa/PISAAlgorithm.java b/src/main/java/org/moeaframework/algorithm/pisa/PISAAlgorithm.java index 96865a2..3926bec 100644 --- a/src/main/java/org/moeaframework/algorithm/pisa/PISAAlgorithm.java +++ b/src/main/java/org/moeaframework/algorithm/pisa/PISAAlgorithm.java @@ -485,7 +485,7 @@ private void writePopulation(File file, int[] ids) throws IOException { for (int j = 0; j < problem.getNumberOfObjectives(); j++) { writer.print(' '); - writer.print(solutions.get(ids[i]).getObjective(j)); + writer.print(solutions.get(ids[i]).getObjectiveValue(j)); } writer.println();