Skip to content

Commit

Permalink
Return order fix (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmyrberg authored Jun 13, 2020
1 parent 86fbbd1 commit daca566
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.3
1.0.4
8 changes: 4 additions & 4 deletions cpp/mtm_c.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -463,12 +463,12 @@ std::vector<int> MTMSolver::solve() {
for (j = 0; j < n+3; j++) {
if (j < n)
res[j] = x[j];
else if (j == n-2)
else if (j == n)
res[j] = glopt;
else if (j == n-1)
res[j] = bt;
else if (j == n+1)
res[j] = z;
else
res[j] = z;
res[j] = bt;
}

/*std::vector<int> ksack_weights(m);
Expand Down

0 comments on commit daca566

Please sign in to comment.