langgoap.MCTSExploration

langgoap.MCTSExploration#

class MCTSExploration(iterations=200, wall_clock_ms=200.0, c=1.4142135623730951, rollout_depth=4, seed=0)[source]#

Search budget and exploration knobs for MCTSStrategy.

Budgets:

iterations: Hard cap on tree iterations per plan() call. wall_clock_ms: Hard cap on wall-clock per call. Zero

disables the check. Whichever budget trips first ends the search; at least one must be > 0.

Knobs:

c: UCB1 exploration constant. LATS default √2. rollout_depth: Max simulation horizon per rollout. seed: Base seed for the RNG driving random tie-breaks and

the default RandomRollout fallback.

Parameters:
  • iterations (int)

  • wall_clock_ms (float)

  • c (float)

  • rollout_depth (int)

  • seed (int)

__init__(iterations=200, wall_clock_ms=200.0, c=1.4142135623730951, rollout_depth=4, seed=0)#
Parameters:
  • iterations (int)

  • wall_clock_ms (float)

  • c (float)

  • rollout_depth (int)

  • seed (int)

Return type:

None

Methods

__init__([iterations, wall_clock_ms, c, ...])

Attributes

iterations

wall_clock_ms

c

rollout_depth

seed