diff --git a/src/pulp/pulp.py b/src/pulp/pulp.py index dc54444..3660983 100755 --- a/src/pulp/pulp.py +++ b/src/pulp/pulp.py @@ -360,10 +360,10 @@ class LpVariable(LpElement): def bounds(self, low, up): self.lowBound = low self.upBound = up + self.modified = True def positive(self): - self.lowBound = 0 - self.upBound = None + self.bounds(0, None) def value(self): return self.varValue