CVXGEN: "Error during preparation stage (variables may only appear on one end of a multiplication chain)."


(James Trimble) #1

Hi, I was wondering if someone can help me understand this error from CVXGEN. “Error during preparation stage (variables may only appear on one end of a multiplication chain).”

I’m guessing it is coming from the line I have, “(s*(I-nmat)) <= (L+(CI*(CI*diag(x))’))”

I am trying to do L+CIXCI’. Since I can’t commute X to the end, I’m not sure how to get around this error. I tried using transpose but that’s not working as CVXGEN just puts it back in the normal order.

Can someone please explain if/why this causes an error and some possible resolutions?

Thank you for your help.


(Mark L. Stone) #2

CVXGEN https://cvxgen.com/docs/index.html is a different software tool than CVX, and is out of scope of this forum. I am not aware of a help forum for CVXGEN.


(Mark L. Stone) #3