Query constraint violation

How do I query the (primal) constraint violation?

I don’t understand this question. What exactly are you trying to do?

I’m trying to do Keep solution on failure manually. Although, I guess I can recalculate the constraints violation myself if cvx doesn’t provide me access to its own data that it got from the solver for determining if the solver succeeded or not.