QuadraticProgram.get_feasibility_info¶
- QuadraticProgram.get_feasibility_info(x)[fuente]¶
Returns whether a solution is feasible or not along with the violations. :param x: a solution value, such as returned in an optimizer result.
- Devuelve:
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:
feasible
- Muestra:
QiskitOptimizationError – If the input x is not same len as total vars