Skip to content

Commit

Permalink
fix corner case treatment of linear constraint (#785)
Browse files Browse the repository at this point in the history
  • Loading branch information
HDembinski authored Aug 16, 2022
1 parent db929b7 commit 4575ce7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/iminuit/minuit.py
Original file line number Diff line number Diff line change
Expand Up @@ -1072,7 +1072,7 @@ def __call__(self, par, v):
shift = np.dot(c.A, x)
lb = c.lb - shift
ub = c.ub - shift
A = np.atleast_1d(c.A)[:, cfree]
A = np.atleast_2d(c.A)[:, cfree]
constraints[i] = LinearConstraint(A, lb, ub, c.keep_feasible)
else:
raise ValueError(
Expand Down

0 comments on commit 4575ce7

Please sign in to comment.