Added code for tsp_runs + Updated eval configs so that every episode only takes a maximum number of steps

This commit is contained in:
Julian Schönberger
2024-05-10 17:38:34 +02:00
parent d0d31b964c
commit 5e9e59c843
7 changed files with 125 additions and 13 deletions

View File

@@ -16,7 +16,7 @@ class DestAction(Action):
def do(self, entity, state) -> Union[None, ActionResult]:
if destination := state[d.DESTINATION].by_pos(entity.pos):
valid = destination.do_wait_action(entity)
valid = destination[0].do_wait_action(entity)
state.print(f'{entity.name} just waited at {entity.pos}')
else:
valid = c.NOT_VALID