Skip to content

Commit

Permalink
fix: c when custom weights are given
Browse files Browse the repository at this point in the history
  • Loading branch information
yoyolicoris authored May 27, 2024
1 parent 7d7267c commit af67a00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kamui/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def calculate_k(
else:
c = np.ones((M * 2,), dtype=np.int64)
else:
c = np.tile(c, 2)
c = np.tile(weights, 2)

res = linprog(c, A_eq=A_eq, b_eq=b_eq, integrality=1)
k = res.x[:M] - res.x[M:]
Expand Down

0 comments on commit af67a00

Please sign in to comment.