parameters: (self,x,equalityTol=1e-6)
return_statement: return True
docstring: Returns true if x is a feasible point.
docstring_summary: Returns true if x is a feasible point.
docstring_tokens: Returns true if x is a feasible point .
function: def feasible(self,x,equalityTol=1e-6):
          """Returns true if x is a feasible point."""
          for g in self.equalities:
              gx = g(x)
              if any(abs(v) > equalityTol for v in gx): return False
          for h in self.inequalities:
              hx = h(x)
              if any(v > 0 for v in hx): return False
          for f in self.feasibilityTests:
              if not f(x): return False
          return True
function_tokens: def feasible ( self , x , equalityTol = 1e-6 ) : for g in self . equalities : gx = g ( x ) if any ( abs ( v ) > equalityTol for v in gx ) : return False for h in self . inequalities : hx = h ( x ) if any ( v > 0 for v in hx ) : return False for f in self . feasibilityTests : if not f ( x ) : return False return True