Closed drwadu closed 2 years ago
The initializer of the Control class expects a sequence of strings. Since Python has no character type, a string is also sequence of strings. Even a type checker will not find this bug. You should pass [str(n)]
instead. Alternatively, you can also use the Configuration class to set the number of models to enumerate: ctl.configuration.solve.models = n
.
It works, thank you.
I'm trying to enumerate
n
models as described in the following minimal example snippet:However, whenever I choose': multiple occurrences: 'models '
n
> 0, I run into: RuntimeError: In context 'How can I potentially resolve the problem?