Fix typo in LpVariableDict

This commit is contained in:
Toby Davies
2013-01-02 16:54:44 +11:00
parent fb8c187183
commit 912711685a

View File

@@ -1915,7 +1915,7 @@ class LpVariableDict(dict):
if key in self:
return dict.__getitem__(self, key)
else:
self[key] = LpVariable(name % key, lowBound, upBound, cat)
self[key] = LpVariable(self.name % key, lowBound, upBound, cat)
return self[key]
# Utility functions