Skip to content

Commit

Permalink
fix the swtich default bug
Browse files Browse the repository at this point in the history
  • Loading branch information
chen0040 committed Jun 17, 2017
1 parent ed02b26 commit d322d0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/github/chen0040/moea/tutorials/TNK.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public double getCost(Solution x, int objective_index)
f = x.get(0) + M * h;
break;
}
case 1:
default:
{
h = getConstraint(x.get(0), x.get(1));
f = x.get(1) + M * h;
Expand Down

0 comments on commit d322d0e

Please sign in to comment.