Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
KristianJensen committed May 26, 2016
1 parent e5898f1 commit 196b427
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions optlang/cplex_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ def dual(self):

@interface.Variable.name.setter
def name(self, value):
if getattr(self, "model", None) is not None:
self.model.problem.variables.set_names(self.name, value)
if getattr(self, "problem", None) is not None:
self.problem.problem.variables.set_names(self.name, value)
super(Variable, Variable).name.fset(self, value)


Expand Down

0 comments on commit 196b427

Please sign in to comment.