Returns whether a solution is feasible or not along with the violations. :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.
- Tipo del valor devuelto:
QiskitOptimizationError – If the input x is not same len as total vars