def get_h_value(self, Q: Config) -> int:
# e.g., \sum_i dist(Q[i], g_i)
cost = 0
for agent_idx, loc in enumerate(Q):
c = self.dist_tables[agent_idx].get(loc)
if c is None:
return np.iinfo(np.int32).max
cost += c
return 0
the return statement suppose to be: return cost, right?..
the return statement suppose to be:
return cost
, right?..