diff --git a/XFix.py b/XFix.py index ffc07f4..86837ec 100644 --- a/XFix.py +++ b/XFix.py @@ -12,4 +12,4 @@ class XFix(Constraint): coeffs = [] for i in range(len(varrefs1)): coeffs.append((varrefs1[i], (self.shape, i))) - return [(coeffs, -self.val)] + return [(coeffs, self.val)] diff --git a/YFix.py b/YFix.py index 4b7d577..8857a58 100644 --- a/YFix.py +++ b/YFix.py @@ -12,4 +12,4 @@ class YFix(Constraint): coeffs = [] for i in range(len(varrefs1)): coeffs.append((varrefs1[i], (self.shape, i))) - return [(coeffs, -self.val)] + return [(coeffs, self.val)]