Periodically, I get a “Shouldn’t be here” error message from line 90 in cvx/prod and I cannot figure out why this is happening. I’ve tried tracing through the source code but still am unsure of the conditions which generate this.
The prod is being taken over a vector of “cvx mixed positive constant/log-affine expression” and it seems that the greater the proportion of positive constants, the more frequent this error message, but I cannot see from the the code, or understand why, this would be the case.
I know this question has been asked before but never answered, so I am really hoping that someone (hopefully the author) can expand on the error message. Why shouldn’t I be there? What conditions which should never exist are resulting in this error message?