We were unable to load Disqus. If you are a moderator please see our troubleshooting guide.
Hi, I am using the docplex in python. I have an logic expression which is: T[i][j] = T[i][j] or ( T[i][k] and T[k][j] ) and the python code is:
"logical_or ( T[i][j], logical_and( T[i][k], T[k][j] )",
T[i][j] are binary variables. But my jupter notebook reminds me that: "Model.logical_and: Expecting an iterable returning variables, 0 was passed at position 0"?
So, how to code this in python? thanks.
Bradley
Hi Bradley, Thank you for your question. Would you please post questions about product usage, such as this one, in the CPLEX forum at https://www.ibm.com/develop... ? Thanks! Stephanie