diff options
-rw-r--r-- | sumofsquares/optvariable.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sumofsquares/optvariable.py b/sumofsquares/optvariable.py index 4c687de..ab450f8 100644 --- a/sumofsquares/optvariable.py +++ b/sumofsquares/optvariable.py @@ -35,6 +35,9 @@ class OptVariableImpl(OptVariableMixin): name: str shape: tuple[int, int] + def __str__(self): + return self.name + def init_opt_variable_expr(name, shape): return OptVariableImpl(name, shape) |