Skip to content

Commit

Permalink
Bug: about array copy in ACA, and in fact in some other algorithms gu…
Browse files Browse the repository at this point in the history
  • Loading branch information
guofei9987 committed Dec 26, 2019
1 parent 9a4a65a commit 5cade74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sko/ACA.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def run(self, max_iter=None):

# 顺便记录历史最好情况
index_best = y.argmin()
x_best, y_best = self.Table[index_best, :], y[index_best]
x_best, y_best = self.Table[index_best, :].copy(), y[index_best].copy()
self.x_best_history.append(x_best)
self.y_best_history.append(y_best)

Expand Down

0 comments on commit 5cade74

Please sign in to comment.