Skip to content

Commit 22a990b

Browse files
feat(swarm): increase solver state size to support longer problems (#82)
- 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
1 parent 9f757f1 commit 22a990b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/mathy_python/mathy/solver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def __init__(
147147

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

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

0 commit comments

Comments
 (0)