Home | History | Annotate | Download | only in ops

Lines Matching defs:constraint

146                constraint=None):
191 constraint: An optional projection function to be applied to the variable
234 constraint=constraint)
254 constraint=None):
284 constraint: An optional projection function to be applied to the variable
307 if constraint is not None and not callable(constraint):
308 raise ValueError("The `constraint` argument must be a callable.")
392 self._constraint = constraint
583 def constraint(self):
584 """Returns the constraint function associated with this variable.
587 The constraint function that was passed to the variable constructor.
588 Can be `None` if no constraint was passed.