mirror of
https://github.com/illiumst/marl-factory-grid.git
synced 2025-12-14 03:00:37 +01: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] + \
|
[self.state.pos] + \
|
||||||
[x for x in positions if max(abs(np.subtract(x, self.state.pos))) < 3]
|
[x for x in positions if max(abs(np.subtract(x, self.state.pos))) < 3]
|
||||||
try:
|
try:
|
||||||
while len(nodes) < 7:
|
while len(nodes) < 13:
|
||||||
nodes += [next(x for x in positions if x not in nodes)]
|
nodes += [next(x for x in positions if x not in nodes)]
|
||||||
except StopIteration:
|
except StopIteration:
|
||||||
nodes = [self.state.pos] + positions
|
nodes = [self.state.pos] + positions
|
||||||
|
|||||||
Reference in New Issue
Block a user