The following code:
x = [var(f'x{i}') for I in range(3)]
f = sum(x)
f.limit(x[1]=1)
gives an error:
SyntaxError: expression cannot contain assignment, perhaps you meant "=="?
If I replace x[1]=1
with x[1]==1
, I get
ValueError: call the limit function like this, e.g. limit(expr, x=2).
and we go in circles. How to proceed?