Returns whether a solution is feasible or not along with the violations. :type x:
ndarray] :param x: a solution value, such as returned in an optimizer result.
Whether the solution provided is feasible or not. List[Variable]: List of variables which are violated. List[Constraint]: List of constraints which are violated.
- Return type:
QiskitOptimizationError – If the input x is not same len as total vars