mirror of
https://github.com/illiumst/marl-factory-grid.git
synced 2025-07-08 02:21:36 +02:00
Increased maximum number of nodes for TSP agent to deal with all potential dirt placements in dirt_quadrant
This commit is contained in:
@ -90,7 +90,7 @@ class TSPBaseAgent(ABC):
|
||||
[self.state.pos] + \
|
||||
[x for x in positions if max(abs(np.subtract(x, self.state.pos))) < 3]
|
||||
try:
|
||||
while len(nodes) < 7:
|
||||
while len(nodes) < 13:
|
||||
nodes += [next(x for x in positions if x not in nodes)]
|
||||
except StopIteration:
|
||||
nodes = [self.state.pos] + positions
|
||||
|
Reference in New Issue
Block a user