docs: def get_constraint_slack(self, name):
          """Get the value of the slack variable of a constraint."""
          if self._slacks is None:
              return None
          else:
              index = self._get_constraint_index(name)
              return self._slacks[index]