qiskit_optimization/problems/substitute_variables.py
def _feasible(sense: ConstraintSense, rhs: float) -> bool:
        """Checks feasibility of the following condition
        0 `sense` rhs
        """
        if sense == ConstraintSense.EQ:
            if rhs == 0:
                return True
        elif sense == ConstraintSense.LE:
            if rhs >= 0:
                return True
        elif sense == ConstraintSense.GE:
            if rhs <= 0:
                return True
        return False
Checks feasibility of the following condition
        0 `sense` rhs
        
Checks feasibility of the following condition
0 `sense` rhs
Checks feasibility of the following condition 0 ` sense ` rhs
def _feasible(sense: ConstraintSense, rhs: float) -> bool:
        if sense == ConstraintSense.EQ:
            if rhs == 0:
                return True
        elif sense == ConstraintSense.LE:
            if rhs >= 0:
                return True
        elif sense == ConstraintSense.GE:
            if rhs <= 0:
                return True
        return False
def _feasible ( sense : ConstraintSense , rhs : float ) -> bool : if sense == ConstraintSense . EQ : if rhs == 0 : return True elif sense == ConstraintSense . LE : if rhs >= 0 : return True elif sense == ConstraintSense . GE : if rhs <= 0 : return True return False
Checks feasibility of the following condition
0 `sense` rhs
Checks feasibility of the following condition 0 ` sense ` rhs
"""Checks feasibility of the following condition
        0 `sense` rhs
        """
sense
ConstraintSense
rhs
float