changes from Timo Korvola

This commit is contained in:
Stuart Mitchell
2013-01-07 22:28:35 +13:00
parent 2745eef9aa
commit ecc4d02267

View File

@@ -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