Skip to content

Commit cb60390

Browse files
committed
Add snapshots to pom.xml
1 parent a2e9ac0 commit cb60390

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

pom.xml

+15
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,26 @@
144144
</plugins>
145145
</build>
146146

147+
<repositories>
148+
<repository>
149+
<id>ossrh-snapshots</id>
150+
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
151+
<releases><enabled>false</enabled></releases>
152+
<snapshots><enabled>true</enabled></snapshots>
153+
</repository>
154+
</repositories>
155+
147156
<distributionManagement>
148157
<repository>
149158
<id>ossrh</id>
150159
<name>Nexus Staging Repository</name>
151160
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
152161
</repository>
162+
<snapshotRepository>
163+
<id>ossrh</id>
164+
<name>Nexus Snapshot Repository</name>
165+
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
166+
</snapshotRepository>
153167
</distributionManagement>
168+
154169
</project>

src/main/java/org/moeaframework/algorithm/pisa/PISAAlgorithm.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ private void writePopulation(File file, int[] ids) throws IOException {
485485

486486
for (int j = 0; j < problem.getNumberOfObjectives(); j++) {
487487
writer.print(' ');
488-
writer.print(solutions.get(ids[i]).getObjective(j));
488+
writer.print(solutions.get(ids[i]).getObjectiveValue(j));
489489
}
490490

491491
writer.println();

0 commit comments

Comments
 (0)