def constraints(self):
        """
        Constraints applied to the population.
        """
        try:
            return self._constraints
        except AttributeError:
            self._constraints = ConstraintDict()
            return self._constraints
def constraints ( self ) : try : return self . _constraints except AttributeError : self . _constraints = ConstraintDict ( ) return self . _constraints
Constraints applied to the population.