Thanks for the reply. Indeed for the continuous problems (e.g. LP or convex problems), I can easily use check to see which constraints are active. But, for the mixed-integer case, the solution does not necessarily happen on the constraints. Please see the attached figure. This is a simple integer programming (the same argument applies to mixed integer case). The solution is not located on the constraints. Hence, if I check the constraints, non of the them are active at the solution.