Skip to content

Commit

Permalink
feat(swarm): increase solver state size to support longer problems (#82)
Browse files Browse the repository at this point in the history
- the env state has to keep the entire move history in its output (to penalize reentrant states, etc.) and the 768 length can be too short on long problems
  • Loading branch information
justindujardin authored Oct 10, 2022
1 parent 9f757f1 commit 22a990b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/mathy_python/mathy/solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def __init__(

def get_state(self) -> np.ndarray:
assert self._env.state is not None, "env required to get_state"
return self._env.state.to_np(768)
return self._env.state.to_np(2048)

def set_state(self, state: np.ndarray):
assert self._env is not None, "env required to set_state"
Expand Down

0 comments on commit 22a990b

Please sign in to comment.