code: def min_cost(self):
          
          if self._min_cost:
              return self._min_cost
          self._min_cost = np.sum(self.c[np.arange(self.nx), self.solution])
          return self._min_cost
docs: Returns the cost of the best assignment