[go: nahoru, domu]

Skip to content

Commit

Permalink
moeado variant tostring
Browse files Browse the repository at this point in the history
  • Loading branch information
castellanos94 committed Jul 4, 2021
1 parent 1a77581 commit 22d31ce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/main/java/com/castellanos94/algorithms/multi/MOEADO.java
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,9 @@ public MOEADO<S> copy() {
return new MOEADO<>(problem, MAX_ITERATIONS, N, lambda, T, model, variant, crossoverOperator, mutationOperator,
repairOperator, dominanceComparator, apporachUsed);
}
@Override
public String toString() {
return "MOEADO [MAX_ITERATIONS=" + MAX_ITERATIONS + ", N=" + N + ", T=" + T + ", apporachUsed=" + apporachUsed
+", variant=" + variant+ "]";
}
}
2 changes: 1 addition & 1 deletion src/main/java/com/castellanos94/experimentation/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public void run() {
String suffix = "";

if (algorithmName == AlgorithmNames.MOEADO) {
suffix = ((dm_target != -1) ? "DM" + dm_target : "DM1") + "-VAR" + variant;
suffix = "-" + ((dm_target != -1) ? "DM" + dm_target : "DM1") + "-VAR" + variant;
}
if (apporachUsed != MOEAD.APPROACH.TCHEBYCHEFF) {
suffix += "-" + apporachUsed;
Expand Down

0 comments on commit 22d31ce

Please sign in to comment.