What is CVX doing?

I’m curious as to when CVX is spending time transforming the problem compared to when it’s spending time solving the problem. If I have a statement in between cvx_begin and cvx_end that takes a while to execute, does that mean the transformation of that statement is taking long? Does the optimization only begin after cvx_end is hit?

Yes, some of the model transformations are occurring right when an objective or constraint or subexpression is being computed.