Checking which constraint is violated

Hi, I have an objective fcn and constraints (C1 - C10) that I am solving using mosek and was wondering if there was a way to automatically check if a particular constraint (say C2) was resulting in a not optimal solution? I can definitely do this offline by checking through each constraint, but, am wondering if cvx can isolate whether or not a particular constraint might have resulted in a non optimal solution? ie., cvx_status ~= ‘Solved’ and which constraint causes this?

Thanks.

No automated way in CVX.

You can follow the advice, except for section 1, in https://yalmip.github.io/debugginginfeasible/ .

Some LP solvers can find an Irreducible Infeasible Set (or called something else). But this functionality is not available when using such solver under CVX.